kubernetes: k8s.io/kubernetes/pkg/volume/util/types Index | Files

package types

import "k8s.io/kubernetes/pkg/volume/util/types"

Package types defines types used only by volume components

Index

Package Files

types.go

Constants

const (
    // VolumeResizerKey is key that will be used to store resizer used
    // for resizing PVC. The generated key/value pair will be added
    // as a annotation to the PVC.
    VolumeResizerKey = "volume.kubernetes.io/storage-resizer"
)

func IsFilesystemMismatchError Uses

func IsFilesystemMismatchError(err error) bool

IsFilesystemMismatchError checks if mount failed because requested filesystem on PVC and actual filesystem on disk did not match

func IsOperationFinishedError Uses

func IsOperationFinishedError(err error) bool

IsOperationFinishedError checks if given error is of type that indicates operation is finished with a FINAL error.

func IsUncertainProgressError Uses

func IsUncertainProgressError(err error) bool

IsUncertainProgressError checks if given error is of type that indicates operation might be in-progress in background.

type GeneratedOperations Uses

type GeneratedOperations struct {
    // Name of operation - could be used for resetting shared exponential backoff
    OperationName     string
    OperationFunc     func() (eventErr error, detailedErr error)
    EventRecorderFunc func(*error)
    CompleteFunc      func(*error)
}

GeneratedOperations contains the operation that is created as well as supporting functions required for the operation executor

func (*GeneratedOperations) Run Uses

func (o *GeneratedOperations) Run() (eventErr, detailedErr error)

Run executes the operations and its supporting functions

type TransientOperationFailure Uses

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

TransientOperationFailure indicates operation failed with a transient error and may fix itself when retried.

func NewTransientOperationFailure Uses

func NewTransientOperationFailure(msg string) *TransientOperationFailure

NewTransientOperationFailure creates an instance of TransientOperationFailure error

func (*TransientOperationFailure) Error Uses

func (err *TransientOperationFailure) Error() string

type UncertainProgressError Uses

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

UncertainProgressError indicates operation failed with a non-final error and operation may be in-progress in background.

func NewUncertainProgressError Uses

func NewUncertainProgressError(msg string) *UncertainProgressError

NewUncertainProgressError creates an instance of UncertainProgressError type

func (*UncertainProgressError) Error Uses

func (err *UncertainProgressError) Error() string

type UniquePVCName Uses

type UniquePVCName types.UID

UniquePVCName defines the type to key pvc off

type UniquePodName Uses

type UniquePodName types.UID

UniquePodName defines the type to key pods off of

Package types imports 4 packages (graph) and is imported by 407 packages. Updated 2020-02-26. Refresh now. Tools for package owners.