charonctl

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	Ctx context.Context
	// contains filtered or unexported fields
}

func NewConsole

func NewConsole(opts ConsoleOpts) (*Console, error)

func (*Console) ObtainRefreshToken

func (cort *Console) ObtainRefreshToken(ctx context.Context, arg *ObtainRefreshTokenArg) error

func (*Console) RegisterUser

func (cru *Console) RegisterUser(ctx context.Context, arg *RegisterUserArg) error

type ConsoleOpts

type ConsoleOpts struct {
	Conn     *grpc.ClientConn
	Username string
	Password string
}

type Error

type Error struct {
	Msg string
	Err error
}

func (*Error) Error

func (e *Error) Error() string

Error implements error interface.

type ObtainRefreshTokenArg

type ObtainRefreshTokenArg struct {
	Notes       string
	ExpireAfter time.Duration
}

type RegisterUserArg

type RegisterUserArg struct {
	IfNotExists bool
	Username    string
	Password    string
	FirstName   string
	LastName    string
	Superuser   bool
	Confirmed   bool
	Staff       bool
	Active      bool
	Permissions charon.Permissions
}

Jump to

Keyboard shortcuts

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