Versions in this module Expand all Collapse all v21 v21.11.1 Apr 26, 2022 Changes in this version type Service + FindTemplateByID func(string) (*abstract.HostTemplate, fail.Error) v21.11.0 Feb 17, 2022 Changes in this version + const CoreDRFWeight + const DiskDRFWeight + const RAMDRFWeight + func CacheMissOption(fn func() (cache.Cacheable, fail.Error), timeout time.Duration) []data.ImmutableKeyValue + func GetTenantNames() (map[string]string, fail.Error) + func GetTenants() ([]map[string]interface{}, fail.Error) + func NullService() *service + func RankDRF(t *abstract.HostTemplate) float32 + func Register(name string, provider providers.Provider) + type ByRankDRF []*abstract.HostTemplate + func (a ByRankDRF) Len() int + func (a ByRankDRF) Less(i, j int) bool + func (a ByRankDRF) Swap(i, j int) + type ResourceCache struct + func NewResourceCache(name string) (*ResourceCache, fail.Error) + func (instance *ResourceCache) AddEntry(content cache.Cacheable) (ce *cache.Entry, xerr fail.Error) + func (instance *ResourceCache) CommitEntry(key string, content cache.Cacheable) (ce *cache.Entry, xerr fail.Error) + func (instance *ResourceCache) FreeEntry(key string) fail.Error + func (instance *ResourceCache) Get(key string, options ...data.ImmutableKeyValue) (ce *cache.Entry, xerr fail.Error) + func (instance *ResourceCache) ReserveEntry(key string, timeout time.Duration) fail.Error + type Service interface + CreateHostWithKeyPair func(abstract.HostRequest) (*abstract.HostFull, *userdata.Content, *abstract.KeyPair, fail.Error) + FilterImages func(string) ([]abstract.Image, fail.Error) + FindTemplateByName func(string) (*abstract.HostTemplate, fail.Error) + FindTemplateBySizing func(abstract.HostSizingRequirements) (*abstract.HostTemplate, fail.Error) + GetCache func(string) (*ResourceCache, fail.Error) + GetMetadataBucket func() (abstract.ObjectStorageBucket, fail.Error) + GetMetadataKey func() (*crypt.Key, fail.Error) + GetProviderName func() (string, fail.Error) + InspectHostByName func(string) (*abstract.HostFull, fail.Error) + InspectSecurityGroupByName func(networkID string, name string) (*abstract.SecurityGroup, fail.Error) + ListHostsByName func(bool) (map[string]*abstract.HostFull, fail.Error) + ListTemplatesBySizing func(abstract.HostSizingRequirements, bool) ([]*abstract.HostTemplate, fail.Error) + LookupRuleInSecurityGroup func(*abstract.SecurityGroup, *abstract.SecurityGroupRule) (bool, fail.Error) + ObjectStorageConfiguration func() objectstorage.Config + SearchImage func(string) (*abstract.Image, fail.Error) + TenantCleanup func(bool) fail.Error + WaitHostState func(string, hoststate.Enum, time.Duration) fail.Error + WaitVolumeState func(string, volumestate.Enum, time.Duration) (*abstract.Volume, fail.Error) + func UseService(tenantName, metadataVersion string) (newService Service, xerr fail.Error) Other modules containing this package github.com/CS-SI/SafeScale