cloudsmith
Base for cloudsmith-cli
Installation
dagger install github.com/jmiller-cs/daggerverse/cloudsmith@59cffd4c916fcbe301bf0133ea99b3532ccd0d13
Entrypoint
Return Type
Cloudsmith !
Example
dagger -m github.com/jmiller-cs/daggerverse/cloudsmith@59cffd4c916fcbe301bf0133ea99b3532ccd0d13 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 |
packageFile | File ! | - | A file. |
apiKey | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
ownerRepoString | String ! | "" | No description provided |
Example
dagger -m github.com/jmiller-cs/daggerverse/cloudsmith@59cffd4c916fcbe301bf0133ea99b3532ccd0d13 call \
push --package-format string --organization string --repository string --package-file file:path --api-key env:MYSECRET --owner-repo-string string
func (m *myModule) example(ctx context.Context, packageFormat string, organization string, repository string, packageFile *File, 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: dagger.File, 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: File, 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@59cffd4c916fcbe301bf0133ea99b3532ccd0d13 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()
}