Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUnstructured ¶
func CreateUnstructured(resource, name, namespace, broker, crdFile string, spec map[string]interface{}, status map[string]interface{}) (unstructured.Unstructured, error)
Types ¶
type Metadata ¶
type Metadata struct {
Name string `json:"name" yaml:"name"`
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
Labels map[string]string `json:"labels" yaml:"labels"`
OwnerReferences []struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
BlockOwnerDeletion bool `json:"blockOwnerDeletion" yaml:"blockOwnerDeletion"`
Kind string `json:"kind" yaml:"kind"`
Name string `json:"name" yaml:"name"`
UID string `json:"uid" yaml:"uid"`
} `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
}
type Object ¶
type Object struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec map[string]interface{} `json:"spec,omitempty" yaml:"spec,omitempty"`
// for Secrets
Data map[string]string `json:"data,omitempty" yaml:"data,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.