vagrant
A simple module to generate a Vagrant Cloud upload url
Installation
dagger install github.com/by-nelson/daggerverse/vagrant@v0.0.1Entrypoint
Return Type
Vagrant Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
func (m *MyModule) Example() *dagger.Vagrant {
return dag.
Vagrant()
}@function
def example() -> dagger.Vagrant:
return (
dag.vagrant()
)@func()
example(): Vagrant {
return dag
.vagrant()
}Types
Vagrant 🔗
token() 🔗
Return Type
String ! Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
tokenfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Vagrant().
Token(ctx)
}@function
async def example() -> str:
return await (
dag.vagrant()
.token()
)@func()
async example(): Promise<string> {
return dag
.vagrant()
.token()
}response() 🔗
Return Type
String ! Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
responsefunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Vagrant().
Response(ctx)
}@function
async def example() -> str:
return await (
dag.vagrant()
.response()
)@func()
async example(): Promise<string> {
return dag
.vagrant()
.response()
}box() 🔗
Return Type
Box ! Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
boxfunc (m *MyModule) Example() *dagger.VagrantBox {
return dag.
Vagrant().
Box()
}@function
def example() -> dagger.VagrantBox:
return (
dag.vagrant()
.box()
)@func()
example(): VagrantBox {
return dag
.vagrant()
.box()
}createBox() 🔗
Creates a new vagrant box
Return Type
Vagrant !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| usernameArg | String ! | - | Vagrant Cloud Username |
| boxnameArg | String ! | - | Box name |
| tokenArg | String ! | - | Vagrant Cloud User's token |
Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
create-box --username-arg string --boxname-arg string --token-arg stringfunc (m *MyModule) Example(usernameArg string, boxnameArg string, tokenArg string) *dagger.Vagrant {
return dag.
Vagrant().
CreateBox(usernameArg, boxnameArg, tokenArg)
}@function
def example(username_arg: str, boxname_arg: str, token_arg: str) -> dagger.Vagrant:
return (
dag.vagrant()
.create_box(username_arg, boxname_arg, token_arg)
)@func()
example(usernameArg: string, boxnameArg: string, tokenArg: string): Vagrant {
return dag
.vagrant()
.createBox(usernameArg, boxnameArg, tokenArg)
}withVersion() 🔗
Creates a new box version
Return Type
Vagrant !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| versionArg | String ! | - | Box version to create |
Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
with-version --version-arg stringfunc (m *MyModule) Example(versionArg string) *dagger.Vagrant {
return dag.
Vagrant().
WithVersion(versionArg)
}@function
def example(version_arg: str) -> dagger.Vagrant:
return (
dag.vagrant()
.with_version(version_arg)
)@func()
example(versionArg: string): Vagrant {
return dag
.vagrant()
.withVersion(versionArg)
}withProvider() 🔗
Creates a new box version provider
Return Type
Vagrant !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| providerArg | String ! | - | Box provider to create. E.g. virtualbox |
| architectureArg | String ! | - | Box architecture to use. E.g. amd64 |
Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
with-provider --provider-arg string --architecture-arg stringfunc (m *MyModule) Example(providerArg string, architectureArg string) *dagger.Vagrant {
return dag.
Vagrant().
WithProvider(providerArg, architectureArg)
}@function
def example(provider_arg: str, architecture_arg: str) -> dagger.Vagrant:
return (
dag.vagrant()
.with_provider(provider_arg, architecture_arg)
)@func()
example(providerArg: string, architectureArg: string): Vagrant {
return dag
.vagrant()
.withProvider(providerArg, architectureArg)
}upload() 🔗
Generates an upload url from a provider
Return Type
String ! Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
uploadfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Vagrant().
Upload(ctx)
}@function
async def example() -> str:
return await (
dag.vagrant()
.upload()
)@func()
async example(): Promise<string> {
return dag
.vagrant()
.upload()
}debug() 🔗
Prints last http response
Return Type
String ! Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
debugfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Vagrant().
Debug(ctx)
}@function
async def example() -> str:
return await (
dag.vagrant()
.debug()
)@func()
async example(): Promise<string> {
return dag
.vagrant()
.debug()
}Box 🔗
username() 🔗
Return Type
String ! Example
Function VagrantBox.username is not accessible from the vagrant moduleFunction VagrantBox.username is not accessible from the vagrant moduleFunction VagrantBox.username is not accessible from the vagrant moduleFunction VagrantBox.username is not accessible from the vagrant modulename() 🔗
Return Type
String ! Example
Function VagrantBox.name is not accessible from the vagrant moduleFunction VagrantBox.name is not accessible from the vagrant moduleFunction VagrantBox.name is not accessible from the vagrant moduleFunction VagrantBox.name is not accessible from the vagrant moduleshort() 🔗
Return Type
String ! Example
Function VagrantBox.short is not accessible from the vagrant moduleFunction VagrantBox.short is not accessible from the vagrant moduleFunction VagrantBox.short is not accessible from the vagrant moduleFunction VagrantBox.short is not accessible from the vagrant moduledescription() 🔗
Return Type
String ! Example
Function VagrantBox.description is not accessible from the vagrant moduleFunction VagrantBox.description is not accessible from the vagrant moduleFunction VagrantBox.description is not accessible from the vagrant moduleFunction VagrantBox.description is not accessible from the vagrant moduleprovider() 🔗
Return Type
String ! Example
Function VagrantBox.provider is not accessible from the vagrant moduleFunction VagrantBox.provider is not accessible from the vagrant moduleFunction VagrantBox.provider is not accessible from the vagrant moduleFunction VagrantBox.provider is not accessible from the vagrant modulearchitecture() 🔗
Return Type
String ! Example
Function VagrantBox.architecture is not accessible from the vagrant moduleFunction VagrantBox.architecture is not accessible from the vagrant moduleFunction VagrantBox.architecture is not accessible from the vagrant moduleFunction VagrantBox.architecture is not accessible from the vagrant moduleversion() 🔗
Return Type
String ! Example
Function VagrantBox.version is not accessible from the vagrant moduleFunction VagrantBox.version is not accessible from the vagrant moduleFunction VagrantBox.version is not accessible from the vagrant moduleFunction VagrantBox.version is not accessible from the vagrant moduleprivate() 🔗
Return Type
Boolean ! Example
Function VagrantBox.private is not accessible from the vagrant moduleFunction VagrantBox.private is not accessible from the vagrant moduleFunction VagrantBox.private is not accessible from the vagrant moduleFunction VagrantBox.private is not accessible from the vagrant module