Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController(clients Clients, stopCh <-chan struct{}) *controller
Types ¶
type Clients ¶
type Clients struct { KubeClientset kubernetes.Interface SnapshotClient *restclient.RESTClient SvClientset svclientset.Interface Dynamic dynamic.Interface Discovery discovery.DiscoveryInterface }
type KubeCalls ¶
type KubeCalls interface { CreateUnstructuredObject(unstructured.Unstructured) error GetUnstructuredObject(string, vs.ResourceName) (*unstructured.Unstructured, error) // contains filtered or unexported methods }
type Reverts ¶
type Reverts interface {
ProcessSnapshotRevert(snapshotRevert *vs.SnapshotRevert) error
}
func NewReverts ¶
type Validator ¶
type Validator interface { ProcessSnapshot(snapshot *snap.VolumeSnapshot) error ProcessValidationRun(run *vs.ValidationRun) error ProcessValidationRunDelete(run *vs.ValidationRun) }
func NewValidator ¶
Click to show internal directories.
Click to hide internal directories.