cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitCommit string
	OsArch    string
	BuildDate string
	Version   string
)

Functions

func Execute

func Execute()

Execute is the entrypoint for the cmd package

Types

type Config

type Config struct {
	CurrentContext string          `yaml:"current-context" mapstructure:"current-context"`
	Servers        []ConfigServer  `yaml:"servers"`
	Users          []ConfigUser    `yaml:"users"`
	Contexts       []ConfigContext `yaml:"contexts"`
}

type ConfigContext

type ConfigContext struct {
	Name   string `yaml:"name"`
	User   string `yaml:"user"`
	Server string `yaml:"server"`
}

type ConfigServer

type ConfigServer struct {
	Name    string `yaml:"name"`
	Host    string `yaml:"host"`
	Version string `yaml:"version"`
}

type ConfigUser

type ConfigUser struct {
	Name  string `yaml:"name"`
	Email string `yaml:"email"`
	Token string `yaml:"token"`
}

type CurrentConfig

type CurrentConfig struct {
	Name   string       `yaml:"name"`
	User   ConfigUser   `yaml:"user"`
	Server ConfigServer `yaml:"server"`
}

type Decoder added in v0.4.0

type Decoder interface {
	Decode(interface{}) error
}

type FileInput added in v0.4.0

type FileInput struct {
	Type     string                    `json:"type" yaml:"type"`
	Metadata gospeckle.RequestMetadata `json:"metadata" yaml:"metadata"`
	Spec     interface{}               `json:"spec" yaml:"spec"`
}

type RequestObjects added in v0.4.0

type RequestObjects struct {
	Projects []gospeckle.ProjectRequest
	Streams  []gospeckle.StreamRequest
	Clients  []gospeckle.APIClientRequest
}

func (RequestObjects) MakeRequests added in v0.4.0

func (r RequestObjects) MakeRequests(ctx context.Context, c *gospeckle.Client)

Jump to

Keyboard shortcuts

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