light_stemcell

package
v0.0.0-...-ee2a6a4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateLightStemcellTarball

func GenerateLightStemcellTarball(lightStemcellMF LightStemcellMF, lightStemcellInfo LightStemcellInfo, lightStemcellsPath string) (string, error)

func GenerateManifestMFBytesJSON

func GenerateManifestMFBytesJSON(lightStemcellMF LightStemcellMF) ([]byte, error)

func GenerateManifestMFBytesYAML

func GenerateManifestMFBytesYAML(lightStemcellMF LightStemcellMF) ([]byte, error)

func GenerateStemcellFilelName

func GenerateStemcellFilelName(info LightStemcellInfo) string

func GenerateStemcellName

func GenerateStemcellName(info LightStemcellInfo) string

Types

type CloudProperties

type CloudProperties struct {
	Infrastructure string `json:"infrastructure" yaml:"infrastructure"`
	Architecture   string `json:"architecture" yaml:"architecture"`
	RootDeviceName string `json:"root_device_name" yaml:"root_device_name"`
	Version        string `json:"version" yaml:"version"`

	//SoftLayer-specific properties
	VirtualDiskImageId   int    `json:"virtual-disk-image-id" yaml:"virtual-disk-image-id"`
	VirtualDiskImageUuid string `json:"virtual-disk-image-uuid" yaml:"virtual-disk-image-uuid"`
	DatacenterName       string `json:"datacenter-name" yaml:"datacenter-name"`
}

type LightStemcellCmd

type LightStemcellCmd interface {
	cmds.CommandInterface

	GetStemcellPath() string
	GetLightStemcellInfo() LightStemcellInfo
	Create(imageId int) (string, error)
}

type LightStemcellInfo

type LightStemcellInfo struct {
	//Defaulted
	Infrastructure string `json:"infrastructure"`
	Architecture   string `json:"architecture"`
	RootDeviceName string `json:"root-device-name"`

	//Required
	Version    string `json:"version"`
	Hypervisor string `json:"hypervisor"`
	OsName     string `json:"os-name"`

	StemcellFormats []string `json:"stemcell_formats" yaml:"stemcell_formats"`
}

type LightStemcellMF

type LightStemcellMF struct {
	Name            string          `json:"name" yaml:"name"`
	Version         string          `json:"version" yaml:"version"`
	BoshProtocol    int             `json:"bosh_protocol" yaml:"bosh_protocol"`
	Sha1            string          `json:"sha1" yaml:"sha1"`
	OperatingSystem string          `json:"operating_system" yaml:"operating_system"`
	CloudProperties CloudProperties `json:"cloud_properties" yaml:"cloud_properties"`
	StemcellFormats []string        `json:"stemcell_formats" yaml:"stemcell_formats"`
}

type LightStemcellVDICmd

type LightStemcellVDICmd struct {
	// contains filtered or unexported fields
}

func NewLightStemcellVDICmd

func NewLightStemcellVDICmd(options common.Options, client softlayer.Client) *LightStemcellVDICmd

func (*LightStemcellVDICmd) CheckOptions

func (cmd *LightStemcellVDICmd) CheckOptions() error

func (*LightStemcellVDICmd) Create

func (cmd *LightStemcellVDICmd) Create(vdImageId int) (string, error)

func (*LightStemcellVDICmd) GetLightStemcellInfo

func (cmd *LightStemcellVDICmd) GetLightStemcellInfo() LightStemcellInfo

func (*LightStemcellVDICmd) GetStemcellPath

func (cmd *LightStemcellVDICmd) GetStemcellPath() string

func (*LightStemcellVDICmd) Options

func (cmd *LightStemcellVDICmd) Options() common.Options

func (*LightStemcellVDICmd) Printf

func (cmd *LightStemcellVDICmd) Printf(msg string, a ...interface{}) (int, error)

func (*LightStemcellVDICmd) Println

func (cmd *LightStemcellVDICmd) Println(a ...interface{}) (int, error)

func (*LightStemcellVDICmd) Run

func (cmd *LightStemcellVDICmd) Run() error

type LightStemcellVGBDTGCmd

type LightStemcellVGBDTGCmd struct {
	// contains filtered or unexported fields
}

func NewLightStemcellVGBDGTCmd

func NewLightStemcellVGBDGTCmd(options common.Options, client softlayer.Client) *LightStemcellVGBDTGCmd

func (*LightStemcellVGBDTGCmd) CheckOptions

func (cmd *LightStemcellVGBDTGCmd) CheckOptions() error

func (*LightStemcellVGBDTGCmd) Create

func (cmd *LightStemcellVGBDTGCmd) Create(vgbdtgId int) (string, error)

func (*LightStemcellVGBDTGCmd) GetLightStemcellInfo

func (cmd *LightStemcellVGBDTGCmd) GetLightStemcellInfo() LightStemcellInfo

func (*LightStemcellVGBDTGCmd) GetStemcellPath

func (cmd *LightStemcellVGBDTGCmd) GetStemcellPath() string

func (*LightStemcellVGBDTGCmd) Options

func (cmd *LightStemcellVGBDTGCmd) Options() common.Options

func (*LightStemcellVGBDTGCmd) Printf

func (cmd *LightStemcellVGBDTGCmd) Printf(msg string, a ...interface{}) (int, error)

func (*LightStemcellVGBDTGCmd) Println

func (cmd *LightStemcellVGBDTGCmd) Println(a ...interface{}) (int, error)

func (*LightStemcellVGBDTGCmd) Run

func (cmd *LightStemcellVGBDTGCmd) Run() error

type SoftLayerStemcellInfo

type SoftLayerStemcellInfo struct {
	Id             int    `json:"id"`
	Uuid           string `json:"uuid"`
	DatacenterName string `json:"datacenter-name"`
}

Jump to

Keyboard shortcuts

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