Documentation
¶
Index ¶
- Variables
- func NewApiClient(host string, skipTLSVerify bool) (*api.APIClient, error)
- func NewApiContext(token string) context.Context
- func NewRootCmd() (*cobra.Command, error)
- func Run() error
- type ClientConfigV0dot1
- type ClientConfigV0dot2
- type ClientRegistryConfig
- type CodeResponse
- type ErrResultTimedOut
- type LocalServer
- type LoginOptions
- type VersionOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigNotFound = errors.New("Could not read local credentials. Are you logged in? Use \"infra login\" to login.")
Functions ¶
func NewApiClient ¶ added in v0.1.3
func NewApiContext ¶ added in v0.1.3
func NewRootCmd ¶ added in v0.0.3
Types ¶
type ClientConfigV0dot1 ¶ added in v0.3.0
type ClientConfigV0dot1 struct { Version string `json:"version"` // always blank in v0.1 Name string `json:"name"` Host string `json:"host"` Token string `json:"token"` SkipTLSVerify bool `json:"skip-tls-verify"` SourceID string `json:"source-id"` }
func (ClientConfigV0dot1) ToV0dot2 ¶ added in v0.3.0
func (c ClientConfigV0dot1) ToV0dot2() *ClientConfigV0dot2
ToV0dot2 upgrades the config to the 0.2 version
type ClientConfigV0dot2 ¶ added in v0.3.0
type ClientConfigV0dot2 struct { Version string `json:"version"` // always 0.2 in v0.2 Registries []ClientRegistryConfig `json:"registries"` }
func NewClientConfig ¶ added in v0.3.0
func NewClientConfig() *ClientConfigV0dot2
type ClientRegistryConfig ¶ added in v0.3.0
type CodeResponse ¶
type ErrResultTimedOut ¶ added in v0.3.2
type ErrResultTimedOut struct{}
func (*ErrResultTimedOut) Error ¶ added in v0.3.2
func (e *ErrResultTimedOut) Error() string
type LocalServer ¶
type LocalServer struct { ResultChan chan CodeResponse // contains filtered or unexported fields }
type LoginOptions ¶ added in v0.3.2
type VersionOptions ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.