Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteResources(client dynamic.Interface, gvr schema.GroupVersionResource) error
- func FlagForDeletion(client dynamic.Interface, ri ResourceIdentifier, cleanSwitch bool) error
- func GetDynamicClient(kubeconfig string) dynamic.Interface
- func ListResources(client dynamic.Interface, ri ResourceIdentifier) ([]unstructured.Unstructured, error)
- func ReadFile(file string) []byte
- type ResourceIdentifier
Constants ¶
View Source
const (
RFC3339 = "2006-01-02T15:04:05Z07:00"
)
Variables ¶
Functions ¶
func DeleteResources ¶
func DeleteResources(client dynamic.Interface, gvr schema.GroupVersionResource) error
func FlagForDeletion ¶
func FlagForDeletion(client dynamic.Interface, ri ResourceIdentifier, cleanSwitch bool) error
func GetDynamicClient ¶
func ListResources ¶
func ListResources(client dynamic.Interface, ri ResourceIdentifier) ([]unstructured.Unstructured, error)
Types ¶
type ResourceIdentifier ¶
type ResourceIdentifier struct { GVR schema.GroupVersionResource `yaml:"gvr"` MinAge float64 `yaml:"minAge"` Metadata map[string]interface{} `yaml:"metadata"` Spec map[string]interface{} `yaml:"spec"` Status map[string]interface{} `yaml:"status"` Name string `yaml:"name"` Description string `yaml:"description"` }
Click to show internal directories.
Click to hide internal directories.