Dagger
Search

cloudsmith

Base for cloudsmith-cli

Installation

dagger install github.com/cloudsmith-io/daggerverse/cloudsmith@324812557dad26110cd4f24b54a5572b337ee297

Entrypoint

Return Type
Cloudsmith !
Example
func (m *myModule) example() *Cloudsmith  {
	return dag.
			Cloudsmith()
}
@function
def example() -> dag.Cloudsmith:
	return (
		dag.cloudsmith()
	)
@func()
example(): Cloudsmith {
	return dag
		.cloudsmith()
}

Types

Cloudsmith

push()

Uploads a package to your Cloudsmith repository.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
packageFormatString !-No description provided
organizationString !-No description provided
repositoryString !-No description provided
packageFileFile !-A file.
apiKeySecret !-A reference to a secret value, which can be handled more safely than the value itself.
ownerRepoStringString !""No description provided
extraArgs[String ! ] ![]No description provided
Example
dagger -m github.com/cloudsmith-io/daggerverse/cloudsmith@324812557dad26110cd4f24b54a5572b337ee297 call \
 push --package-format string --organization string --repository string --package-file file:path --api-key env:MYSECRET --owner-repo-string string --extra-args string1 --extra-args string2
func (m *myModule) example(ctx context.Context, packageFormat string, organization string, repository string, packageFile *File, apiKey *Secret, ownerRepoString string, extraArgs []string) string  {
	return dag.
			Cloudsmith().
			Push(ctx, packageFormat, organization, repository, packageFile, apiKey, ownerRepoString, extraArgs)
}
@function
async def example(package_format: str, organization: str, repository: str, package_file: dagger.File, api_key: dagger.Secret, owner_repo_string: str, extra_args: List[str]) -> str:
	return await (
		dag.cloudsmith()
		.push(package_format, organization, repository, package_file, api_key, owner_repo_string, extra_args)
	)
@func()
async example(packageFormat: string, organization: string, repository: string, packageFile: File, apiKey: Secret, ownerRepoString: string, extraArgs: string[]): Promise<string> {
	return dag
		.cloudsmith()
		.push(packageFormat, organization, repository, packageFile, apiKey, ownerRepoString, extraArgs)
}

base()

Returns a minimal Container with cloudsmith-cli

Return Type
Container !
Example
dagger -m github.com/cloudsmith-io/daggerverse/cloudsmith@324812557dad26110cd4f24b54a5572b337ee297 call \
 base
func (m *myModule) example() *Container  {
	return dag.
			Cloudsmith().
			Base()
}
@function
def example() -> dagger.Container:
	return (
		dag.cloudsmith()
		.base()
	)
@func()
example(): Container {
	return dag
		.cloudsmith()
		.base()
}