noop

package
v0.0.0-...-d2b1cdf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityClient

type SecurityClient struct{}

SecurityClient returns token which returns nil for every call

func NewNoopSecurityClient

func NewNoopSecurityClient() *SecurityClient

NewNoopSecurityClient returns SecurityClient

func (*SecurityClient) GetToken

func (c *SecurityClient) GetToken() auth.Token

GetToken returns a token for noop auth

type SecurityManager

type SecurityManager struct{}

SecurityManager accepts all auth requests

func NewNoopSecurityManager

func NewNoopSecurityManager() *SecurityManager

NewNoopSecurityManager returns SecurityManager

func (*SecurityManager) Authenticate

func (m *SecurityManager) Authenticate(token auth.Token) (auth.User, error)

Authenticate always return success

func (*SecurityManager) RedactToken

func (m *SecurityManager) RedactToken(token auth.Token)

RedactToken is noop

Jump to

Keyboard shortcuts

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