volumegroupsnapshot

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 = 1800 * time.Second
	// StatusComplete represents Complete status
	StatusComplete = "Complete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Interface runtimeclient.Client
	ClientSet kubernetes.Interface
	Timeout   int
}

Client is a client for managing RGs

func (*Client) Create

Create creates a VGS

func (*Client) Delete

Delete deletes a VGS

func (*Client) Get

func (c *Client) Get(ctx context.Context, name, namespace string) *VGS

Get returns a requested VGS

func (*Client) MakeVGS

MakeVGS returns a VGS object

func (*Client) WaitForComplete

func (c *Client) WaitForComplete(ctx context.Context, name, namespace string) error

WaitForComplete waits until VGS is in completed state

type Config

type Config struct {
	Name          string
	Namespace     string
	DriverName    string
	ReclaimPolicy string
	SnapClass     string
	VolumeLabel   string
}

Config contains parameters specific to VGS

type VGS

type VGS struct {
	Client  *Client
	Object  *vgsAlpha.DellCsiVolumeGroupSnapshot
	Deleted bool
	// contains filtered or unexported fields
}

VGS is contains information specific to a VG snapshot

func (*VGS) GetError

func (vgs *VGS) GetError() error

GetError returns VGS error

func (*VGS) HasError

func (vgs *VGS) HasError() bool

HasError checks whether VGS has error

func (*VGS) Name

func (vgs *VGS) Name() string

Name return VGS name

Jump to

Keyboard shortcuts

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