Versions in this module Expand all Collapse all v0 v0.1.1 Nov 28, 2018 Changes in this version + const CoreDRFWeight + const DiskDRFWeight + const RAMDRFWeight + func InitializeBucket(svc api.ClientAPI, location objectstorage.Location) error + func RankDRF(t *model.HostTemplate) float32 + func Register(name string, client api.ClientAPI) + func SimilarityScore(ref string, s string) float64 + func Tenants() (map[string]string, error) + type ByRankDRF []model.HostTemplate + func (a ByRankDRF) Len() int + func (a ByRankDRF) Less(i, j int) bool + func (a ByRankDRF) Swap(i, j int) + type HostAccess struct + Gateway *HostAccess + Host *model.Host + Key *model.KeyPair + User string + func (access *HostAccess) GetAccessIP() string + type Service struct + MetadataBucket objectstorage.Bucket + ObjectStorage objectstorage.Location + func GetService(tenantName string) (*Service, error) + func (svc *Service) CopyObject(bucketNameSrc, objectSrc, objectDst string) error + func (svc *Service) CreateBucket(bucketName string) error + func (svc *Service) CreateHostWithKeyPair(request model.HostRequest) (*model.Host, *model.KeyPair, error) + func (svc *Service) DeleteBucket(bucketName string) error + func (svc *Service) DeleteObject(bucketName, objectName string) error + func (svc *Service) FilterImages(filter string) ([]model.Image, error) + func (svc *Service) GetBucket(bucketName string) (objectstorage.Bucket, error) + func (svc *Service) GetObject(bucketName string, objectName string, ranges []model.Range) (*model.Object, error) + func (svc *Service) GetObjectMetadata(bucketName string, objectName string) (*model.Object, error) + func (svc *Service) ListBuckets() ([]string, error) + func (svc *Service) ListHostsByName() (map[string]*model.Host, error) + func (svc *Service) ListObjects(bucketName string, filter model.ObjectFilter) ([]string, error) + func (svc *Service) PutObject(bucketName string, obj model.Object) error + func (svc *Service) SearchImage(osname string) (*model.Image, error) + func (svc *Service) SelectTemplatesBySize(sizing model.SizingRequirements, force bool) ([]model.HostTemplate, error) + func (svc *Service) UpdateObjectMetadata(bucketName string, obj model.Object) error + func (svc *Service) WaitHostState(hostID string, state HostState.Enum, timeout time.Duration) error + func (svc *Service) WaitVolumeState(volumeID string, state VolumeState.Enum, timeout time.Duration) (*model.Volume, error)