volume

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RewriteContainerPathInWindows

func RewriteContainerPathInWindows(mountPath string) string

RewriteContainerPathInWindows mount path in windows

func RewriteHostPathInWindows

func RewriteHostPathInWindows(hostPath string) string

RewriteHostPathInWindows rewrite host path

Types

type Base

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

Base volume base

type ConfigFileVolume

type ConfigFileVolume struct {
	Base
	// contains filtered or unexported fields
}

ConfigFileVolume config file volume struct

func (*ConfigFileVolume) CreateDependVolume

func (v *ConfigFileVolume) CreateDependVolume(define *Define) error

CreateDependVolume config file volume create depend volume

func (*ConfigFileVolume) CreateVolume

func (v *ConfigFileVolume) CreateVolume(define *Define) error

CreateVolume config file volume create volume

type Define

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

Define define volume

func (*Define) GetVolumeMounts

func (v *Define) GetVolumeMounts() []corev1.VolumeMount

GetVolumeMounts get define volume mounts

func (*Define) GetVolumes

func (v *Define) GetVolumes() []corev1.Volume

GetVolumes get define volumes

func (*Define) SetVolume

func (v *Define) SetVolume(VolumeType dbmodel.VolumeType, name, mountPath, hostPath string, hostPathType corev1.HostPathType, readOnly bool)

SetVolume define set volume

func (*Define) SetVolumeCMap

func (v *Define) SetVolumeCMap(cmap *corev1.ConfigMap, k, p string, isReadOnly bool, mode *int32)

SetVolumeCMap sets volumes and volumeMounts. The type of volumes is configMap.

type LocalVolume

type LocalVolume struct {
	Base
}

LocalVolume local volume struct

func (*LocalVolume) CreateDependVolume

func (v *LocalVolume) CreateDependVolume(define *Define) error

CreateDependVolume empty func

func (*LocalVolume) CreateVolume

func (v *LocalVolume) CreateVolume(define *Define) error

CreateVolume local volume create volume

type MemoryFSVolume

type MemoryFSVolume struct {
	Base
}

MemoryFSVolume memory fs volume struct

func (*MemoryFSVolume) CreateDependVolume

func (v *MemoryFSVolume) CreateDependVolume(define *Define) error

CreateDependVolume empty func

func (*MemoryFSVolume) CreateVolume

func (v *MemoryFSVolume) CreateVolume(define *Define) error

CreateVolume memory fs volume create volume

type OtherVolume

type OtherVolume struct {
	Base
}

OtherVolume ali cloud volume struct

func (*OtherVolume) CreateDependVolume

func (v *OtherVolume) CreateDependVolume(define *Define) error

CreateDependVolume create depend volume

func (*OtherVolume) CreateVolume

func (v *OtherVolume) CreateVolume(define *Define) error

CreateVolume ceph wt volume create volume

type ShareFileVolume

type ShareFileVolume struct {
	Base
}

ShareFileVolume nfs volume struct

func (*ShareFileVolume) CreateDependVolume

func (v *ShareFileVolume) CreateDependVolume(define *Define) error

CreateDependVolume create depend volume

func (*ShareFileVolume) CreateVolume

func (v *ShareFileVolume) CreateVolume(define *Define) error

CreateVolume share file volume create volume

type Volume

type Volume interface {
	CreateVolume(define *Define) error       // use serviceVolume
	CreateDependVolume(define *Define) error // use serviceMountR
	// contains filtered or unexported methods
}

Volume volume function interface

func NewVolumeManager

func NewVolumeManager(as *v1.AppService,
	serviceVolume *model.TenantEnvServiceVolume,
	serviceMountR *model.TenantEnvServiceMountRelation,
	version *dbmodel.VersionInfo,
	envs []corev1.EnvVar,
	envVarSecrets []*corev1.Secret,
	dbmanager db.Manager) Volume

NewVolumeManager create volume

Jump to

Keyboard shortcuts

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