pvc

package
v0.0.0-...-c9dffe9 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pvc provides controller for pvc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capacity

type Capacity struct {
	Storage string `structs:"storage"`
}

type CephSecret

type CephSecret struct {
	Key string `structs:"key"`
}

type PvcImpl

type PvcImpl struct {
	*helm.HelmClientImpl
}

func NewPvcImpl

func NewPvcImpl(kubeToken string, namespace string) (*PvcImpl, error)

func (*PvcImpl) Create

func (p *PvcImpl) Create(chartDir string, releaseName string, pvcInfo *PvcInfo) (*release.Release, error)

func (*PvcImpl) Delete

func (p *PvcImpl) Delete(releaseName string) error

type PvcInfo

type PvcInfo struct {
	UserID     string                  `structs:"userId"`
	Cephfs     *map[string]interface{} `structs:"cephfs"`
	Capacity   *Capacity               `structs:"capacity"`
	CephSecret *CephSecret             `structs:"cephSecret"`
}

type SecretRef

type SecretRef struct {
	Name string `json:"name" structs:"name"`
}

Jump to

Keyboard shortcuts

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