claims

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCoreModule

func ApplyCoreModule(ctx context.Context, opts ModuleOpts) error

func List

func List(ctx context.Context, restConfig *rest.Config) ([]unstructured.Unstructured, error)

func WaitUntilModuleCoreIsReady

func WaitUntilModuleCoreIsReady(ctx context.Context, restConfig *rest.Config) error

func WaitUntilReady

func WaitUntilReady(ctx context.Context, restConfig *rest.Config, name string) error

Types

type Condition

type Condition struct {
	// Type of this condition. At most one of each condition type may apply to
	// a resource at any point in time.
	Type ConditionType `json:"type"`

	// Status of this condition; is it currently True, False, or Unknown?
	Status corev1.ConditionStatus `json:"status"`

	// LastTransitionTime is the last time this condition transitioned from one
	// status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime"`

	// A Reason for this condition's last transition from one status to another.
	Reason ConditionReason `json:"reason"`

	// A Message containing details about this condition's last transition from
	// one status to another, if any.
	Message string `json:"message,omitempty"`
}

A Condition that may apply to a resource.

type ConditionReason

type ConditionReason string

A ConditionReason represents the reason a resource is in a condition.

type ConditionType

type ConditionType string

A ConditionType represents a condition a resource could be in.

const (
	// A TypeReady indicates whether a resource is ready.
	TypeReady ConditionType = "Ready"
)

Condition types.

type ConditionedStatus

type ConditionedStatus struct {
	// Conditions of the resource.
	Conditions []Condition `json:"conditions,omitempty"`
}

A ConditionedStatus reflects the observed status of a resource. Only one condition of each type may exist.

type ModuleOpts

type ModuleOpts struct {
	RESTConfig *rest.Config
	Data       map[string]interface{}
}

Jump to

Keyboard shortcuts

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