cmd

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INFRA_HIDDEN_DIR = ".infra"
	CLIENT_DIR       = "client"
)

Variables

View Source
var (
	ClientTimeoutDuration = 5 * time.Minute
)

Functions

func NewClient added in v0.0.8

func NewClient(host string, token string, skipTlsVerify bool) (v1.V1Client, context.CancelFunc, error)

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
}

Jump to

Keyboard shortcuts

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