Dagger
Search

vagrant

A simple module to generate a Vagrant Cloud upload url

Installation

dagger install github.com/by-nelson/daggerverse/vagrant@v0.0.1

Entrypoint

Return Type
Vagrant
Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
func (m *myModule) example() *Vagrant  {
	return dag.
			Vagrant()
}
@function
def example() -> dag.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 \
 token
func (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 \
 response
func (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 \
 box
func (m *myModule) example() *VagrantBox  {
	return dag.
			Vagrant().
			Box()
}
@function
def example() -> dag.VagrantBox:
	return (
		dag.vagrant()
		.box()
	)
@func()
example(): VagrantBox {
	return dag
		.vagrant()
		.box()
}

createBox() 🔗

Creates a new vagrant box

Return Type
Vagrant !
Arguments
NameTypeDefault ValueDescription
usernameArgString !-Vagrant Cloud Username
boxnameArgString !-Box name
tokenArgString !-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 string
func (m *myModule) example(usernameArg string, boxnameArg string, tokenArg string) *Vagrant  {
	return dag.
			Vagrant().
			CreateBox(usernameArg, boxnameArg, tokenArg)
}
@function
def example(username_arg: str, boxname_arg: str, token_arg: str) -> dag.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
NameTypeDefault ValueDescription
versionArgString !-Box version to create
Example
dagger -m github.com/by-nelson/daggerverse/vagrant@b3290e27cc9ba930c2fc8fce048469e920c26daf call \
 with-version --version-arg string
func (m *myModule) example(versionArg string) *Vagrant  {
	return dag.
			Vagrant().
			WithVersion(versionArg)
}
@function
def example(version_arg: str) -> dag.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
NameTypeDefault ValueDescription
providerArgString !-Box provider to create. E.g. virtualbox
architectureArgString !-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 string
func (m *myModule) example(providerArg string, architectureArg string) *Vagrant  {
	return dag.
			Vagrant().
			WithProvider(providerArg, architectureArg)
}
@function
def example(provider_arg: str, architecture_arg: str) -> dag.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 \
 upload
func (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 \
 debug
func (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 module
Function VagrantBox.username is not accessible from the vagrant module
Function VagrantBox.username is not accessible from the vagrant module
Function VagrantBox.username is not accessible from the vagrant module

name() 🔗

Return Type
String !
Example
Function VagrantBox.name is not accessible from the vagrant module
Function VagrantBox.name is not accessible from the vagrant module
Function VagrantBox.name is not accessible from the vagrant module
Function VagrantBox.name is not accessible from the vagrant module

short() 🔗

Return Type
String !
Example
Function VagrantBox.short is not accessible from the vagrant module
Function VagrantBox.short is not accessible from the vagrant module
Function VagrantBox.short is not accessible from the vagrant module
Function VagrantBox.short is not accessible from the vagrant module

description() 🔗

Return Type
String !
Example
Function VagrantBox.description is not accessible from the vagrant module
Function VagrantBox.description is not accessible from the vagrant module
Function VagrantBox.description is not accessible from the vagrant module
Function VagrantBox.description is not accessible from the vagrant module

provider() 🔗

Return Type
String !
Example
Function VagrantBox.provider is not accessible from the vagrant module
Function VagrantBox.provider is not accessible from the vagrant module
Function VagrantBox.provider is not accessible from the vagrant module
Function VagrantBox.provider is not accessible from the vagrant module

architecture() 🔗

Return Type
String !
Example
Function VagrantBox.architecture is not accessible from the vagrant module
Function VagrantBox.architecture is not accessible from the vagrant module
Function VagrantBox.architecture is not accessible from the vagrant module
Function VagrantBox.architecture is not accessible from the vagrant module

version() 🔗

Return Type
String !
Example
Function VagrantBox.version is not accessible from the vagrant module
Function VagrantBox.version is not accessible from the vagrant module
Function VagrantBox.version is not accessible from the vagrant module
Function VagrantBox.version is not accessible from the vagrant module

private() 🔗

Return Type
Boolean !
Example
Function VagrantBox.private is not accessible from the vagrant module
Function VagrantBox.private is not accessible from the vagrant module
Function VagrantBox.private is not accessible from the vagrant module
Function VagrantBox.private is not accessible from the vagrant module