Documentation ¶
Index ¶
- type KubeClient
- func (kubeClient *KubeClient) GetClusterGodPermissions() ([]rbacv1.PolicyRule, error)
- func (kubeClient *KubeClient) GetResourcesAndVerbsForGroup(apiGroup string) (sets.String, sets.String, error)
- func (kubeClient *KubeClient) GetVerbsForResource(apiGroup string, resource string) (sets.String, 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) GetClusterGodPermissions ¶
func (kubeClient *KubeClient) GetClusterGodPermissions() ([]rbacv1.PolicyRule, error)
func (*KubeClient) GetResourcesAndVerbsForGroup ¶
func (*KubeClient) GetVerbsForResource ¶
Click to show internal directories.
Click to hide internal directories.