Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RewriteContainerPathInWindows ¶
RewriteContainerPathInWindows mount path in windows
func RewriteHostPathInWindows ¶
RewriteHostPathInWindows rewrite host path
Types ¶
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 ¶
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
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 {
}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