auth

package
v0.0.0-...-b044b52 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Authenticate(ctx context.Context, req *auth.LoginRequest) error
}

func NewGithub

func NewGithub() Driver

func NewLocal

func NewLocal(kubeClient client.Client, namespace string) Driver

func NewMemory

func NewMemory() Driver

type Github

type Github struct{}

func (Github) Authenticate

func (d Github) Authenticate(ctx context.Context, req *auth.LoginRequest) error

type Local

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

func (*Local) Authenticate

func (d *Local) Authenticate(ctx context.Context, req *auth.LoginRequest) error

type Memory

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

func (*Memory) Authenticate

func (d *Memory) Authenticate(ctx context.Context, req *auth.LoginRequest) error

type MultiAuth

type MultiAuth struct {
	Drivers map[auth.SecretType]Driver
}

func (*MultiAuth) Authenticate

func (d *MultiAuth) Authenticate(ctx context.Context, req *auth.LoginRequest) error

Jump to

Keyboard shortcuts

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