gitlab-cicd-vars
No long description provided.
Installation
dagger install github.com/Excoriate/daggerverse/gitlab-cicd-vars@v1.6.0
Entrypoint
Return Type
GitlabCicdVars !
Arguments
Name | Type | Description |
---|---|---|
token | String ! | token is the GitLab API token to use, for information about how to create a token, see https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html |
Example
dagger -m github.com/Excoriate/daggerverse/gitlab-cicd-vars@431213c183f851f5adec809df885eb2d2615150b call \
--token string
func (m *myModule) example(token string) *GitlabCicdVars {
return dag.
GitlabCicdVars(token)
}
@function
def example(token: str) -> dag.GitlabCicdVars:
return (
dag.gitlab_cicd_vars(token)
)
@func()
example(token: string): GitlabCicdVars {
return dag
.gitlabCicdVars(token)
}
Types
GitlabCicdVars 🔗
token() 🔗
token to use for gitlab api
Return Type
String !
Example
dagger -m github.com/Excoriate/daggerverse/gitlab-cicd-vars@431213c183f851f5adec809df885eb2d2615150b call \
--token string token
func (m *myModule) example(ctx context.Context, token string) string {
return dag.
GitlabCicdVars(token).
Token(ctx)
}
@function
async def example(token: str) -> str:
return await (
dag.gitlab_cicd_vars(token)
.token()
)
@func()
async example(token: string): Promise<string> {
return dag
.gitlabCicdVars(token)
.token()
}
getAll() 🔗
GetAll returns all the variables in a project
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
path | String ! | - | path is the path to the GitLab's project, also known as 'namespace' |
Example
dagger -m github.com/Excoriate/daggerverse/gitlab-cicd-vars@431213c183f851f5adec809df885eb2d2615150b call \
--token string get-all --path string
func (m *myModule) example(ctx context.Context, token string, path string) string {
return dag.
GitlabCicdVars(token).
GetAll(ctx, path)
}
@function
async def example(token: str, path: str) -> str:
return await (
dag.gitlab_cicd_vars(token)
.get_all(path)
)
@func()
async example(token: string, path: string): Promise<string> {
return dag
.gitlabCicdVars(token)
.getAll(path)
}
get() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
path | String ! | - | path is the path to the GitLab's project, also known as 'namespace' |
varName | String ! | - | varName is the name of the variable to get |
Example
dagger -m github.com/Excoriate/daggerverse/gitlab-cicd-vars@431213c183f851f5adec809df885eb2d2615150b call \
--token string get --path string --var-name string
func (m *myModule) example(ctx context.Context, token string, path string, varName string) string {
return dag.
GitlabCicdVars(token).
Get(ctx, path, varName)
}
@function
async def example(token: str, path: str, var_name: str) -> str:
return await (
dag.gitlab_cicd_vars(token)
.get(path, var_name)
)
@func()
async example(token: string, path: string, varName: string): Promise<string> {
return dag
.gitlabCicdVars(token)
.get(path, varName)
}