clientgo

package
v1.5.13 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InConfig = true
View Source
var (
	Limit int64 = 50
)

Functions

func DeleteResource

func DeleteResource(resource *Resource) error

func GetClusterConfig added in v0.25.0

func GetClusterConfig() (*rest.Config, error)

func GetFilter

func GetFilter(group, version, kind string) string

func GetSecret

func GetSecret(name, namespace string) (*v1.Secret, 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(monitor mntr.Monitor, 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