harbor-cli
No long description provided.
Installation
dagger install github.com/bishal7679/harbor-cli@v0.6.3
Entrypoint
Return Type
HarborCli
Example
dagger -m github.com/bishal7679/harbor-cli@daa9113652a5b553f0f6a3a02dfee44fea8a7aac 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 🔗
echo() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
stringArg | String ! | - | No description provided |
Example
dagger -m github.com/bishal7679/harbor-cli@daa9113652a5b553f0f6a3a02dfee44fea8a7aac 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(string_arg: str) -> str:
return await (
dag.harbor_cli()
.echo(string_arg)
)
@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
Name | Type | Default Value | Description |
---|---|---|---|
stringArg | String ! | - | No description provided |
Example
dagger -m github.com/bishal7679/harbor-cli@daa9113652a5b553f0f6a3a02dfee44fea8a7aac 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() 🔗
Returns lines that match a pattern in the files of the provided Directory
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directoryArg | Directory ! | - | No description provided |
pattern | String ! | - | No description provided |
Example
dagger -m github.com/bishal7679/harbor-cli@daa9113652a5b553f0f6a3a02dfee44fea8a7aac 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
Name | Type | Default Value | Description |
---|---|---|---|
directoryArg | Directory ! | - | No description provided |
Example
dagger -m github.com/bishal7679/harbor-cli@daa9113652a5b553f0f6a3a02dfee44fea8a7aac 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
Name | Type | Default Value | Description |
---|---|---|---|
directoryArg | Directory ! | - | No description provided |
Example
dagger -m github.com/bishal7679/harbor-cli@daa9113652a5b553f0f6a3a02dfee44fea8a7aac 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
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directoryArg | Directory ! | - | No description provided |
githubToken | String ! | - | No description provided |
Example
dagger -m github.com/bishal7679/harbor-cli@daa9113652a5b553f0f6a3a02dfee44fea8a7aac call \
pull-request --directory-arg DIR_PATH --github-token string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, githubToken string) {
return dag.
HarborCli().
PullRequest(ctx, directoryArg, githubToken)
}
@function
async def example(directory_arg: dagger.Directory, github_token: str) -> None:
return await (
dag.harbor_cli()
.pull_request(directory_arg, github_token)
)
@func()
async example(directoryArg: Directory, githubToken: string): Promise<void> {
return dag
.harborCli()
.pullRequest(directoryArg, githubToken)
}
release() 🔗
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directoryArg | Directory ! | - | No description provided |
githubToken | String ! | - | No description provided |
Example
dagger -m github.com/bishal7679/harbor-cli@daa9113652a5b553f0f6a3a02dfee44fea8a7aac call \
release --directory-arg DIR_PATH --github-token string
func (m *myModule) example(ctx context.Context, directoryArg *Directory, githubToken string) {
return dag.
HarborCli().
Release(ctx, directoryArg, githubToken)
}
@function
async def example(directory_arg: dagger.Directory, github_token: str) -> None:
return await (
dag.harbor_cli()
.release(directory_arg, github_token)
)
@func()
async example(directoryArg: Directory, githubToken: string): Promise<void> {
return dag
.harborCli()
.release(directoryArg, githubToken)
}
dockerPublish() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
directoryArg | Directory ! | - | No description provided |
regUsername | String ! | - | No description provided |
regPassword | Secret ! | - | No description provided |
privateKey | Secret ! | - | No description provided |
cosignPassword | Secret ! | - | No description provided |
Example
dagger -m github.com/bishal7679/harbor-cli@daa9113652a5b553f0f6a3a02dfee44fea8a7aac call \
docker-publish --directory-arg DIR_PATH --reg-username string --reg-password env:MYSECRET --private-key env:MYSECRET --cosign-password env:MYSECRET
func (m *myModule) example(ctx context.Context, directoryArg *Directory, regUsername string, regPassword *Secret, privateKey *Secret, cosignPassword *Secret) string {
return dag.
HarborCli().
DockerPublish(ctx, directoryArg, regUsername, regPassword, privateKey, cosignPassword)
}
@function
async def example(directory_arg: dagger.Directory, reg_username: str, reg_password: dagger.Secret, private_key: dagger.Secret, cosign_password: dagger.Secret) -> str:
return await (
dag.harbor_cli()
.docker_publish(directory_arg, reg_username, reg_password, private_key, cosign_password)
)
@func()
async example(directoryArg: Directory, regUsername: string, regPassword: Secret, privateKey: Secret, cosignPassword: Secret): Promise<string> {
return dag
.harborCli()
.dockerPublish(directoryArg, regUsername, regPassword, privateKey, cosignPassword)
}