disk

package
Version: v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BPMResourceDisk

type BPMResourceDisk struct {
	PersistentVolumeClaim *corev1.PersistentVolumeClaim
	Volume                *corev1.Volume
	VolumeMount           *corev1.VolumeMount

	Labels map[string]string
}

BPMResourceDisk represents a converted BPM disk to k8s resources.

func (*BPMResourceDisk) MatchesFilter

func (disk *BPMResourceDisk) MatchesFilter(filterKey, filterValue string) bool

MatchesFilter returns true if the disk matches the filter with one of its labels.

type BPMResourceDisks

type BPMResourceDisks []BPMResourceDisk

BPMResourceDisks represents a slice of BPMResourceDisk.

func (BPMResourceDisks) Filter

func (disks BPMResourceDisks) Filter(filterKey, filterValue string) BPMResourceDisks

Filter filters BPMResourceDisks on its labels.

func (BPMResourceDisks) PVCs

PVCs returns a slice of PVC of each BPMResourceDisk

func (BPMResourceDisks) VolumeMounts

func (disks BPMResourceDisks) VolumeMounts() []corev1.VolumeMount

VolumeMounts returns a slice of VolumeMount of each BPMResourceDisk contained in BPMResourceDisks.

func (BPMResourceDisks) Volumes

func (disks BPMResourceDisks) Volumes() []corev1.Volume

Volumes returns a slice of Volume of each BPMResourceDisk contained in BPMResourceDisks.

Source Files

Jump to

Keyboard shortcuts

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