Documentation
¶
Index ¶
- func NewBmpClient(username, password, url string, hClient softlayer.HttpClient, ...) *bmpClient
- type BaremetalInfo
- type BmpClient
- type BmsResponse
- type Category
- type CloudProperty
- type CreateBaremetalsInfo
- type CreateBaremetalsParameters
- type CreateBaremetalsResponse
- type DataInfo
- type DataPackage
- type DataPackageOptions
- type Deployment
- type InfoResponse
- type LoginResponse
- type Option
- type Package
- type ProvisioningBaremetalInfo
- type Resource
- type ServerSpec
- type SlPackageOptionsResponse
- type SlPackagesResponse
- type Stemcell
- type StemcellsResponse
- type Task
- type TaskInfo
- type TaskJsonResponse
- type TaskOutputResponse
- type TasksResponse
- type UpdateStateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBmpClient ¶
func NewBmpClient(username, password, url string, hClient softlayer.HttpClient, configPath string) *bmpClient
Types ¶
type BaremetalInfo ¶
type BaremetalInfo struct { Id int `json:"id"` Hostname string `json:"hostname"` Private_ip_address string `json:"private_ip_address"` Public_ip_address string `json:"public_ip_address"` Tags []string `json:"tags"` Memory int `json:"memory"` Cpu int `json:"cpu"` Provision_date string `json:"provision_date"` }
/bms
type BmpClient ¶
type BmpClient interface { ConfigPath() string Info() (InfoResponse, error) Bms(deploymentName string) (BmsResponse, error) SlPackages() (SlPackagesResponse, error) Stemcells() (StemcellsResponse, error) SlPackageOptions(packageId string) (SlPackageOptionsResponse, error) UpdateState(serverId string, status string) (UpdateStateResponse, error) TaskOutput(taskId int, level string) (TaskOutputResponse, error) TaskJsonOutput(taskId int, level string) (TaskJsonResponse, error) Tasks(latest int) (TasksResponse, error) Login(username string, password string) (LoginResponse, error) CreateBaremetals(createBaremetalsInfo CreateBaremetalsInfo, dryRun bool) (CreateBaremetalsResponse, error) ProvisioningBaremetal(provisioningBaremetalInfo ProvisioningBaremetalInfo) (CreateBaremetalsResponse, error) }
type BmsResponse ¶
type BmsResponse struct { Status int `json:"Status"` Data []BaremetalInfo `json:"data"` }
type CloudProperty ¶
type CloudProperty struct { BoshIP string `yaml:"bosh_ip" json:"bosh_ip"` Datacenter string `yaml:"datacenter" json:"datacenter"` Domain string `yaml:"domain" json:"domain"` NamePrefix string `yaml:"name_prefix" json:"name_prefix"` ServerSpec ServerSpec `yaml:"server_spec" json:"server_spec"` Baremetal bool `yaml:"baremetal" json:"baremetal"` BmStemcell string `yaml:"bm_stemcell" json:"bm_stemcell,omitempty"` BmNetbootImage string `yaml:"bm_netboot_image" json:"bm_netboot_image,omitempty"` Size int `yaml:"size" json:"size"` }
type CreateBaremetalsInfo ¶
type CreateBaremetalsInfo struct { BaremetalSpecs []CloudProperty `json:"baremetal_specs"` Deployment string `json:"deployment"` }
type CreateBaremetalsParameters ¶
type CreateBaremetalsParameters struct {
Parameters CreateBaremetalsInfo `json:"parameters"`
}
type DataPackage ¶
type DataPackage struct {
Packages []Package `json:"packages"`
}
type DataPackageOptions ¶
type Deployment ¶
type Deployment struct { Name string `yaml:"name"` ResourcePools []Resource `yaml:"resource_pools"` }
deployment
type InfoResponse ¶
type LoginResponse ¶
type LoginResponse struct {
Status int `json:"status"`
}
type ProvisioningBaremetalInfo ¶
type ProvisioningBaremetalInfo struct { VmNamePrefix string `json:"vmNamePrefix,omitempty"` Bm_stemcell string `json:"bm_stemcell,omitempty"` Bm_netboot_image string `json:"bm_netboot_image,omitempty"` }
/baremetal/spec/${server_name}/${stemcell}/${netboot_image}
type Resource ¶
type Resource struct { Name string `yaml:"name"` Network string `yaml:"network"` Size int `yaml:"size"` Stemcell Stemcell `yaml:"stemcell"` CloudProperty CloudProperty `yaml:"cloud_properties"` }
type ServerSpec ¶
type ServerSpec struct { Cores int `yaml:"cores" json:"cores,omitempty"` Memory int `yaml:"memory" json:"memory,omitempty"` MaxPortSpeed int `yaml:"max_port_speed" json:"max_port_speed,omitempty"` PublicVlanId int `yaml:"public_vlan_id" json:"public_vlan_id,omitempty"` PrivateVlanId int `yaml:"private_vlan_id" json:"private_vlan_id,omitempty"` Hourly bool `yaml:"hourly" json:"hourly"` }
type SlPackageOptionsResponse ¶
type SlPackageOptionsResponse struct { Status int `json:"status"` Data DataPackageOptions `json:"data"` }
type SlPackagesResponse ¶
type SlPackagesResponse struct { Status int `json:"status"` Data DataPackage `json:"data"` }
type StemcellsResponse ¶
type TaskJsonResponse ¶
type TaskOutputResponse ¶
type TasksResponse ¶
type UpdateStateResponse ¶
type UpdateStateResponse struct {
Status int `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.