vm

package
v0.0.0-...-b9690c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentProvisionerConfig

type AgentProvisionerConfig struct {
	// e.g. ubuntu, centos
	Platform string `json:"platform"`

	// Usually save to /var/vcap/bosh/agent.json
	Configuration map[string]interface{} `json:"configuration"`

	// e.g. "https://user:password@127.0.0.1:4321/agent"
	Mbus string `json:"mbus"`
}

type Provisioner

type Provisioner interface {
	// Provision creates and configures VM for future agent communication.
	// todo should not rely on bpdep.Instance
	Provision(bpdep.Instance) (VM, error)

	// ProvisionNonConfigured creates and does NOT configure VM for communication.
	ProvisionNonConfigured() (VM, error)
}

type ProvisionerConfig

type ProvisionerConfig struct {
	// When provisioning, install all dependencies that official stemcells carry.
	// By default, provisioners will only install absolutely needed dependencies.
	FullStemcellCompatibility bool `json:"full_stemcell_compatibility"`

	AgentProvisioner AgentProvisionerConfig `json:"agent_provisioner"`
}

type VM

type VM interface {
	// AgentClient returns a client immediately ready for communication.
	AgentClient() bpagclient.Client

	// Deprovision deletes VM previously provisioned VM.
	Deprovision() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL