policy

package
v0.0.0-...-295c363 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

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 FindPolicyType

func FindPolicyType(policy string) (string, error)

FindPolicyType

func IsStorageTagSupported

func IsStorageTagSupported(tags map[string]string) bool

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) GetAsyncTag

func (st *StorageTag) GetAsyncTag() map[string]string

GetAsyncTag

func (*StorageTag) GetSyncTag

func (st *StorageTag) GetSyncTag() map[string]interface{}

GetSyncTag

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL