context

package
v3.3.1-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Log                coblog.Log
	Version            string
	ConfigPath         string
	ConfigDir          string
	Namespace          Namespace
	Quiet              bool
	Changed            bool
	Client             chClient.Client
	AllowSelfSignedTLS bool
}

func (*Context) ExitCommand

func (ctx *Context) ExitCommand()

func (*Context) GetClient

func (ctx *Context) GetClient() *chClient.Client

func (*Context) GetStorable

func (ctx *Context) GetStorable() Storable

func (*Context) SetAPI

func (ctx *Context) SetAPI(api string) *Context

func (*Context) SetNamespace

func (ctx *Context) SetNamespace(ns namespace.Namespace) *Context

func (*Context) SetStorable

func (ctx *Context) SetStorable(config Storable) (configVersion string)

func (*Context) StartCommand

func (ctx *Context) StartCommand(command string)

type Namespace

type Namespace struct {
	ID         string
	Label      string
	OwnerLogin string
}

func NamespaceFromModel

func NamespaceFromModel(ns namespace.Namespace) Namespace

func (Namespace) IsEmpty

func (ns Namespace) IsEmpty() bool

func (Namespace) String

func (ns Namespace) String() string

type Storable

type Storable struct {
	Namespace          Namespace
	Username           string
	Password           string
	API                string
	Version            string
	AllowSelfSignedTLS bool
}

func (Storable) Merge

func (config Storable) Merge(upd Storable) Storable

Jump to

Keyboard shortcuts

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