config

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserVm                Tags        = "UserVm"
	Volume                Tags        = "Volume"
	Snapshot              Tags        = "Snapshot"
	Root                  DiskType    = "ROOT"
	Datadisk              DiskType    = "DATADISK"
	ManualNetwork         NetworkType = "manual"
	DynamicNetwork        NetworkType = "dynamic"
	VipNetwork            NetworkType = "vip"
	VmRunning             VmState     = "running"
	PersistenceDiskPrefix             = "cpi-disk-"
	EphemeralDiskPrefix               = "cpi-ephemeral-disk-"
	VMPrefix                          = "cpivm-"
	TemplateFormat                    = "VHD"
	TemplateNameFormat                = "cpitemplate-%s"
	Hypervisor                        = "XenServer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CalculateCloudProp

type CalculateCloudProp struct {
	NotDiskTags    []string
	DiskTags       []string
	ServiceTags    []string
	NotServiceTags []string
}

type CloudStackConfig

type CloudStackConfig struct {
	Stemcell *StemcellConfig

	CalculateCloudProp CalculateCloudProp

	// Access
	Endpoint        string
	ApiKey          string
	SecretAccessKey string
	SkipVerifySSL   bool
	Timeout         Timeout

	// Key
	DefaultKeyName string
	PrivateKey     string

	// Zone
	DefaultZone  string
	DefaultOffer DefaultOffer

	// VM
	ExpungeVm bool

	// PeriodicCleanDisk
	DirectorName      string
	IntervalCleanDisk int64

	EnableAutoAntiAffinity bool
}

func (CloudStackConfig) Validate

func (c CloudStackConfig) Validate() error

type Config

type Config struct {
	CloudStack CloudStackConfig

	Actions FactoryOpts
}

func NewConfigFromPath

func NewConfigFromPath(path string) (Config, error)

func (Config) Validate

func (c Config) Validate() error

type DefaultOffer

type DefaultOffer struct {
	Disk          string
	EphemeralDisk string
	CustomDisk    string
}

type DiskType

type DiskType string

type FactoryOpts

type FactoryOpts struct {
	Agent apiv1.AgentOptions

	AgentEnvService string
	Registry        RegistryOptions
}

func (FactoryOpts) Validate

func (o FactoryOpts) Validate() error

type NetworkType

type NetworkType string

type RegistryOptions

type RegistryOptions struct {
	Host     string
	Port     int
	Username string
	Password string
}

type StemcellConfig

type StemcellConfig struct {
	PublicVisibility *bool
	RequiresHvm      *bool
	OsType           string
}

func (*StemcellConfig) Validate

func (c *StemcellConfig) Validate() error

type Tags

type Tags string

type Timeout

type Timeout struct {
	Global               int64
	RebootVm             int64
	StopVm               int64
	CreateVm             int64
	DeleteVm             int64
	CreateVolume         int64
	DeleteVolume         int64
	ResizeVolume         int64
	PollTemplate         int64
	AttachVolume         int64
	DetachVolume         int64
	SnapshotVolume       int64
	DeleteSnapshotVolume int64
}

type VmState

type VmState string

func ToVmState

func ToVmState(state string) VmState

Jump to

Keyboard shortcuts

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