summary

package
v0.0.0-...-52cadad Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Summarizers          []Summarizer
	ConditionSummarizers []Summarizer
)

Functions

func NormalizeConditions

func NormalizeConditions(runtimeObj runtime.Object)

Types

type Condition

type Condition struct {
	data.Object
}

func (Condition) Equals

func (c Condition) Equals(other Condition) bool

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 Relationship

type Relationship struct {
	Name         string
	Namespace    string
	ControlledBy bool
	Kind         string
	APIVersion   string
	Inbound      bool
	Type         string
	Selector     *metav1.LabelSelector
}

type SummarizedObject

type SummarizedObject struct {
	metav1.PartialObjectMetadata
	Summary
}

func Summarized

func Summarized(u runtime.Object) *SummarizedObject

func (*SummarizedObject) DeepCopy

func (in *SummarizedObject) DeepCopy() *SummarizedObject

func (*SummarizedObject) DeepCopyInto

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

func (*SummarizedObject) DeepCopyObject

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

type SummarizedObjectList

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

func (*SummarizedObjectList) DeepCopyInto

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

func (*SummarizedObjectList) DeepCopyObject

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                 `json:"state,omitempty"`
	Error         bool                   `json:"error,omitempty"`
	Transitioning bool                   `json:"transitioning,omitempty"`
	Message       []string               `json:"message,omitempty"`
	Attributes    map[string]interface{} `json:"-"`
	Relationships []Relationship         `json:"-"`
}

func Summarize

func Summarize(runtimeObj runtime.Object) Summary

func (*Summary) DeepCopy

func (s *Summary) DeepCopy() *Summary

func (*Summary) DeepCopyInto

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

func (Summary) IsReady

func (s Summary) IsReady() bool

func (Summary) String

func (s Summary) String() string

Jump to

Keyboard shortcuts

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