pvs

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachePVService

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

func (*CachePVService) GetPVByUniqueId

func (s *CachePVService) GetPVByUniqueId(c *gin.Context, uniqueId string) (*corev1.PersistentVolume, error)

func (*CachePVService) ListAllPVs

func (s *CachePVService) ListAllPVs(ctx context.Context) ([]corev1.PersistentVolume, error)

func (*CachePVService) ListPVs

func (s *CachePVService) ListPVs(c *gin.Context) (*ListPVPodResult, error)

ListPVs implements PVService.

func (*CachePVService) Reconcile

func (*CachePVService) SetupWithManager

func (c *CachePVService) SetupWithManager(mgr manager.Manager) error

type ListPVPodResult

type ListPVPodResult struct {
	Total    int                       `json:"total,omitempty"`
	Continue string                    `json:"continue,omitempty"`
	PVs      []corev1.PersistentVolume `json:"pvs"`
}

type PVService

type PVService interface {
	ListPVs(c *gin.Context) (*ListPVPodResult, error)
	ListAllPVs(ctx context.Context) ([]corev1.PersistentVolume, error)

	GetPVByUniqueId(c *gin.Context, uniqueId string) (*corev1.PersistentVolume, error)
}

func NewPVService

func NewPVService(client client.Client, enableManager bool) PVService

Jump to

Keyboard shortcuts

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