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

client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient struct {
	V1 AuthClientV1
}

AuthClient represents the concrete clientset implementation

func NewForConfig

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

NewForConfig returns a new clientset for a given configuration

func (*AuthClient) ClientV1

func (cs *AuthClient) ClientV1() AuthClientV1

ClientV1 returns the Clientsets V1 client

type AuthClientConfig

type AuthClientConfig struct {
	Path        string
	TLSCert     string
	TLSKey      string
	TLSClientCA string
}

AuthClientConfig represents the clientset configuration

type AuthClientV1

type AuthClientV1 interface {
	Login(username, password string) (string, error)
	Authenticate(bearerToken string) (bool, error)
}

AuthClientV1 represents a v1 authproxy client

type ClientSet

type ClientSet interface {
	ClientV1() AuthClientV1
}

ClientSet represents a new clientset for authproxy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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