ask

package
v1.5.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthenticator

func NewAuthenticator(p *policy.Policy, key *rsa.PrivateKey, nodeID string) authn.Authenticator

Types

type Responder added in v1.3.2

type Responder struct {
	Cmd *cobra.Command
}

func (*Responder) Respond added in v1.3.2

func (r *Responder) Respond(request *json.RawMessage) ([]byte, error)

Returns a responder that responds to authentication requirements of type `authn.MethodTypeAsk`. Reads the JSON Schema returned by the `ask` endpoint and uses it to ask appropriate questions to the user on their terminal, and then returns their response as serialized JSON.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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