types

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FmtResponseChanUClosed = "%w: Response chan unexpectable closed"
	FmtKW                  = "%s: %s"
	FmtErrKW               = "%s: %w"
	FmtRFC3339             = "2006-01-02T15:04:05.00000Z07"
)

Variables

View Source
var (
	Error                  = errors.New("")
	ErrorUndefined         = fmt.Errorf("not defined%w", Error)
	ErrorClusterUndefined  = fmt.Errorf("cluster %w", ErrorUndefined)
	ErrorRegionUndefined   = fmt.Errorf("region %w", ErrorUndefined)
	ErrorProviderUndefined = fmt.Errorf("provider %w", ErrorUndefined)

	ErrorObjLookup          = fmt.Errorf("%w", Error)
	ErrorNotFound           = fmt.Errorf("not found%w", ErrorObjLookup)
	ErrorMoreThanOne        = fmt.Errorf("more than one%w", ErrorObjLookup)
	ErrorInoperable         = fmt.Errorf("inoperable%w", Error)
	ErrorWrong              = fmt.Errorf("wrong%w", Error)
	ErrorWrongFormat        = fmt.Errorf("%w format", ErrorWrong)
	ErrorWrongObject        = fmt.Errorf("%w object", ErrorWrong)
	ErrorWrongName          = fmt.Errorf("%w name", ErrorWrong)
	ErrorWrongParametr      = fmt.Errorf("%w parameter", ErrorWrong)
	ErrorWrongRequest       = fmt.Errorf("%w request", ErrorWrong)
	ErrorTimeoutOrCancel    = fmt.Errorf("timeout or cancel%w", Error)
	ErrorUnableToAllocate   = fmt.Errorf("unable to allocate%w", Error)
	ErrorDoNothing          = fmt.Errorf("do nothing%w", Error)
	ErrorSomethingWentWrong = fmt.Errorf("Something went wrong%w", Error)
)

Functions

This section is empty.

Types

type K8sObject

type K8sObject interface {
	GetFinalizers() []string
	GetAnnotations() map[string]string
	GetLabels() map[string]string
	GetNamespace() string
	GetName() string
	GetUID() types.UID
	GetOwnerReferences() []metav1.OwnerReference
	SetAnnotations(map[string]string)
	SetFinalizers([]string)
	SetLabels(map[string]string)
	SetOwnerReferences([]metav1.OwnerReference)
}

K8sObject -- Minimalistic interface, described k8s object

type TimeInterval

type TimeInterval [2]time.Time // [0]--startTime, [1]--finishTime

Jump to

Keyboard shortcuts

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