cloudsmith
Base for cloudsmith-cli
Installation
dagger install github.com/jmiller-cs/daggerverse/cloudsmith@46e1c1351698414629d42c3818fb8fede0bb02fb
Entrypoint
Return Type
Cloudsmith !
Example
dagger -m github.com/jmiller-cs/daggerverse/cloudsmith@46e1c1351698414629d42c3818fb8fede0bb02fb call \
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
Name | Type | Default Value | Description |
---|---|---|---|
packageFormat | String ! | - | No description provided |
organization | String ! | - | No description provided |
repository | String ! | - | No description provided |
ownerRepoString | String ! | - | No description provided |
packageFile | Directory ! | - | A directory. |
apiKey | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
Example
dagger -m github.com/jmiller-cs/daggerverse/cloudsmith@46e1c1351698414629d42c3818fb8fede0bb02fb call \
push --package-format string --organization string --repository string --owner-repo-string string --package-file DIR_PATH --api-key env:MYSECRET
func (m *myModule) example(ctx context.Context, packageFormat string, organization string, repository string, ownerRepoString string, packageFile *Directory, apiKey *Secret) string {
return dag.
Cloudsmith().
Push(ctx, packageFormat, organization, repository, ownerRepoString, packageFile, apiKey)
}
@function
async def example(package_format: str, organization: str, repository: str, owner_repo_string: str, package_file: dagger.Directory, api_key: dagger.Secret) -> str:
return await (
dag.cloudsmith()
.push(package_format, organization, repository, owner_repo_string, package_file, api_key)
)
@func()
async example(packageFormat: string, organization: string, repository: string, ownerRepoString: string, packageFile: Directory, apiKey: Secret): Promise<string> {
return dag
.cloudsmith()
.push(packageFormat, organization, repository, ownerRepoString, packageFile, apiKey)
}
base() 🔗
Returns a minimal Container with cloudsmith-cli
Return Type
Container !
Example
dagger -m github.com/jmiller-cs/daggerverse/cloudsmith@46e1c1351698414629d42c3818fb8fede0bb02fb 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()
}