pvc

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 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, filter filter.Filter) Pvc

func (*Pvc) GetPvc added in v1.2.2

func (p *Pvc) GetPvc() (filter.K8sJson, error)

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

func (*Pvc) GetPvcWorkloads

func (p *Pvc) GetPvcWorkloads(pvcName string) (filter.K8sJson, 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