Dagger
Search

artifactory

Artifactory is a service that provides repositories for storing and managing artifacts.

Installation

dagger install github.com/vbehar/daggerverse/artifactory@v0.12.1

Entrypoint

Return Type
Artifactory !
Arguments
NameTypeDefault ValueDescription
instanceUrlString !-URL of the Artifactory instance.
usernameString -username to use for authentication. If empty, authentication will not be configured.
passwordSecret -password to use for authentication.
instanceNameString "default"name of the Artifactory instance to configure. Defaults to "default".
jfrogCliVersionString -version of the JFrog CLI to install. If empty, the latest version will be installed.
Example
func (m *myModule) 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
func (m *myModule) example(ctx context.Context, instanceUrl string) string  {
	return dag.
			Artifactory(instanceUrl).
			InstanceName(ctx)
}

instanceUrl() 🔗

URL of the Artifactory instance.

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, instanceUrl string) string  {
	return dag.
			Artifactory(instanceUrl).
			InstanceUrl(ctx)
}

username() 🔗

username to use for authentication. If empty, authentication will not be configured.

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, instanceUrl string) string  {
	return dag.
			Artifactory(instanceUrl).
			Username(ctx)
}

password() 🔗

password to use for authentication.

Return Type
Secret !
Example
func (m *myModule) example(instanceUrl string) *Secret  {
	return dag.
			Artifactory(instanceUrl).
			Password()
}

jfrogCliVersion() 🔗

version of the JFrog CLI.

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, instanceUrl string) string  {
	return dag.
			Artifactory(instanceUrl).
			JfrogCliVersion(ctx)
}

configure() 🔗

Configure configures the given container to use the Artifactory instance.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
ctrContainer -container to configure. If empty, a new container will be created.
Example
func (m *myModule) 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
NameTypeDefault ValueDescription
cmd[String ! ] !-jf command to run. the "jf" prefix will be added automatically.
ctrContainer -container to run the command in. If empty, a new container will be created.
logLevelString -log level to use for the command. If empty, the default log level will be used.
Example
func (m *myModule) example(instanceUrl string, cmd []string) *Container  {
	return dag.
			Artifactory(instanceUrl).
			Command(cmd)
}

publishFile() 🔗

PublishFile publishes a single file to artifactory.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
fileFile !-file to publish.
destinationString !-target path in artifactory.
logLevelString -log level to use for the command. If empty, the default log level will be used.
Example
func (m *myModule) example(ctx context.Context, instanceUrl string, file *File, destination string) string  {
	return dag.
			Artifactory(instanceUrl).
			PublishFile(ctx, file, destination)
}

publishGoLib() 🔗

PublishGoLib publishes a Go library to the given repository.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-directory containing the Go library to publish.
versionString -version of the library to publish. Default to the "git" version (from the `git describe` cmd).
repoString !-name of the repository to publish to.
logLevelString -log level to use for the command. If empty, the default log level will be used.
Example
func (m *myModule) example(instanceUrl string, src *Directory, repo string) *Container  {
	return dag.
			Artifactory(instanceUrl).
			PublishGoLib(src, repo)
}