summary

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 10 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// True ==
	// False == error
	// Unknown == transitioning
	TransitioningUnknown = map[string]string{
		"Active":                      "activating",
		"AddonDeploy":                 "provisioning",
		"AgentDeployed":               "provisioning",
		"BackingNamespaceCreated":     "configuring",
		"Built":                       "building",
		"CertsGenerated":              "provisioning",
		"ConfigOK":                    "configuring",
		"Created":                     "creating",
		"CreatorMadeOwner":            "configuring",
		"DefaultNamespaceAssigned":    "configuring",
		"DefaultNetworkPolicyCreated": "configuring",
		"DefaultProjectCreated":       "configuring",
		"DockerProvisioned":           "provisioning",
		"Deployed":                    "deploying",
		"Drained":                     "draining",
		"Downloaded":                  "downloading",
		"etcd":                        "provisioning",
		"Inactive":                    "deactivating",
		"Initialized":                 "initializing",
		"Installed":                   "installing",
		"NodesCreated":                "provisioning",
		"Pending":                     "pending",
		"PodScheduled":                "scheduling",
		"Provisioned":                 "provisioning",
		"Refreshed":                   "refreshed",
		"Registered":                  "registering",
		"Removed":                     "removing",
		"Saved":                       "saving",
		"Updated":                     "updating",
		"Updating":                    "updating",
		"Upgraded":                    "upgrading",
		"Waiting":                     "waiting",
		"InitialRolesPopulated":       "activating",
		"ScalingActive":               "pending",
		"AbleToScale":                 "pending",
		"RunCompleted":                "running",
		"Processed":                   "processed",
	}

	// True == error
	// False ==
	// Unknown ==
	ErrorTrue = map[string]bool{
		"OutOfDisk":           true,
		"MemoryPressure":      true,
		"DiskPressure":        true,
		"NetworkUnavailable":  true,
		"KernelHasNoDeadlock": true,
		"Unschedulable":       true,
		"ReplicaFailure":      true,
	}

	// True ==
	// False == error
	// Unknown ==
	ErrorFalse = map[string]bool{
		"Failed":      true,
		"Progressing": true,
	}

	// True ==
	// False == transitioning
	// Unknown == error
	TransitioningFalse = map[string]string{
		"Completed":   "activating",
		"Ready":       "unavailable",
		"Available":   "updating",
		"Progressing": "inactive",
	}

	Summarizers []Summarizer
)

Functions

This section is empty.

Types

type Condition

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

func (Condition) Message

func (c Condition) Message() string

func (Condition) Reason

func (c Condition) Reason() string

func (Condition) Status

func (c Condition) Status() string

func (Condition) Type

func (c Condition) Type() string

type SummarizedObject added in v0.5.1

type SummarizedObject struct {
	metav1.PartialObjectMetadata
	Summary
}

func Summarized added in v0.5.1

func Summarized(u runtime.Object) *SummarizedObject

func (*SummarizedObject) DeepCopy added in v0.5.1

func (in *SummarizedObject) DeepCopy() *SummarizedObject

func (*SummarizedObject) DeepCopyInto added in v0.5.1

func (in *SummarizedObject) DeepCopyInto(out *SummarizedObject)

func (*SummarizedObject) DeepCopyObject added in v0.5.1

func (in *SummarizedObject) DeepCopyObject() runtime.Object

type SummarizedObjectList added in v0.5.1

type SummarizedObjectList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []SummarizedObject `json:"items" protobuf:"bytes,2,rep,name=items"`
}

func (*SummarizedObjectList) DeepCopy added in v0.5.1

func (*SummarizedObjectList) DeepCopyInto added in v0.5.1

func (in *SummarizedObjectList) DeepCopyInto(out *SummarizedObjectList)

func (*SummarizedObjectList) DeepCopyObject added in v0.5.1

func (in *SummarizedObjectList) DeepCopyObject() runtime.Object

type Summarizer

type Summarizer func(obj data.Object, conditions []Condition, summary Summary) Summary

type Summary

type Summary struct {
	State         string
	Error         bool
	Transitioning bool
	Message       []string
}

func Summarize

func Summarize(runtimeObj runtime.Object) Summary

func (*Summary) DeepCopy added in v0.5.1

func (s *Summary) DeepCopy() *Summary

func (*Summary) DeepCopyInto added in v0.5.1

func (s *Summary) DeepCopyInto(v *Summary)

func (Summary) IsReady added in v0.5.1

func (s Summary) IsReady() bool

func (Summary) String added in v0.5.1

func (s Summary) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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