cmd

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiClient added in v0.1.3

func NewApiClient(host string, skipTLSVerify bool) (*api.APIClient, error)

func NewApiContext added in v0.1.3

func NewApiContext(token string) context.Context

func NewRootCmd added in v0.0.3

func NewRootCmd() (*cobra.Command, error)

func Run

func Run() error

Types

type CodeResponse

type CodeResponse struct {
	Code  string
	State string
	Error error
}

type Config

type Config struct {
	Name          string `json:"name"`
	Host          string `json:"host"`
	Token         string `json:"token"`
	SkipTLSVerify bool   `json:"skip-tls-verify"`
	SourceID      string `json:"source-id"`
}

type ErrUnauthenticated added in v0.0.15

type ErrUnauthenticated struct{}

func (*ErrUnauthenticated) Error added in v0.0.15

func (e *ErrUnauthenticated) Error() string

type LocalServer

type LocalServer struct {
	ResultChan chan CodeResponse
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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