server

package
v0.0.3-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoConfig = errors.New("no config found")

Functions

func ConfigHome

func ConfigHome() (string, error)

func K8sConfPath

func K8sConfPath() (string, error)

func Paths

func Paths() (string, string, string, error)

func RioConfPath

func RioConfPath() (string, error)

func SpaceClient

func SpaceClient(conf string, k8s bool) (*spaceclient.Client, error)

Types

type Context

type Context struct {
	CLIContext *cli.Context
	Domain     string
	Client     *client.Client

	DefaultStackName string
	SpaceID          string
	// contains filtered or unexported fields
}

func NewContext

func NewContext(app *cli.Context) (*Context, error)

func (*Context) ClientLookup added in v0.0.3

func (c *Context) ClientLookup(typeName string) clientbase.APIBaseClientInterface

func (*Context) Close

func (c *Context) Close() error

func (*Context) ResolveSpaceStackName

func (c *Context) ResolveSpaceStackName(in string) (string, string, string, error)

func (*Context) SpaceClient

func (c *Context) SpaceClient() (*spaceclient.Client, error)

type ContextBuilder

type ContextBuilder struct {
	// contains filtered or unexported fields
}

func NewContextBuilder

func NewContextBuilder(config string, k8s bool) (*ContextBuilder, error)

func (*ContextBuilder) Client

func (c *ContextBuilder) Client(space string) (*client.Client, error)

func (*ContextBuilder) Domain

func (c *ContextBuilder) Domain() (string, error)

func (*ContextBuilder) SpaceClient

func (c *ContextBuilder) SpaceClient() (*spaceclient.Client, error)

Jump to

Keyboard shortcuts

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