session

package
v0.7.18 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppName

func AppName() string

func Executable

func Executable() string

func ExecutableFolder

func ExecutableFolder() string

Types

type Context

type Context struct {
	Privileged    bool          `json:"-"`
	Meta          *release.Info `json:"-"`
	CmdLine       *viper.Viper  `json:"-"`
	ServerAddress string
	*user.User    `json:"User"`
	*Network      `json:"Network"`
}

Context ...

var (
	// Caller ...
	Caller               *Context
	ErrServerUnreachable = fmt.Errorf("Failed to connect to server\n" +
		"Please check your connection settings and ensure that 'corectld' " +
		"is running.\n")
)

func New

func New() (ctx *Context, err error)

New session context

func (*Context) ConfigDir

func (ctx *Context) ConfigDir() string

ConfigDir ...

func (*Context) Debug

func (ctx *Context) Debug() bool

Debug ...

func (*Context) EtcDir added in v0.7.1

func (ctx *Context) EtcDir() string

EtcDir ...

func (*Context) ImageStore

func (ctx *Context) ImageStore() string

ImageStore ...

func (*Context) JSON

func (ctx *Context) JSON() bool

JSON ...

func (*Context) NormalizeOnDiskLayout

func (ctx *Context) NormalizeOnDiskLayout() (err error)

NormalizeOnDiskLayout ...

func (*Context) RunDir

func (ctx *Context) RunDir() string

RunDir ...

func (*Context) TmpDir

func (ctx *Context) TmpDir() string

TmpDir ...

type Network

type Network struct {
	Address string
	Mask    string
}

Network ...

func (*Network) Base

func (n *Network) Base() string

Base IP

func (*Network) SetContext added in v0.7.17

func (ctx *Network) SetContext() (err error)

Jump to

Keyboard shortcuts

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