Documentation ¶
Index ¶
- type KubeClient
- func (kubeClient *KubeClient) GetResourcesAndVerbsForGroup(apiGroup string) (sets.String, sets.String, error)
- func (kubeClient *KubeClient) GetVerbsForResource(apiGroup string, resource string) (sets.String, error)
- func (kubeClient *KubeClient) GetWorldPermissions() ([]rbacv1.PolicyRule, error)
- func (kubeClient *KubeClient) ListClusterRoleBindings() ([]rbacv1.ClusterRoleBinding, error)
- func (kubeClient *KubeClient) ListClusterRoles() ([]rbacv1.ClusterRole, error)
- func (kubeClient *KubeClient) ListPods(namespace string) ([]v1.Pod, error)
- func (kubeClient *KubeClient) ListRoleBindings(namespace string) ([]rbacv1.RoleBinding, error)
- func (kubeClient *KubeClient) ListRoles(namespace string) ([]rbacv1.Role, error)
- func (kubeClient *KubeClient) ListServiceAccounts(namespace string) ([]v1.ServiceAccount, error)
- func (kubeClient *KubeClient) Resolve(verb, groupresource string, subResource string) (schema.GroupResource, error)
- func (kubeClient *KubeClient) TokenReview(token string) (authn.UserInfo, error)
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) GetVerbsForResource ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.