gscloud
This module has been generated via dagger init and serves as a reference to basic module structure as you get started with Dagger.Two functions have been pre-created. You can modify, delete, or add to them, as needed. They demonstrate usage of arguments and return types using simple echo and grep commands. The functions can be called from the dagger CLI or from one of the SDKs.
The first line in this comment block is a short description line and the rest is a long description with more detail on the module's purpose or usage, if appropriate. All modules should have a short description.
tkn=****** dagger call kubeconfig-file --user-id=****** --user-token=env:tkn --cluster-uuid=***** contents
https://archive.docs.dagger.io/0.9/205271/replace-dockerfile/ https://daggerverse.dev/mod/github.com/seungyeop-lee/daggerverse/scp@4ba108db8397e7c2739ca89616a57100da858e07#Commander.fileToRemote
Installation
dagger install github.com/blubberblah/daggerverse/gscloud@af91de11ee63cb73784b7aa3e19eb2ead03f2323
Entrypoint
Return Type
Gscloud !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
gsApiUrl | String ! | "https://api.gridscale.io" | Gridscale API endpoint URL |
Example
dagger -m github.com/blubberblah/daggerverse/gscloud@af91de11ee63cb73784b7aa3e19eb2ead03f2323 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.
kubeconfigFile() 🔗
Generate a kubeconfig for a cluster
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
userId | String ! | - | Username |
userToken | Secret ! | - | A reference to a secret value representing the Usertoken |
clusterUuid | String ! | - | UUID of cluster |
Example
dagger -m github.com/blubberblah/daggerverse/gscloud@af91de11ee63cb73784b7aa3e19eb2ead03f2323 call \
--gs-api-url string kubeconfig-file --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).
KubeconfigFile(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_file(user_id, user_token, cluster_uuid)
)
@func()
example(gsApiUrl: string, userId: string, userToken: Secret, clusterUuid: string): File {
return dag
.gscloud(gsApiUrl)
.kubeconfigFile(userId, userToken, clusterUuid)
}
container() 🔗
Return Type
Container !
Example
dagger -m github.com/blubberblah/daggerverse/gscloud@af91de11ee63cb73784b7aa3e19eb2ead03f2323 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()
}