Documentation ¶
Index ¶
- func NewCSISnapshotControllerOperator(client OperatorClient, versionGetter status.VersionGetter, ...) operator.Runner
- func RunOperator(ctx *controllercmd.ControllerContext) error
- type OperatorClient
- func (c OperatorClient) GetOperatorState() (*operatorv1.OperatorSpec, *operatorv1.OperatorStatus, string, error)
- func (c OperatorClient) Informer() cache.SharedIndexInformer
- func (c OperatorClient) UpdateOperatorSpec(resourceVersion string, spec *operatorv1.OperatorSpec) (*operatorv1.OperatorSpec, string, error)
- func (c OperatorClient) UpdateOperatorStatus(resourceVersion string, status *operatorv1.OperatorStatus) (*operatorv1.OperatorStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCSISnapshotControllerOperator ¶
func NewCSISnapshotControllerOperator( client OperatorClient, versionGetter status.VersionGetter, recorder events.Recorder, ) operator.Runner
func RunOperator ¶
func RunOperator(ctx *controllercmd.ControllerContext) error
Types ¶
type OperatorClient ¶
type OperatorClient struct { Informers operatorclientinformers.SharedInformerFactory Client operatorconfigclient.OpenShiftControllerManagersGetter }
func (OperatorClient) GetOperatorState ¶
func (c OperatorClient) GetOperatorState() (*operatorv1.OperatorSpec, *operatorv1.OperatorStatus, string, error)
func (OperatorClient) Informer ¶
func (c OperatorClient) Informer() cache.SharedIndexInformer
func (OperatorClient) UpdateOperatorSpec ¶
func (c OperatorClient) UpdateOperatorSpec(resourceVersion string, spec *operatorv1.OperatorSpec) (*operatorv1.OperatorSpec, string, error)
func (OperatorClient) UpdateOperatorStatus ¶
func (c OperatorClient) UpdateOperatorStatus(resourceVersion string, status *operatorv1.OperatorStatus) (*operatorv1.OperatorStatus, error)
Click to show internal directories.
Click to hide internal directories.