Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketHandler ¶
type BucketHandler interface { List(bool) ([]string, fail.Error) Create(string) fail.Error Delete(string) fail.Error Inspect(string) (resources.Bucket, fail.Error) Mount(string, string, string) fail.Error Unmount(string, string) fail.Error }
BucketHandler defines interface to manipulate buckets
func NewBucketHandler ¶
func NewBucketHandler(job server.Job) BucketHandler
NewBucketHandler creates a BucketHandler
type CPUInfo ¶
type CPUInfo struct { TenantName string `json:"tenant_name,omitempty"` TemplateID string `json:"template_id,omitempty"` TemplateName string `json:"template_name,omitempty"` ImageID string `json:"image_id,omitempty"` ImageName string `json:"image_name,omitempty"` LastUpdated string `json:"last_updated,omitempty"` NumberOfCPU int `json:"number_of_cpu,omitempty"` NumberOfCore int `json:"number_of_core,omitempty"` NumberOfSocket int `json:"number_of_socket,omitempty"` CPUFrequency float64 `json:"cpu_frequency_Ghz,omitempty"` CPUArch string `json:"cpu_arch,omitempty"` Hypervisor string `json:"hypervisor,omitempty"` CPUModel string `json:"cpu_model,omitempty"` RAMSize float64 `json:"ram_size_Gb,omitempty"` RAMFreq float64 `json:"ram_freq,omitempty"` GPU int `json:"gpu,omitempty"` GPUModel string `json:"gpu_model,omitempty"` DiskSize int64 `json:"disk_size_Gb,omitempty"` MainDiskType string `json:"main_disk_type"` MainDiskSpeed float64 `json:"main_disk_speed_MBps"` SampleNetSpeed float64 `json:"sample_net_speed_KBps"` EphDiskSize int64 `json:"eph_disk_size_Gb"` PricePerSecond float64 `json:"price_in_dollars_second"` // DEPRECATED, use field Prices PricePerHour float64 `json:"price_in_dollars_hour"` // DEPRECATED, use field Prices Prices []PriceInfo `json:"prices,omitempty"` }
CPUInfo stores CPU properties
type ImageHandler ¶
type ImageHandler interface { List(all bool) ([]*abstract.Image, fail.Error) Select(osfilter string) (*abstract.Image, fail.Error) Filter(osfilter string) ([]abstract.Image, fail.Error) }
ImageHandler defines API to manipulate images
func NewImageHandler ¶
func NewImageHandler(job server.Job) ImageHandler
NewImageHandler creates a host service
type PriceInfo ¶
type PriceInfo struct { Currency string `json:"currency"` // contains the currency of the price info DurationLabel string `json:"duration_label,omitempty"` // contains a label for the duration "Per Hour" for example Duration uint `json:"duration"` // number of seconds of the duration Price float64 `json:"price"` // price in the given currency for the duration }
PriceInfo stores price information
type SSHHandler ¶
type SSHHandler interface { Run(hostname, cmd string) (int, string, string, fail.Error) Copy(from string, to string) (int, string, string, fail.Error) GetConfig(stacks.HostParameter) (*system.SSHConfig, fail.Error) }
SSHHandler defines ssh management API
type ShareHandler ¶
type ShareHandler interface {}
ShareHandler defines API to manipulate Shares
func NewShareHandler ¶
func NewShareHandler(job server.Job) ShareHandler
NewShareHandler creates a ShareHandler
type TenantHandler ¶
type TenantHandler interface { Scan(string, bool, []string) (_ *protocol.ScanResultList, ferr fail.Error) Inspect(string) (_ *protocol.TenantInspectResponse, ferr fail.Error) }
TenantHandler defines API to manipulate tenants
func NewTenantHandler ¶
func NewTenantHandler(job server.Job) TenantHandler
NewTenantHandler creates a scanner service
type VolumeHandler ¶
type VolumeHandler interface { Delete(ref string) fail.Error List(all bool) ([]resources.Volume, fail.Error) // Inspect(ref string) (resources.Volume, fail.Error) Create(name string, size int, speed volumespeed.Enum) (resources.Volume, fail.Error) Attach(volume string, host string, path string, format string, doNotFormat bool, doNotMount bool) fail.Error Detach(volume string, host string) fail.Error }
VolumeHandler defines API to manipulate hosts
func NewVolumeHandler ¶
func NewVolumeHandler(job server.Job) VolumeHandler
NewVolumeHandler creates a Volume service
Source Files ¶
Click to show internal directories.
Click to hide internal directories.