va

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Poll is a poll interval for VA
	Poll = 2 * time.Second
	// Timeout is a timeout for Va operations
	Timeout = 1800 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// KubeClient *core.KubeClient
	Interface v12.VolumeAttachmentInterface
	Namespace string
	Timeout   int

	CustomTimeout time.Duration
}

Client is a VA client for managing VolumeAttachments

func (*Client) DeleteVaBasedOnPVName

func (c *Client) DeleteVaBasedOnPVName(ctx context.Context, pvName string) error

DeleteVaBasedOnPVName deletes the VA associated with passed PV

func (*Client) WaitUntilNoneLeft

func (c *Client) WaitUntilNoneLeft(ctx context.Context) error

WaitUntilNoneLeft waits for all volume attachments to be deleted in a namespace

func (*Client) WaitUntilVaGone

func (c *Client) WaitUntilVaGone(ctx context.Context, pvName string) error

WaitUntilVaGone waits until volume attachments for a PV are deleted

Jump to

Keyboard shortcuts

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