auth

package
v0.0.0-...-a9cc36f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthStep

type AuthStep struct {
	ID           string
	CanGoBack    bool
	PreviousStep string
}

type ChoiceStep

type ChoiceStep struct {
	AuthStep
	Choices []string
}

func NewChoice

func NewChoice(id string, choices []string, previousStep string) ChoiceStep

func (ChoiceStep) StepInfo

func (s ChoiceStep) StepInfo() AuthStep

func (ChoiceStep) ToProtoV1

func (s ChoiceStep) ToProtoV1() *authv1.AuthStep

type FormField

type FormField struct {
	Name string
	Type string
}

func NewField

func NewField(name, type_ string) FormField

type FormStep

type FormStep struct {
	AuthStep
	Fields []FormField
}

func NewForm

func NewForm(id string, fields []FormField, previousStep string) FormStep

func (FormStep) StepInfo

func (s FormStep) StepInfo() AuthStep

func (FormStep) ToProtoV1

func (s FormStep) ToProtoV1() *authv1.AuthStep

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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