clientgo

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InConfig = true

Functions

func DeleteResource

func DeleteResource(resource *Resource) error

func GetFilter

func GetFilter(group, version, kind string) string

func GetSecret

func GetSecret(name, namespace string) (s *v1.Secret, err error)

Types

type Resource

type Resource struct {
	Group     string
	Version   string
	Resource  string
	Kind      string
	Name      string
	Namespace string
	Labels    map[string]string
}

func GetResource

func GetResource(group, version, resource, namespace, name string) (*Resource, error)

func ListResources

func ListResources(monitor mntr.Monitor, resourceInfoList []*ResourceInfo, labels map[string]string) ([]*Resource, error)

type ResourceInfo

type ResourceInfo struct {
	Group      string
	Version    string
	Resource   string
	Namespaced bool
}

func GetGroupVersionsResources

func GetGroupVersionsResources(filtersResources []string) ([]*ResourceInfo, error)

type ResourceSorter

type ResourceSorter []*Resource

func (ResourceSorter) Len

func (a ResourceSorter) Len() int

func (ResourceSorter) Less

func (a ResourceSorter) Less(i, j int) bool

func (ResourceSorter) Swap

func (a ResourceSorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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