Dagger
Search

harbor-cli

No long description provided.

Installation

dagger install github.com/bishal7679/harbor-cli@v0.6.0

Entrypoint

Return Type
HarborCli
Example
dagger -m github.com/bishal7679/harbor-cli@de1c06f209f1b77d852a5a4796596733bac648d6 call \
func (m *myModule) example() *HarborCli  {
	return dag.
			HarborCli()
}
@function
def example() -> dag.HarborCli:
	return (
		dag.harbor_cli()
	)
@func()
example(): HarborCli {
	return dag
		.harborCli()
}

Types

HarborCli 🔗

containerEcho() 🔗

example usage: “dagger call container-echo –string-arg yo stdout”

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
stringArgString !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@de1c06f209f1b77d852a5a4796596733bac648d6 call \
 container-echo --string-arg string
func (m *myModule) example(stringArg string) *Container  {
	return dag.
			HarborCli().
			ContainerEcho(stringArg)
}
@function
def example(string_arg: str) -> dagger.Container:
	return (
		dag.harbor_cli()
		.container_echo(string_arg)
	)
@func()
example(stringArg: string): Container {
	return dag
		.harborCli()
		.containerEcho(stringArg)
}

grepDir() 🔗

example usage: “dagger call grep-dir –directory-arg . –pattern GrepDir”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
patternString !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@de1c06f209f1b77d852a5a4796596733bac648d6 call \
 grep-dir --directory-arg DIR_PATH --pattern string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, pattern string) string  {
	return dag.
			HarborCli().
			GrepDir(ctx, directoryArg, pattern)
}
@function
async def example(directory_arg: dagger.Directory, pattern: str) -> str:
	return await (
		dag.harbor_cli()
		.grep_dir(directory_arg, pattern)
	)
@func()
async example(directoryArg: Directory, pattern: string): Promise<string> {
	return dag
		.harborCli()
		.grepDir(directoryArg, pattern)
}

lintCode() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@de1c06f209f1b77d852a5a4796596733bac648d6 call \
 lint-code --directory-arg DIR_PATH
func (m *myModule) example(directoryArg *Directory) *Container  {
	return dag.
			HarborCli().
			LintCode(directoryArg)
}
@function
def example(directory_arg: dagger.Directory) -> dagger.Container:
	return (
		dag.harbor_cli()
		.lint_code(directory_arg)
	)
@func()
example(directoryArg: Directory): Container {
	return dag
		.harborCli()
		.lintCode(directoryArg)
}

buildHarbor() 🔗

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@de1c06f209f1b77d852a5a4796596733bac648d6 call \
 build-harbor --directory-arg DIR_PATH
func (m *myModule) example(directoryArg *Directory) *Directory  {
	return dag.
			HarborCli().
			BuildHarbor(directoryArg)
}
@function
def example(directory_arg: dagger.Directory) -> dagger.Directory:
	return (
		dag.harbor_cli()
		.build_harbor(directory_arg)
	)
@func()
example(directoryArg: Directory): Directory {
	return dag
		.harborCli()
		.buildHarbor(directoryArg)
}

pullRequest() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
githubTokenString !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@de1c06f209f1b77d852a5a4796596733bac648d6 call \
 pull-request --directory-arg DIR_PATH --github-token string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, githubToken string) string  {
	return dag.
			HarborCli().
			PullRequest(ctx, directoryArg, githubToken)
}
@function
async def example(directory_arg: dagger.Directory, github_token: str) -> str:
	return await (
		dag.harbor_cli()
		.pull_request(directory_arg, github_token)
	)
@func()
async example(directoryArg: Directory, githubToken: string): Promise<string> {
	return dag
		.harborCli()
		.pullRequest(directoryArg, githubToken)
}

release() 🔗

example: go run ci/dagger.go release

Return Type
String !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
githubTokenString !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@de1c06f209f1b77d852a5a4796596733bac648d6 call \
 release --directory-arg DIR_PATH --github-token string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, githubToken string) string  {
	return dag.
			HarborCli().
			Release(ctx, directoryArg, githubToken)
}
@function
async def example(directory_arg: dagger.Directory, github_token: str) -> str:
	return await (
		dag.harbor_cli()
		.release(directory_arg, github_token)
	)
@func()
async example(directoryArg: Directory, githubToken: string): Promise<string> {
	return dag
		.harborCli()
		.release(directoryArg, githubToken)
}