plainauth

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

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

func (*AuthClient) Authenticate

func (auth *AuthClient) Authenticate(_ *websocket.Conn) error

func (*AuthClient) GetName

func (auth *AuthClient) GetName() string

func (*AuthClient) GetPubHash

func (auth *AuthClient) GetPubHash() (string, error)

func (*AuthClient) GetToken

func (auth *AuthClient) GetToken() (string, error)

func (*AuthClient) Init

func (auth *AuthClient) Init(reg elementalv1.Registration) error

type AuthServer

type AuthServer struct {
	context.Context
	client.Client
}

func New

func New(ctx context.Context, cl client.Client) *AuthServer

func (*AuthServer) Authenticate

func (a *AuthServer) Authenticate(_ *websocket.Conn, req *http.Request, regNamespace string) (*elementalv1.MachineInventory, bool, error)

Jump to

Keyboard shortcuts

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