kube

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeClient

type KubeClient struct {
	Client *clientset.Clientset

	Config *restclient.Config

	// ServerPreferredResources returns the supported resources with the version preferred by the
	// server.
	ServerPreferredResources []*metav1.APIResourceList
	// contains filtered or unexported fields
}

func NewClient

func NewClient(context string) (*KubeClient, error)

func (*KubeClient) GetClusterGodPermissions

func (kubeClient *KubeClient) GetClusterGodPermissions() ([]rbacv1.PolicyRule, error)

func (*KubeClient) GetResourcesAndVerbsForGroup

func (kubeClient *KubeClient) GetResourcesAndVerbsForGroup(apiGroup string) (sets.String, sets.String, error)

func (*KubeClient) GetVerbsForResource

func (kubeClient *KubeClient) GetVerbsForResource(apiGroup string, resource string) (sets.String, error)

Jump to

Keyboard shortcuts

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