Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCAFile added in v1.0.3

func LoadCAFile(caFile string) (*x509.CertPool, error)

LoadCAFile loads a single PEM-encoded file from the path specified.

Types

type AuthClientConfig

type AuthClientConfig struct {
	Path string
	CA   string
}

AuthClientConfig represents the clientSet configuration

type ClientSet

type ClientSet interface {
	Login(username, password string) (string, error)
	Authenticate(bearerToken string) (*v1.TokenReviewRequest, error)
}

ClientSet represents a v1 authproxy client

func NewForConfig

func NewForConfig(c *AuthClientConfig) (ClientSet, error)

newClientV1ForConfig returns a new v1 client for a given config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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