Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct { // Type of object Type Type // Name is a unique name of the object Name string }
Object is a single instance of an object
type Ops ¶
type Ops interface { // ListObjects returns a list of objects of this type matching the provided // selectors ListObjects(namespaceSelector, labelSelector metav1.LabelSelector) ([]Object, error) // QuerySelector returns the metrics query selector for this object QuerySelector(object Object) map[string]string // DoAction does an action on the provided object instance DoAction(action string, object Object, actionParams map[string]string) error }
Ops is a set of operations that can be done on an object of a certain type
type StoragePoolObjectActions ¶
type StoragePoolObjectActions string
StoragePoolObjectActions are a set of supported actions on the storage pool object type
const ( // ResizeStoragePoolAction action for resizing volume ResizeStoragePoolAction StoragePoolObjectActions = "expand" )
type Type ¶
type Type string
Type is a type of objects on which autopilot rules can act upon
const ( // OpenstorageVolume is a object of type volume provided through the // libopenstorage/openstorage interfaces OpenstorageVolume Type = "openstorage.io.action.volume" // OpenstorageStoragePool is an object of type of storage pool provided // through the libopenstorage/openstorage storage providers OpenstorageStoragePool Type = "openstorage.io.action.storagepool" )
type VolumeObjectActions ¶
type VolumeObjectActions string
VolumeObjectActions are a set of supported actions on the volume object type
const ( // ResizeVolumeAction action for resizing volume ResizeVolumeAction VolumeObjectActions = "resize" )
Click to show internal directories.
Click to hide internal directories.