Dagger
Search

cloudsmith

Base for cloudsmith-cli

Installation

dagger install github.com/jmiller-cs/daggerverse/cloudsmith@d0ada36a60d054d89992fe5c7444703f1e5d07b4

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() 🔗

Uplaods a package to your Cloudsmith repository.

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

base() 🔗

Returns a minimal Container with cloudsmith-cli

Return Type
Container !
Example
dagger -m github.com/jmiller-cs/daggerverse/cloudsmith@d0ada36a60d054d89992fe5c7444703f1e5d07b4 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()
}