pvc

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle added in v1.2.2

func Handle(param resourcemanage.ExtendParams) (interface{}, error)

func PvcHandle added in v1.2.2

func PvcHandle(param resourcemanage.ExtendParams) (interface{}, error)

Types

type Pvc

type Pvc struct {
	// contains filtered or unexported fields
}

func NewPvc

func NewPvc(client mgrclient.Client, namespace string, condition *filter.Condition) Pvc

func (*Pvc) GetPvc added in v1.2.2

func (p *Pvc) GetPvc() (*unstructured.Unstructured, error)

GetPvc list pvcs, and add extend info that which pod mount this pvc

func (*Pvc) GetPvcWorkloads

func (p *Pvc) GetPvcWorkloads(pvcName string) (*unstructured.Unstructured, error)

GetPvcWorkloads get extend deployments

type PvcExtend added in v1.2.2

type PvcExtend struct {
	v1.PersistentVolumeClaim
	Pods  []v1.Pod `json:"pods,omitempty"`
	Total int      `json:"total,omitempty"`
}

Jump to

Keyboard shortcuts

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