auth

package
v1.1.167 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 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 API

type API interface {
	HasAuthMethod(auth core.MountPathEntity) (bool, error)
	ListAuthMethods() ([]*Method, error)
	DeleteAuthMethod(auth core.MountPathEntity) error
	CreateAuthMethod(auth MethodEntity) error
	ReadAuthMethod(auth core.MountPathEntity) (*Method, error)
}

func NewAPI

func NewAPI(core core.API) API

type Method

type Method struct {
	Path string
	Type Type
}

func (*Method) GetMethod

func (a *Method) GetMethod() (Type, error)

func (*Method) GetMountPath

func (a *Method) GetMountPath() (string, error)

type MethodEntity

type MethodEntity interface {
	core.MountPathEntity
	GetMethod() (Type, error)
}

type Type

type Type string
const (
	// MethodKubernetes authenticates all requests with a kubernetes service account token.
	MethodKubernetes Type = "kubernetes"
	// MethodToken authenticates all requests with a vault issued token.
	MethodToken Type = "token"
)

Jump to

Keyboard shortcuts

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