artifactory
Artifactory is a service that provides repositories for storing and managing artifacts.Installation
dagger install github.com/vbehar/daggerverse/artifactory@v0.6.1
Entrypoint
Return Type
Artifactory !
Arguments
Name | Type | 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 | 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@4cbdc9d18b215dc116f7f647e5162213ff673c8e 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 🔗
Artifactory is a Dagger Module to interact with JFrog Artifactory.
instanceName() 🔗
name of the Artifactory instance.
Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/artifactory@4cbdc9d18b215dc116f7f647e5162213ff673c8e 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() 🔗
URL of the Artifactory instance.
Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/artifactory@4cbdc9d18b215dc116f7f647e5162213ff673c8e 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() 🔗
username to use for authentication. If empty, authentication will not be configured.
Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/artifactory@4cbdc9d18b215dc116f7f647e5162213ff673c8e 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() 🔗
password to use for authentication.
Return Type
Secret !
Example
dagger -m github.com/vbehar/daggerverse/artifactory@4cbdc9d18b215dc116f7f647e5162213ff673c8e 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() 🔗
version of the JFrog CLI.
Return Type
String !
Example
dagger -m github.com/vbehar/daggerverse/artifactory@4cbdc9d18b215dc116f7f647e5162213ff673c8e 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. If empty, a new container will be created. |
Example
dagger -m github.com/vbehar/daggerverse/artifactory@4cbdc9d18b215dc116f7f647e5162213ff673c8e call \
--instance-url string configure
func (m *myModule) example(instanceUrl string) *Container {
return dag.
Artifactory(instanceUrl).
Configure()
}
@function
def example(instance_url: str, ) -> dagger.Container:
return (
dag.artifactory(instance_url)
.configure()
)
@func()
example(instanceUrl: string, ): Container {
return dag
.artifactory(instanceUrl)
.configure()
}
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@4cbdc9d18b215dc116f7f647e5162213ff673c8e 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. Default to the output of `git describe --tags`. |
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@4cbdc9d18b215dc116f7f647e5162213ff673c8e call \
--instance-url string publish-go-lib --src DIR_PATH --repo string
func (m *myModule) example(instanceUrl string, src *Directory, repo string) *Container {
return dag.
Artifactory(instanceUrl).
PublishGoLib(src, repo)
}
@function
def example(instance_url: str, src: dagger.Directory, repo: str) -> dagger.Container:
return (
dag.artifactory(instance_url)
.publish_go_lib(src, repo)
)
@func()
example(instanceUrl: string, src: Directory, repo: string): Container {
return dag
.artifactory(instanceUrl)
.publishGoLib(src, repo)
}