authentication

package
v1.2.120 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudAgentSpec = "CloudAgent"
	NodeAgentSpec  = "NodeAgent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationClient

type AuthenticationClient struct {
	security.BaseClient
	// contains filtered or unexported fields
}

Client structure

func NewAuthenticationClient

func NewAuthenticationClient(cloudFQDN string, authorizer auth.Authorizer) (*AuthenticationClient, error)

NewAuthenticationClient method returns new client used to connect to NodeAgent

func NewAuthenticationClientToServer added in v0.10.7

func NewAuthenticationClientToServer(cloudFQDN string, authorizer auth.Authorizer, serverSpec string) (*AuthenticationClient, error)

NewAuthenticationClientToServer method returns new client used to connect to NodeAgent or CloudAgent

func (*AuthenticationClient) Login

func (c *AuthenticationClient) Login(ctx context.Context, group string, identity *security.Identity) (*string, error)

Get methods invokes the client Get method

type Service

type Service interface {
	Login(context.Context, string, *security.Identity) (*string, error)
}

Service interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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