artifactory
No long description provided.
Installation
dagger install github.com/vbehar/daggerverse/artifactory@ce5a3424f150281b25d1b5f6956e76ef6799233b
Entrypoint
Return Type
Artifactory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
instanceUrl | String ! | - | URL of the Artifactory instance. |
username | String | - | username to use for authentication. If empty, authentication will not be configured. |
password | Secret | - | password to use for authentication. |
instanceName | String | "default" | name of the Artifactory instance to configure. Defaults to "default". |
jfrogCliVersion | String | - | version of the JFrog CLI to install. If empty, the latest version will be installed. |
Example
dagger -m github.com/vbehar/daggerverse/artifactory@ce5a3424f150281b25d1b5f6956e76ef6799233b call \
--instance-url string
func (m *myModule) example(instanceUrl string) *Artifactory {
return dag.
Artifactory(instanceUrl)
}
@function
def example(instance_url: str, ) -> dag.Artifactory:
return (
dag.artifactory(instance_url)
)
@func()
example(instanceUrl: string, ): Artifactory {
return dag
.artifactory(instanceUrl)
}
Types
Artifactory 🔗
instanceName() 🔗
Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/artifactory@ce5a3424f150281b25d1b5f6956e76ef6799233b call \
--instance-url string instance-name
func (m *myModule) example(ctx context.Context, instanceUrl string) string {
return dag.
Artifactory(instanceUrl).
InstanceName(ctx)
}
@function
async def example(instance_url: str, ) -> str:
return await (
dag.artifactory(instance_url)
.instance_name()
)
@func()
async example(instanceUrl: string, ): Promise<string> {
return dag
.artifactory(instanceUrl)
.instanceName()
}
instanceUrl() 🔗
Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/artifactory@ce5a3424f150281b25d1b5f6956e76ef6799233b call \
--instance-url string instance-url
func (m *myModule) example(ctx context.Context, instanceUrl string) string {
return dag.
Artifactory(instanceUrl).
InstanceUrl(ctx)
}
@function
async def example(instance_url: str, ) -> str:
return await (
dag.artifactory(instance_url)
.instance_url()
)
@func()
async example(instanceUrl: string, ): Promise<string> {
return dag
.artifactory(instanceUrl)
.instanceUrl()
}
username() 🔗
Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/artifactory@ce5a3424f150281b25d1b5f6956e76ef6799233b call \
--instance-url string username
func (m *myModule) example(ctx context.Context, instanceUrl string) string {
return dag.
Artifactory(instanceUrl).
Username(ctx)
}
@function
async def example(instance_url: str, ) -> str:
return await (
dag.artifactory(instance_url)
.username()
)
@func()
async example(instanceUrl: string, ): Promise<string> {
return dag
.artifactory(instanceUrl)
.username()
}
password() 🔗
Return Type
Secret !
Example
dagger -m github.com/vbehar/daggerverse/artifactory@ce5a3424f150281b25d1b5f6956e76ef6799233b call \
--instance-url string password
func (m *myModule) example(instanceUrl string) *Secret {
return dag.
Artifactory(instanceUrl).
Password()
}
@function
def example(instance_url: str, ) -> dagger.Secret:
return (
dag.artifactory(instance_url)
.password()
)
@func()
example(instanceUrl: string, ): Secret {
return dag
.artifactory(instanceUrl)
.password()
}
jfrogCliVersion() 🔗
Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/artifactory@ce5a3424f150281b25d1b5f6956e76ef6799233b call \
--instance-url string jfrog-cli-version
func (m *myModule) example(ctx context.Context, instanceUrl string) string {
return dag.
Artifactory(instanceUrl).
JfrogCliVersion(ctx)
}
@function
async def example(instance_url: str, ) -> str:
return await (
dag.artifactory(instance_url)
.jfrog_cli_version()
)
@func()
async example(instanceUrl: string, ): Promise<string> {
return dag
.artifactory(instanceUrl)
.jfrogCliVersion()
}
configure() 🔗
Configure configures the given container to use the Artifactory instance.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ctr | Container ! | - | container to configure. |
Example
dagger -m github.com/vbehar/daggerverse/artifactory@ce5a3424f150281b25d1b5f6956e76ef6799233b call \
--instance-url string configure --ctr IMAGE:TAG
func (m *myModule) example(instanceUrl string, ctr *Container) *Container {
return dag.
Artifactory(instanceUrl).
Configure(ctr)
}
@function
def example(instance_url: str, ctr: dagger.Container) -> dagger.Container:
return (
dag.artifactory(instance_url)
.configure(ctr)
)
@func()
example(instanceUrl: string, ctr: Container): Container {
return dag
.artifactory(instanceUrl)
.configure(ctr)
}
command() 🔗
Command runs the given artifactory (jf) command in the given container.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
cmd | [String ! ] ! | - | jf command to run. the "jf" prefix will be added automatically. |
ctr | Container | - | container to run the command in. If empty, a new container will be created. |
logLevel | String | - | log level to use for the command. If empty, the default log level will be used. |
Example
dagger -m github.com/vbehar/daggerverse/artifactory@ce5a3424f150281b25d1b5f6956e76ef6799233b call \
--instance-url string command --cmd string1 --cmd string2
func (m *myModule) example(instanceUrl string, cmd []string) *Container {
return dag.
Artifactory(instanceUrl).
Command(cmd)
}
@function
def example(instance_url: str, cmd: List[str]) -> dagger.Container:
return (
dag.artifactory(instance_url)
.command(cmd)
)
@func()
example(instanceUrl: string, cmd: string[]): Container {
return dag
.artifactory(instanceUrl)
.command(cmd)
}
publishGoLib() 🔗
PublishGoLib publishes a Go library to the given repository.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | directory containing the Go library to publish. |
version | String ! | - | version of the library to publish. |
repo | String ! | - | name of the repository to publish to. |
logLevel | String | - | log level to use for the command. If empty, the default log level will be used. |
Example
dagger -m github.com/vbehar/daggerverse/artifactory@ce5a3424f150281b25d1b5f6956e76ef6799233b call \
--instance-url string publish-go-lib --src DIR_PATH --version string --repo string
func (m *myModule) example(instanceUrl string, src *Directory, version string, repo string) *Container {
return dag.
Artifactory(instanceUrl).
PublishGoLib(src, version, repo)
}
@function
def example(instance_url: str, src: dagger.Directory, version: str, repo: str) -> dagger.Container:
return (
dag.artifactory(instance_url)
.publish_go_lib(src, version, repo)
)
@func()
example(instanceUrl: string, src: Directory, version: string, repo: string): Container {
return dag
.artifactory(instanceUrl)
.publishGoLib(src, version, repo)
}