kube

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 19 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) 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)

func (*KubeClient) GetWorldPermissions

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

func (*KubeClient) ListClusterRoleBindings

func (kubeClient *KubeClient) ListClusterRoleBindings() ([]rbacv1.ClusterRoleBinding, error)

func (*KubeClient) ListClusterRoles

func (kubeClient *KubeClient) ListClusterRoles() ([]rbacv1.ClusterRole, error)

func (*KubeClient) ListPodSecurityPolicies added in v0.10.0

func (kubeClient *KubeClient) ListPodSecurityPolicies() ([]policy.PodSecurityPolicy, error)

ListPodSecurityPolicies Deprecated

func (*KubeClient) ListPods

func (kubeClient *KubeClient) ListPods(namespace string) ([]v1.Pod, error)

func (*KubeClient) ListRoleBindings

func (kubeClient *KubeClient) ListRoleBindings(namespace string) ([]rbacv1.RoleBinding, error)

func (*KubeClient) ListRoles

func (kubeClient *KubeClient) ListRoles(namespace string) ([]rbacv1.Role, error)

func (*KubeClient) ListServiceAccounts

func (kubeClient *KubeClient) ListServiceAccounts(namespace string) ([]v1.ServiceAccount, error)

func (*KubeClient) Resolve added in v1.1.0

func (kubeClient *KubeClient) Resolve(verb, groupresource string, subResource string) (schema.GroupResource, error)

func (*KubeClient) TokenReview added in v1.14.0

func (kubeClient *KubeClient) TokenReview(token string) (authn.UserInfo, error)

Jump to

Keyboard shortcuts

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