Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SubjectAccessReview(user string, groups []string, verb, resource, resourceName, apiGroup, namespace string) (bool, error) ListNamespaces() ([]string, error) }
Client is the standard openshift client to check authentication and authorization for subjects.
func NewClient ¶
func NewClient(wt transport.WrapperFunc, kubeconfigPath, token string) (Client, error)
NewClient returns a new OpenShift client holding a pointer to a k8s clientset and a pointer to the OpenShift project clientset. Both clientset require a kube config file on a prescribed path or under $HOME/.kube. The loaded kube configuration is sanitized and augmented with the subject's forwarded bearer token.
Click to show internal directories.
Click to hide internal directories.