Dagger
Search

gscloud

Module wrapping the gscloud commandline tool.

Installation

dagger install github.com/blubberblah/daggerverse/gscloud@f78fd445e008ff49799c62c07ace030ddcfe7bfe

Entrypoint

Return Type
Gscloud !
Arguments
NameTypeDescription
gsApiUrlString !Gridscale API endpoint URL
Example
dagger -m github.com/blubberblah/daggerverse/gscloud@f78fd445e008ff49799c62c07ace030ddcfe7bfe call \
 --gs-api-url string
func (m *myModule) example(gsApiUrl string) *Gscloud  {
	return dag.
			Gscloud(gsApiUrl)
}
@function
def example(gs_api_url: str) -> dag.Gscloud:
	return (
		dag.gscloud(gs_api_url)
	)
@func()
example(gsApiUrl: string): Gscloud {
	return dag
		.gscloud(gsApiUrl)
}

Types

Gscloud 🔗

Wrapper for Gscloud tool, see: https://github.com/gridscale/gscloud. For now only 'gscloud save-kubeconfig' is implemented.

kubeconfig() 🔗

Returns the generated kubeconfig file

Return Type
File !
Arguments
NameTypeDefault ValueDescription
userIdString !-Username
userTokenSecret !-A reference to a secret value representing the Usertoken
clusterUuidString !-UUID of cluster
Example
dagger -m github.com/blubberblah/daggerverse/gscloud@f78fd445e008ff49799c62c07ace030ddcfe7bfe call \
 --gs-api-url string kubeconfig --user-id string --user-token env:MYSECRET --cluster-uuid string
func (m *myModule) example(gsApiUrl string, userId string, userToken *Secret, clusterUuid string) *File  {
	return dag.
			Gscloud(gsApiUrl).
			Kubeconfig(userId, userToken, clusterUuid)
}
@function
def example(gs_api_url: str, user_id: str, user_token: dagger.Secret, cluster_uuid: str) -> dagger.File:
	return (
		dag.gscloud(gs_api_url)
		.kubeconfig(user_id, user_token, cluster_uuid)
	)
@func()
example(gsApiUrl: string, userId: string, userToken: Secret, clusterUuid: string): File {
	return dag
		.gscloud(gsApiUrl)
		.kubeconfig(userId, userToken, clusterUuid)
}

container() 🔗

Returns container with gscloud binary located at /usr/bin/gscloud

Return Type
Container !
Example
dagger -m github.com/blubberblah/daggerverse/gscloud@f78fd445e008ff49799c62c07ace030ddcfe7bfe call \
 --gs-api-url string container
func (m *myModule) example(gsApiUrl string) *Container  {
	return dag.
			Gscloud(gsApiUrl).
			Container()
}
@function
def example(gs_api_url: str) -> dagger.Container:
	return (
		dag.gscloud(gs_api_url)
		.container()
	)
@func()
example(gsApiUrl: string): Container {
	return dag
		.gscloud(gsApiUrl)
		.container()
}