Documentation ¶
Index ¶
- func GenerateLightStemcellTarball(lightStemcellMF LightStemcellMF, lightStemcellInfo LightStemcellInfo, ...) (string, error)
- func GenerateManifestMFBytesJSON(lightStemcellMF LightStemcellMF) ([]byte, error)
- func GenerateManifestMFBytesYAML(lightStemcellMF LightStemcellMF) ([]byte, error)
- func GenerateStemcellFilelName(info LightStemcellInfo) string
- func GenerateStemcellName(info LightStemcellInfo) string
- type CloudProperties
- type LightStemcellCmd
- type LightStemcellInfo
- type LightStemcellMF
- type LightStemcellVDICmd
- func (cmd *LightStemcellVDICmd) CheckOptions() error
- func (cmd *LightStemcellVDICmd) Create(vdImageId int) (string, error)
- func (cmd *LightStemcellVDICmd) GetLightStemcellInfo() LightStemcellInfo
- func (cmd *LightStemcellVDICmd) GetStemcellPath() string
- func (cmd *LightStemcellVDICmd) Options() common.Options
- func (cmd *LightStemcellVDICmd) Printf(msg string, a ...interface{}) (int, error)
- func (cmd *LightStemcellVDICmd) Println(a ...interface{}) (int, error)
- func (cmd *LightStemcellVDICmd) Run() error
- type LightStemcellVGBDTGCmd
- func (cmd *LightStemcellVGBDTGCmd) CheckOptions() error
- func (cmd *LightStemcellVGBDTGCmd) Create(vgbdtgId int) (string, error)
- func (cmd *LightStemcellVGBDTGCmd) GetLightStemcellInfo() LightStemcellInfo
- func (cmd *LightStemcellVGBDTGCmd) GetStemcellPath() string
- func (cmd *LightStemcellVGBDTGCmd) Options() common.Options
- func (cmd *LightStemcellVGBDTGCmd) Printf(msg string, a ...interface{}) (int, error)
- func (cmd *LightStemcellVGBDTGCmd) Println(a ...interface{}) (int, error)
- func (cmd *LightStemcellVGBDTGCmd) Run() error
- type SoftLayerStemcellInfo
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 ¶
Click to show internal directories.
Click to hide internal directories.