Documentation
¶
Index ¶
- Constants
- type SnapshotContent
- func (cont *SnapshotContent) GetError() error
- func (cont *SnapshotContent) HasError() bool
- func (cont *SnapshotContent) Sync(ctx context.Context) *SnapshotContent
- func (cont *SnapshotContent) WaitForRunning(ctx context.Context) error
- func (cont *SnapshotContent) WaitUntilGone(ctx context.Context) error
- type SnapshotContentClient
Constants ¶
View Source
const ( // Poll is a poll interval for Pod Poll = 2 * time.Second // Timeout is a timeout for Pod operations Timeout = 300 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SnapshotContent ¶
type SnapshotContent struct { Client *SnapshotContentClient Object *v1beta1.VolumeSnapshotContent Deleted bool // contains filtered or unexported fields }
SnapshotContent contains parameters needed for managing snapshot content
func (*SnapshotContent) GetError ¶
func (cont *SnapshotContent) GetError() error
GetError returns snapshot content error
func (*SnapshotContent) HasError ¶
func (cont *SnapshotContent) HasError() bool
HasError checks if snapshot content has error
func (*SnapshotContent) Sync ¶
func (cont *SnapshotContent) Sync(ctx context.Context) *SnapshotContent
Sync updates snapshot content state
func (*SnapshotContent) WaitForRunning ¶
func (cont *SnapshotContent) WaitForRunning(ctx context.Context) error
WaitForRunning stalls until pod is ready
func (*SnapshotContent) WaitUntilGone ¶
func (cont *SnapshotContent) WaitUntilGone(ctx context.Context) error
WaitUntilGone waits until snapshot content is deleted
type SnapshotContentClient ¶
type SnapshotContentClient struct { Interface snapshotv1beta1.VolumeSnapshotContentInterface Namespace string Timeout int }
SnapshotContentClient is a client for managing volume snapshot content
func (*SnapshotContentClient) Delete ¶
func (scc *SnapshotContentClient) Delete(ctx context.Context, snap *v1beta1.VolumeSnapshotContent) *SnapshotContent
Delete deletes a volume snapshot content
Click to show internal directories.
Click to hide internal directories.