Documentation ¶
Index ¶
Constants ¶
View Source
const ( POLICY_TYPE_MAPPING_TABLE = `` /* 165-byte string literal not displayed */ POLICY_LIFECIRCLE_TABLE = `{ "thinProvision": 1, "highAvailability": 1, "intervalSnapshot": 1, "deleteSnapshotPolicy": 4 }` )
Variables ¶
View Source
var PolicyLifecircleTable map[string]int
PolicyLifecircleTable
View Source
var PolicyTypeMappingTable map[string]string
PolicyTypeMappingTable
Functions ¶
func IsStorageTagSupported ¶
IsStorageTagSupported
Types ¶
type Controller ¶
type Controller interface { Setup(flag int) StorageTag() *StorageTag ExecuteSyncPolicy(req interface{}) error ExecuteAsyncPolicy(req interface{}, in string, errChan chan error) SetDock(dockInfo *model.DockSpec) }
Controller is an interface for exposing some operations of different policy controllers.
func NewController ¶
func NewController(profileSpec *model.ProfileSpec) Controller
NewController method creates a new policy controller.
type StorageTag ¶
type StorageTag struct {
// contains filtered or unexported fields
}
StorageTag
func NewStorageTag ¶
func NewStorageTag(tags map[string]interface{}, flag int) *StorageTag
NewStorageTag
func (*StorageTag) GetSyncTag ¶
func (st *StorageTag) GetSyncTag() map[string]interface{}
GetSyncTag
Click to show internal directories.
Click to hide internal directories.