object

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer added in v0.3.0

func AddFinalizer(obj metav1.Object, name string)

AddFinalizer adds the named finalizer to obj, if it isn't already present.

func GetObservedGeneration

func GetObservedGeneration(obj map[string]interface{}) int64

func HasFinalizer added in v0.3.0

func HasFinalizer(obj metav1.Object, name string) bool

HasFinalizer returns true if obj has the named finalizer.

func RemoveFinalizer added in v0.3.0

func RemoveFinalizer(obj metav1.Object, name string)

RemoveFinalizer removes the named finalizer from obj, if it's present.

func SetCondition

func SetCondition(status map[string]interface{}, condition *StatusCondition)

func SetStatusCondition

func SetStatusCondition(obj map[string]interface{}, condition *StatusCondition)

Types

type StatusCondition

type StatusCondition struct {
	Type    string `json:"type"`
	Status  string `json:"status"`
	Reason  string `json:"reason,omitempty"`
	Message string `json:"message,omitempty"`
}

func GetStatusCondition

func GetStatusCondition(obj map[string]interface{}, conditionType string) *StatusCondition

func NewStatusCondition

func NewStatusCondition(obj map[string]interface{}) *StatusCondition

func (*StatusCondition) Object

func (c *StatusCondition) Object() map[string]interface{}

Jump to

Keyboard shortcuts

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