Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CoreDRFWeight is the Dominant Resource Fairness weight of a core CoreDRFWeight float32 = 1.0 // RAMDRFWeight is the Dominant Resource Fairness weight of 1 GB of RAM RAMDRFWeight float32 = 1.0 / 8.0 // DiskDRFWeight is the Dominant Resource Fairness weight of 1 GB of Disk DiskDRFWeight float32 = 1.0 / 16.0 )
Variables ¶
This section is empty.
Functions ¶
func GetTenantNames ¶
GetTenantNames returns all known tenants names
func GetTenants ¶
GetTenants returns all known tenants
func NullService ¶
func NullService() *service
NullService creates a service instance corresponding to null value
func RankDRF ¶
func RankDRF(t *abstract.HostTemplate) float32
RankDRF computes the Dominant Resource Fairness Rank of a host template
Types ¶
type ByRankDRF ¶
type ByRankDRF []*abstract.HostTemplate
ByRankDRF implements sort.Interface for []HostTemplate based on the Dominant Resource Fairness
type Service ¶
type Service interface {
CreateHostWithKeyPair(abstract.HostRequest) (*abstract.HostFull, *userdata.Content, *abstract.KeyPair, fail.Error)
FilterImages(string) ([]*abstract.Image, fail.Error)
FindTemplateBySizing(abstract.HostSizingRequirements) (*abstract.HostTemplate, fail.Error)
FindTemplateByName(string) (*abstract.HostTemplate, fail.Error)
FindTemplateByID(string) (*abstract.HostTemplate, fail.Error)
GetProviderName() (string, fail.Error)
GetMetadataBucket() (abstract.ObjectStorageBucket, fail.Error)
GetMetadataKey() (*crypt.Key, fail.Error)
InspectHostByName(string) (*abstract.HostFull, fail.Error)
InspectSecurityGroupByName(networkID string, name string) (*abstract.SecurityGroup, fail.Error)
ListHostsByName(bool) (map[string]*abstract.HostFull, fail.Error)
ListTemplatesBySizing(abstract.HostSizingRequirements, bool) ([]*abstract.HostTemplate, fail.Error)
ObjectStorageConfiguration() (objectstorage.Config, fail.Error)
SearchImage(string) (*abstract.Image, fail.Error)
TenantCleanup(bool) fail.Error // cleans up the data relative to SafeScale from tenant (not implemented yet)
WaitHostState(string, hoststate.Enum, time.Duration) fail.Error
WaitVolumeState(string, volumestate.Enum, time.Duration) (*abstract.Volume, fail.Error)
// Provider --- from interface iaas.Providers ---
providers.Provider
LookupRuleInSecurityGroup(*abstract.SecurityGroup, *abstract.SecurityGroupRule) (bool, fail.Error)
// Location --- from interface objectstorage.Location ---
objectstorage.Location
}
Service consolidates Provider and ObjectStorage.Location interfaces in a single interface completed with higher-level methods
Directories
¶
| Path | Synopsis |
|---|---|
|
aws
Package aws contains the implementation of stack for Amazon
|
Package aws contains the implementation of stack for Amazon |
|
aws/pricing
command
|
|
Click to show internal directories.
Click to hide internal directories.