Documentation ¶
Index ¶
- func Create(ctx context.Context, opts CreateOpts) (*unstructured.Unstructured, error)
- func List(ctx context.Context, restConfig *rest.Config) ([]unstructured.Unstructured, error)
- func WaitUntilHealtyAndInstalled(ctx context.Context, restConfig *rest.Config, name string) error
- type Condition
- type ConditionReason
- type ConditionType
- type ConditionedStatus
- type CreateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶ added in v1.3.0
func Create(ctx context.Context, opts CreateOpts) (*unstructured.Unstructured, error)
func List ¶
func List(ctx context.Context, restConfig *rest.Config) ([]unstructured.Unstructured, 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
Click to show internal directories.
Click to hide internal directories.