conditions

package
v0.30.42 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicOptions

type DynamicOptions struct {
	Client    dynamic.Interface
	GVR       schema.GroupVersionResource
	Kind      string
	Name      string
	Namespace string
}

func (*DynamicOptions) GetCondition

func (do *DynamicOptions) GetCondition(condType string) (int, *kmapi.Condition, error)

func (*DynamicOptions) HasCondition

func (do *DynamicOptions) HasCondition(condType string) (bool, error)

func (*DynamicOptions) IsConditionTrue

func (do *DynamicOptions) IsConditionTrue(condType string) (bool, error)

func (*DynamicOptions) ReadConditions

func (do *DynamicOptions) ReadConditions() (*unstructured.Unstructured, []kmapi.Condition, error)

func (*DynamicOptions) RemoveCondition

func (do *DynamicOptions) RemoveCondition(condType string) error

func (*DynamicOptions) SetCondition

func (do *DynamicOptions) SetCondition(newCond kmapi.Condition) error

func (*DynamicOptions) UpdateConditions added in v0.24.4

func (do *DynamicOptions) UpdateConditions(conditions []kmapi.Condition) error

Jump to

Keyboard shortcuts

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