rainbond: github.com/goodrain/rainbond/worker/appm/volume Index | Files

package volume

import "github.com/goodrain/rainbond/worker/appm/volume"

Index

Package Files

config-file.go local.go memoryfs.go other.go share-file.go volume.go

func RewriteContainerPathInWindows Uses

func RewriteContainerPathInWindows(mountPath string) string

RewriteContainerPathInWindows mount path in windows

func RewriteHostPathInWindows Uses

func RewriteHostPathInWindows(hostPath string) string

RewriteHostPathInWindows rewrite host path

type Base Uses

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

Base volume base

type ConfigFileVolume Uses

type ConfigFileVolume struct {
    Base
}

ConfigFileVolume config file volume struct

func (*ConfigFileVolume) CreateDependVolume Uses

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

CreateDependVolume config file volume create depend volume

func (*ConfigFileVolume) CreateVolume Uses

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

CreateVolume config file volume create volume

type Define Uses

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

Define define volume

func (*Define) GetVolumeMounts Uses

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

GetVolumeMounts get define volume mounts

func (*Define) GetVolumes Uses

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

GetVolumes get define volumes

func (*Define) SetVolume Uses

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

SetVolume define set volume

func (*Define) SetVolumeCMap Uses

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

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

type LocalVolume Uses

type LocalVolume struct {
    Base
}

LocalVolume local volume struct

func (*LocalVolume) CreateDependVolume Uses

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

CreateDependVolume empty func

func (*LocalVolume) CreateVolume Uses

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

CreateVolume local volume create volume

type MemoryFSVolume Uses

type MemoryFSVolume struct {
    Base
}

MemoryFSVolume memory fs volume struct

func (*MemoryFSVolume) CreateDependVolume Uses

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

CreateDependVolume empty func

func (*MemoryFSVolume) CreateVolume Uses

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

CreateVolume memory fs volume create volume

type OtherVolume Uses

type OtherVolume struct {
    Base
}

OtherVolume ali cloud volume struct

func (*OtherVolume) CreateDependVolume Uses

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

CreateDependVolume create depend volume

func (*OtherVolume) CreateVolume Uses

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

CreateVolume ceph rbd volume create volume

type ShareFileVolume Uses

type ShareFileVolume struct {
    Base
}

ShareFileVolume nfs volume struct

func (*ShareFileVolume) CreateDependVolume Uses

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

CreateDependVolume create depend volume

func (*ShareFileVolume) CreateVolume Uses

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

CreateVolume share file volume create volume

type Volume Uses

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 Uses

func NewVolumeManager(as *v1.AppService, serviceVolume *model.TenantServiceVolume, serviceMountR *model.TenantServiceMountRelation, version *dbmodel.VersionInfo, dbmanager db.Manager) Volume

NewVolumeManager create volume

Package volume imports 17 packages (graph) and is imported by 1 packages. Updated 2021-01-21. Refresh now. Tools for package owners.