cloudsmith
Base for cloudsmith-cli
Installation
dagger install github.com/jmiller-cs/daggerverse/cloudsmith@099528551285b8739667d830d31b589fb4fbf103
Entrypoint
Return Type
Cloudsmith !
Example
dagger -m github.com/jmiller-cs/daggerverse/cloudsmith@099528551285b8739667d830d31b589fb4fbf103 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() 🔗
Uploads 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 | String ! | - | No description provided |
apiKey | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
ownerRepoString | String ! | "" | No description provided |
extraArgs | [String ! ] ! | [] | No description provided |
Example
dagger -m github.com/jmiller-cs/daggerverse/cloudsmith@099528551285b8739667d830d31b589fb4fbf103 call \
push --package-format string --organization string --repository string --package-file string --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 string, 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: str, 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: string, 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/jmiller-cs/daggerverse/cloudsmith@099528551285b8739667d830d31b589fb4fbf103 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()
}