kln

package
v0.0.0-...-f0f161b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RFC3339 = "2006-01-02T15:04:05Z07:00"
)

Variables

View Source
var ErrorLog = log.New(os.Stdout, "ERROR: ", log.Ldate|log.Ltime|log.Lshortfile)
View Source
var InfoLog = log.New(os.Stdout, "INFO: ", log.Ldate|log.Ltime|log.Lshortfile)
View Source
var WarningLog = log.New(os.Stdout, "WARNING: ", log.Ldate|log.Ltime|log.Lshortfile)

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 GetDynamicClient(kubeconfig string) dynamic.Interface

func ReadFile

func ReadFile(file string) []byte

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"`
}

Jump to

Keyboard shortcuts

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