configurations

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v1.3.0

func List

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

func WaitUntilHealtyAndInstalled added in v1.3.0

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

Types

type Condition added in v1.3.0

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 added in v1.3.0

type ConditionReason string

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

type ConditionType added in v1.3.0

type ConditionType string

A ConditionType represents a condition a resource could be in.

const (
	// A TypeInstalled indicates whether a package has been installed.
	TypeInstalled ConditionType = "Installed"

	// A TypeHealthy indicates whether a package is healthy.
	TypeHealthy ConditionType = "Healthy"
)

Condition types.

type ConditionedStatus added in v1.3.0

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 CreateOpts added in v1.3.0

type CreateOpts struct {
	RESTConfig *rest.Config
	Info       *catalog.PackageInfo
	HttpProxy  string
	HttpsProxy string
	NoProxy    string
}

Jump to

Keyboard shortcuts

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