auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 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 TLSAuthProvider

type TLSAuthProvider struct {
	// contains filtered or unexported fields
}

func NewAuthenticationTLS

func NewAuthenticationTLS(certificatePath string, privateKeyPath string) *TLSAuthProvider

NewAuthenticationTLS initialize the authentication provider

func NewAuthenticationTLSWithParams

func NewAuthenticationTLSWithParams(params map[string]string) *TLSAuthProvider

NewAuthenticationTLSWithParams initialize the authentication provider with map param.

func (*TLSAuthProvider) GetTLSCertificate

func (p *TLSAuthProvider) GetTLSCertificate() (*tls.Certificate, error)

func (*TLSAuthProvider) Init

func (p *TLSAuthProvider) Init() error

func (*TLSAuthProvider) Name

func (p *TLSAuthProvider) Name() string

type TokenAuthProvider

type TokenAuthProvider struct {
	// contains filtered or unexported fields
}

func NewAuthenticationToken

func NewAuthenticationToken(token string) *TokenAuthProvider

NewAuthenticationToken return a interface of Provider with a string token.

func NewAuthenticationTokenFromFile

func NewAuthenticationTokenFromFile(tokenFilePath string) *TokenAuthProvider

NewAuthenticationTokenFromFile return a interface of a Provider with a string token file path.

func NewAuthenticationTokenWithParams

func NewAuthenticationTokenWithParams(params map[string]string) (*TokenAuthProvider, error)

NewAuthenticationTokenWithParams return a interface of Provider with string map.

func (*TokenAuthProvider) GetData

func (p *TokenAuthProvider) GetData() ([]byte, error)

func (*TokenAuthProvider) Init

func (p *TokenAuthProvider) Init() error

Jump to

Keyboard shortcuts

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