v1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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  *v1.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

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 snapshotv1.VolumeSnapshotContentInterface
	Namespace string
	Timeout   int
}

SnapshotContentClient is a client for managing volume snapshot content

func (*SnapshotContentClient) Delete

Delete deletes a volume snapshot content

func (*SnapshotContentClient) DeleteAll

func (scc *SnapshotContentClient) DeleteAll(ctx context.Context) error

DeleteAll deletes all snapshot contents for a PVC

Jump to

Keyboard shortcuts

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