app

package
v0.3.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagEngineImage    = "engine-image"
	FlagManagerImage   = "manager-image"
	FlagServiceAccount = "service-account"
	FlagKubeConfig     = "kube-config"
)
View Source
const (
	FlagFlexvolumeDir    = "flexvolume-dir"
	EnvFlexvolumeDir     = "FLEXVOLUME_DIR"
	DefaultFlexvolumeDir = "/usr/libexec/kubernetes/kubelet-plugins/volume/exec/"

	LonghornFlexvolumeDriver = "longhorn-flexvolume-driver"

	FlagManagerURL = "manager-url"

	FlagDriver           = "driver"
	FlagDriverCSI        = "csi"
	FlagDriverFlexvolume = "flexvolume"

	FlagCSIAttacherImage        = "csi-attacher-image"
	FlagCSIProvisionerImage     = "csi-provisioner-image"
	FlagCSIDriverRegistrarImage = "csi-driver-registrar-image"
	FlagCSIProvisionerName      = "csi-provisioner-name"
	EnvCSIAttacherImage         = "CSI_ATTACHER_IMAGE"
	EnvCSIProvisionerImage      = "CSI_PROVISIONER_IMAGE"
	EnvCSIDriverRegistrarImage  = "CSI_DRIVER_REGISTRAR_IMAGE"
	EnvCSIProvisionerName       = "CSI_PROVISIONER_NAME"
)
View Source
const (
	DetectFlexVolumeName   = "discover-flexvolume-dir"
	DetectFlexVolumeScript = `` /* 790-byte string literal not displayed */

	DetectFlexVolumeMaxPolls = 120
)
View Source
const (
	FlagSnapshotName = "snapshot-name"
	FlagLabels       = "labels"
	FlagRetain       = "retain"
	FlagBackupTarget = "backuptarget"
)

Variables

This section is empty.

Functions

func CSICommand

func CSICommand() cli.Command

func DaemonCmd

func DaemonCmd() cli.Command

func DeployDriverCmd

func DeployDriverCmd() cli.Command

func SnapshotCmd

func SnapshotCmd() cli.Command

Types

type DaemonSetOps

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

func (*DaemonSetOps) Create

func (*DaemonSetOps) Delete

func (ops *DaemonSetOps) Delete(name string) error

func (*DaemonSetOps) Get

func (ops *DaemonSetOps) Get(name string) (*appsv1beta2.DaemonSet, error)

type Job

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

func NewJob

func NewJob(volumeName, snapshotName, backupTarget string, labels map[string]string, retain int) (*Job, error)

type NameWithTimestamp

type NameWithTimestamp struct {
	Name      string
	Timestamp time.Time
}

Jump to

Keyboard shortcuts

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