openshift

package
v0.0.0-...-914c13f Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 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 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.

Jump to

Keyboard shortcuts

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