kubernetes

package
v0.0.0-...-eca5b37 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// VolumeNamespace is a default namespace
	VolumeNamespace = "default"
)

Variables

This section is empty.

Functions

func GetHomeKubernetesConfigPath

func GetHomeKubernetesConfigPath() (string, error)

GetHomeKubernetesConfigPath returns a kubernetes configuration path under home

Types

type DatasetMount

type DatasetMount struct {
	Dataset               *dataset.Dataset
	PersistentVolume      *apiv1.PersistentVolume
	PersistentVolumeClaim *apiv1.PersistentVolumeClaim
}

DatasetMount holds a volume mapping

type ParcelVolumeManager

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

ParcelVolumeManager manages parcel volume

func NewVolumeManager

func NewVolumeManager(configPath string, namespace string) (*ParcelVolumeManager, error)

NewVolumeManager returns a new volume manager instance

func (*ParcelVolumeManager) CreateStorageClass

func (manager *ParcelVolumeManager) CreateStorageClass() error

CreateStorageClass creates a new storage class

func (*ParcelVolumeManager) CreateVolume

func (manager *ParcelVolumeManager) CreateVolume(ds *dataset.Dataset) (*DatasetMount, error)

CreateVolume creates a Persistent Volume for Kubernetes

func (*ParcelVolumeManager) DeleteVolume

func (manager *ParcelVolumeManager) DeleteVolume(volumeName string) error

DeleteVolume deletes a Persistent Volume for Kubernetes

func (*ParcelVolumeManager) GetVolume

func (manager *ParcelVolumeManager) GetVolume(volumeName string) (*DatasetMount, error)

GetVolume returns a Persistent Volume for Kubernetes

func (*ParcelVolumeManager) ListVolumes

func (manager *ParcelVolumeManager) ListVolumes() ([]*DatasetMount, error)

ListVolumes lists Persistent Volumes for Kubernetes

Jump to

Keyboard shortcuts

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