builder

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JfsDirName      = "jfs-dir"
	JfsRootDirName  = "jfs-root-dir"
	UpdateDBDirName = "updatedb"
)
View Source
const DefaultJobTTLSecond = int32(5)

Variables

This section is empty.

Functions

func GenJobNameByVolumeId

func GenJobNameByVolumeId(volumeId string) string

func SetJobAsOwner

func SetJobAsOwner(secret *corev1.Secret, owner batchv1.Job)

func SetPVCAsOwner added in v0.18.0

func SetPVCAsOwner(secret *corev1.Secret, owner *corev1.PersistentVolumeClaim)

func SetPodAsOwner

func SetPodAsOwner(secret *corev1.Secret, owner corev1.Pod)

Types

type Builder

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

func NewBuilder

func NewBuilder(setting *config.JfsSetting, capacity int64) *Builder

func (*Builder) NewJobForCleanCache added in v0.14.1

func (r *Builder) NewJobForCleanCache() *batchv1.Job

func (*Builder) NewJobForCreateVolume

func (r *Builder) NewJobForCreateVolume() *batchv1.Job

func (*Builder) NewJobForDeleteVolume

func (r *Builder) NewJobForDeleteVolume() *batchv1.Job

func (*Builder) NewMountPod

func (r *Builder) NewMountPod(podName string) *corev1.Pod

func (*Builder) NewMountSidecar added in v0.18.0

func (r *Builder) NewMountSidecar() *corev1.Pod

func (*Builder) NewSecret

func (r *Builder) NewSecret() corev1.Secret

Jump to

Keyboard shortcuts

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