types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InfrakitLogicalID is a metadata key that is used to tag instances created with a LogicalId.
	InfrakitLogicalID = "infrakit-logical-id"

	// InfrakitSakuraCloudVersion is a metadata key that is used to know which version of the plugin was used to create
	// the instance.
	InfrakitSakuraCloudVersion = "infrakit-sakuracloud-version"

	// InfrakitSakuraCloudCurrentVersion is incremented each time the plugin introduces incompatibilities with previous
	// versions
	InfrakitSakuraCloudCurrentVersion = "1"
)

Variables

This section is empty.

Functions

func ParseTags

func ParseTags(spec instance.Spec) map[string]string

ParseTags returns a key/value map from the instance specification.

Types

type Properties

type Properties struct {
	NamePrefix      string
	Core            int
	Memory          int
	DiskMode        string
	OSType          string
	DiskPlan        string
	DiskConnection  string
	DiskSize        int
	SourceArchiveID int64
	SourceDiskID    int64

	DistantFrom []int64
	DiskID      int64

	ISOImageID     int64
	UseNicVirtIO   bool
	PacketFilterID int64

	Hostname            string
	Password            string
	DisablePasswordAuth bool

	NetworkMode  string
	SwitchID     int64
	IPAddress    string
	NwMasklen    int
	DefaultRoute string

	StartupScripts          []string
	StartupScriptIDs        []int64
	StartupScriptsEphemeral bool

	SSHKeyIDs            []int64
	SSHKeyPublicKeys     []string
	SSHKeyPublicKeyFiles []string
	SSHKeyEphemeral      bool

	Name        string
	Description string
	Tags        []string
	IconID      int64
	UsKeyboard  bool
}

Properties is the configuration schema for the plugin, provided in instance.Spec.Properties

func ParseProperties

func ParseProperties(req *types.Any) (Properties, error)

ParseProperties parses instance Properties from a json description.

Jump to

Keyboard shortcuts

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