snapshot

package
v1.26.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultStorageClass = "false"
)

Variables

This section is empty.

Functions

func NewPvcTermination

func NewPvcTermination(obj *unstructured.Unstructured) (go_hook.FilterResult, error)

func PodNameFromPVC

func PodNameFromPVC(pvcName string) string

Types

type Index

type Index string

Index is a smoke-mini index with useful methods ("a", "b", "c", "d", or "e")

func IndexFromPVCName

func IndexFromPVCName(pvcName string) Index

func IndexFromPodName

func IndexFromPodName(podName string) Index

func IndexFromStatefulSetName

func IndexFromStatefulSetName(podName string) Index

func (Index) PersistenceVolumeClaimName

func (x Index) PersistenceVolumeClaimName() string

func (Index) PodName

func (x Index) PodName() string

func (Index) StatefulSetName

func (x Index) StatefulSetName() string

func (Index) String

func (x Index) String() string

type Node

type Node struct {
	Name        string
	Zone        string
	Schedulable bool
}

func ParseNodeSlice

func ParseNodeSlice(rs []go_hook.FilterResult) []Node

ParseNodeSlice parses Node slice from snapshots

type Pod

type Pod struct {
	Index   string
	Node    string
	Phase   v1.PodPhase
	Created time.Time
}

func ParsePodSlice

func ParsePodSlice(rs []go_hook.FilterResult) []Pod

ParsePodSlice parses Pod slice from snapshots

type PodPhase

type PodPhase struct {
	Name      string
	IsPending bool
}

func ParsePodPhaseSlice

func ParsePodPhaseSlice(rs []go_hook.FilterResult) []PodPhase

ParsePodPhaseSlice parses PodPhase slice from snapshots

func (PodPhase) Index

func (pp PodPhase) Index() Index

Index returns parsed smoke-mini index

type PvcTermination

type PvcTermination struct {
	Name          string
	IsTerminating bool
}

func ParsePvcTerminationSlice

func ParsePvcTerminationSlice(rs []go_hook.FilterResult) []PvcTermination

ParsePvcTerminationSlice parses PvcTermination slice from snapshots

func (PvcTermination) Index

func (pt PvcTermination) Index() Index

Index returns parsed smoke-mini index

type StatefulSet

type StatefulSet struct {
	Index string

	Zone         string
	Image        string
	Node         string
	StorageClass string
}

func ParseStatefulSetSlice

func ParseStatefulSetSlice(rs []go_hook.FilterResult) []StatefulSet

ParseStatefulSetSlice parses StatefulSet slice from snapshots

type StorageClass

type StorageClass struct {
	Name    string
	Default bool
}

func ParseStorageClassSlice

func ParseStorageClassSlice(rs []go_hook.FilterResult) []StorageClass

ParseStorageClassSlice parses StorageClass slice from snapshots

Jump to

Keyboard shortcuts

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