login

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package login is for the get command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdLogin

func NewCmdLogin(t *terminal.Terminal, loginStore LoginStore) *cobra.Command

Types

type LoginOptions

type LoginOptions struct{}

func (*LoginOptions) Complete

func (o *LoginOptions) Complete(_ *terminal.Terminal, _ *cobra.Command, _ []string) error

func (*LoginOptions) RunLogin

func (o *LoginOptions) RunLogin(t *terminal.Terminal, _ *cobra.Command, _ []string, loginStore LoginStore) error

func (*LoginOptions) Validate

func (o *LoginOptions) Validate(_ *terminal.Terminal, _ *cobra.Command, _ []string) error

type LoginStore added in v0.3.0

type LoginStore interface {
	CreateUser(idToken string) (*brevapi.User, error)
	GetOrganizations() ([]brevapi.Organization, error)
	CreateOrganization(req store.CreateOrganizationRequest) (*brevapi.Organization, error)
}

Jump to

Keyboard shortcuts

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