Dagger
Search

harbor-cli

No long description provided.

Installation

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

Entrypoint

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

Types

HarborCli 🔗

echo() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
stringArgString !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@99bd328ae2c81af71eb59ad248725834ff2aa25d call \
 echo --string-arg string
func (m *MyModule) Example(ctx context.Context, stringArg string) string  {
	return dag.
			Harborcli().
			Echo(ctx, stringArg)
}
@function
async def example(stringarg: str) -> str:
	return await (
		dag.harbor_cli()
		.echo(stringarg)
	)
@func()
async example(stringArg: string): Promise<string> {
	return dag
		.harborCli()
		.echo(stringArg)
}

containerEcho() 🔗

Returns a container that echoes whatever string argument is provided

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
stringArgString !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@99bd328ae2c81af71eb59ad248725834ff2aa25d call \
 container-echo --string-arg string
func (m *MyModule) Example(stringArg string) *dagger.Container  {
	return dag.
			Harborcli().
			Containerecho(stringArg)
}
@function
def example(stringarg: str) -> dagger.Container:
	return (
		dag.harbor_cli()
		.containerecho(stringarg)
	)
@func()
example(stringArg: string): Container {
	return dag
		.harborCli()
		.containerEcho(stringArg)
}

grepDir() 🔗

Returns lines that match a pattern in the files of the provided Directory

Return Type
String !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
patternString !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@99bd328ae2c81af71eb59ad248725834ff2aa25d call \
 grep-dir --directory-arg DIR_PATH --pattern string
func (m *MyModule) Example(ctx context.Context, directoryArg *dagger.Directory, pattern string) string  {
	return dag.
			Harborcli().
			Grepdir(ctx, directoryArg, pattern)
}
@function
async def example(directoryarg: dagger.Directory, pattern: str) -> str:
	return await (
		dag.harbor_cli()
		.grepdir(directoryarg, 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@99bd328ae2c81af71eb59ad248725834ff2aa25d call \
 lint-code --directory-arg DIR_PATH
func (m *MyModule) Example(directoryArg *dagger.Directory) *dagger.Container  {
	return dag.
			Harborcli().
			Lintcode(directoryArg)
}
@function
def example(directoryarg: dagger.Directory) -> dagger.Container:
	return (
		dag.harbor_cli()
		.lintcode(directoryarg)
	)
@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@99bd328ae2c81af71eb59ad248725834ff2aa25d call \
 build-harbor --directory-arg DIR_PATH
func (m *MyModule) Example(directoryArg *dagger.Directory) *dagger.Directory  {
	return dag.
			Harborcli().
			Buildharbor(directoryArg)
}
@function
def example(directoryarg: dagger.Directory) -> dagger.Directory:
	return (
		dag.harbor_cli()
		.buildharbor(directoryarg)
	)
@func()
example(directoryArg: Directory): Directory {
	return dag
		.harborCli()
		.buildHarbor(directoryArg)
}

pullRequest() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
githubTokenString !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@99bd328ae2c81af71eb59ad248725834ff2aa25d call \
 pull-request --directory-arg DIR_PATH --github-token string
func (m *MyModule) Example(ctx context.Context, directoryArg *dagger.Directory, githubToken string)   {
	return dag.
			Harborcli().
			Pullrequest(ctx, directoryArg, githubToken)
}
@function
async def example(directoryarg: dagger.Directory, githubtoken: str) -> None:
	return await (
		dag.harbor_cli()
		.pullrequest(directoryarg, githubtoken)
	)
@func()
async example(directoryArg: Directory, githubToken: string): Promise<void> {
	return dag
		.harborCli()
		.pullRequest(directoryArg, githubToken)
}

release() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
githubTokenString !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@99bd328ae2c81af71eb59ad248725834ff2aa25d call \
 release --directory-arg DIR_PATH --github-token string
func (m *MyModule) Example(ctx context.Context, directoryArg *dagger.Directory, githubToken string)   {
	return dag.
			Harborcli().
			Release(ctx, directoryArg, githubToken)
}
@function
async def example(directoryarg: dagger.Directory, githubtoken: str) -> None:
	return await (
		dag.harbor_cli()
		.release(directoryarg, githubtoken)
	)
@func()
async example(directoryArg: Directory, githubToken: string): Promise<void> {
	return dag
		.harborCli()
		.release(directoryArg, githubToken)
}

dockerPublish() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
directoryArgDirectory !-No description provided
cosignKeySecret !-No description provided
cosignPasswordString !-No description provided
regUsernameString !-No description provided
regPasswordString !-No description provided
Example
dagger -m github.com/bishal7679/harbor-cli@99bd328ae2c81af71eb59ad248725834ff2aa25d call \
 docker-publish --directory-arg DIR_PATH --cosign-key env:MYSECRET --cosign-password string --reg-username string --reg-password string
func (m *MyModule) Example(ctx context.Context, directoryArg *dagger.Directory, cosignKey *dagger.Secret, cosignPassword string, regUsername string, regPassword string) string  {
	return dag.
			Harborcli().
			Dockerpublish(ctx, directoryArg, cosignKey, cosignPassword, regUsername, regPassword)
}
@function
async def example(directoryarg: dagger.Directory, cosignkey: dagger.Secret, cosignpassword: str, regusername: str, regpassword: str) -> str:
	return await (
		dag.harbor_cli()
		.dockerpublish(directoryarg, cosignkey, cosignpassword, regusername, regpassword)
	)
@func()
async example(directoryArg: Directory, cosignKey: Secret, cosignPassword: string, regUsername: string, regPassword: string): Promise<string> {
	return dag
		.harborCli()
		.dockerPublish(directoryArg, cosignKey, cosignPassword, regUsername, regPassword)
}