cli

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromtForLogin

func PromtForLogin() (loginRequest *auth.LoginRequest, err error)

Types

type Session

type Session struct {
	URL   string `json:"url"`
	Token string `json:"token"`
}

func ContinueSession

func ContinueSession() (session *Session, err error)

func NewSession

func NewSession(url string) *Session

func (*Session) Context

func (s *Session) Context() context.Context

func (*Session) HandleResponse

func (s *Session) HandleResponse(msg proto.Message, err error) error

HandleResponse handles the response and error message of an gRPC call

func (*Session) Save

func (s *Session) Save()

Save saves the session into the `.clouditor` folder in the home directory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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