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
Click to show internal directories.
Click to hide internal directories.