Documentation
¶
Overview ¶
Package resource contains the definition of the Resource used by all trace printers, and the client used to get a Resource and its children.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct {
Unstructured unstructured.Unstructured `json:"object"`
Error error `json:"error,omitempty"`
Children []*Resource `json:"children,omitempty"`
}
Resource struct represents a kubernetes resource.
func GetResource ¶
GetResource returns the requested Resource, setting any error as Resource.Error.
func (*Resource) GetCondition ¶
func (r *Resource) GetCondition(ct xpv2.ConditionType) xpv2.Condition
GetCondition of this resource.
type ResourceList ¶
ResourceList struct represents a list of kubernetes resources. revive:disable-next-line:exported For consistency with Resource.
func ListResources ¶
func ListResources(ctx context.Context, c client.Client, ref *v1.ObjectReference) *ResourceList
ListResources returns requested Resources matching the references, setting any error as Resource.Error.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package xpkg contains the client to get a Crossplane package with all its dependencies as a tree of Resource.
|
Package xpkg contains the client to get a Crossplane package with all its dependencies as a tree of Resource. |
|
Package xrm contains the client to get a Crossplane resource with all its children as a tree of Resource.
|
Package xrm contains the client to get a Crossplane resource with all its children as a tree of Resource. |
Click to show internal directories.
Click to hide internal directories.