cmd

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientTimeoutDuration = 5 * time.Minute

Functions

func NewRootCmd added in v0.0.3

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

func Run

func Run() error

func RunLocalClient added in v0.0.3

func RunLocalClient() error

Types

type CodeResponse

type CodeResponse struct {
	Code  string
	State string
	Error error
}

type Config

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

type LocalServer

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

type TokenTransport

type TokenTransport struct {
	Token     string
	Transport http.RoundTripper
}

func (*TokenTransport) RoundTrip

func (t *TokenTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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