commands

package
v6.0.0-beta+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func NewApi

func NewApi(ui terminal.UI, config *configuration.Configuration, endpointRepo api.EndpointRepository) (cmd Api)

func (Api) GetRequirements

func (cmd Api) GetRequirements(reqFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (Api) Run

func (cmd Api) Run(c *cli.Context)

func (Api) SetApiEndpoint

func (cmd Api) SetApiEndpoint(endpoint string)

type ApiEndpointSetter

type ApiEndpointSetter interface {
	SetApiEndpoint(endpoint string)
}

type Authenticate

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

func NewAuthenticate

func NewAuthenticate(ui terminal.UI, configRepo configuration.ConfigurationRepository, authenticator api.AuthenticationRepository) (cmd Authenticate)

func (Authenticate) GetRequirements

func (cmd Authenticate) GetRequirements(reqFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (Authenticate) Run

func (cmd Authenticate) Run(c *cli.Context)

type Command

type Command interface {
	GetRequirements(reqFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)
	Run(c *cli.Context)
}

type ConcreteFactory

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

func NewFactory

func NewFactory(ui terminal.UI, config *configuration.Configuration, configRepo configuration.ConfigurationRepository, repoLocator api.RepositoryLocator) (factory ConcreteFactory)

func (ConcreteFactory) GetByCmdName

func (f ConcreteFactory) GetByCmdName(cmdName string) (cmd Command, err error)

type ConcreteRunner

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

func NewRunner

func NewRunner(cmdFactory Factory, reqFactory requirements.Factory) (runner ConcreteRunner)

func (ConcreteRunner) RunCmdByName

func (runner ConcreteRunner) RunCmdByName(cmdName string, c *cli.Context) (err error)

type Factory

type Factory interface {
	GetByCmdName(cmdName string) (cmd Command, err error)
}

type Login

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

func NewLogin

func NewLogin(ui terminal.UI,
	configRepo configuration.ConfigurationRepository,
	authenticator api.AuthenticationRepository,
	endpointRepo api.EndpointRepository,
	orgRepo api.OrganizationRepository,
	spaceRepo api.SpaceRepository) (cmd Login)

func (Login) GetRequirements

func (cmd Login) GetRequirements(reqFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (Login) Run

func (cmd Login) Run(c *cli.Context)

type Logout

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

func NewLogout

func NewLogout(ui terminal.UI, configRepo configuration.ConfigurationRepository) (cmd Logout)

func (Logout) GetRequirements

func (cmd Logout) GetRequirements(reqFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (Logout) Run

func (cmd Logout) Run(c *cli.Context)

type Password

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

func NewPassword

func NewPassword(ui terminal.UI, pwdRepo api.PasswordRepository, configRepo configuration.ConfigurationRepository) (cmd Password)

func (Password) GetRequirements

func (cmd Password) GetRequirements(reqFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (Password) Run

func (cmd Password) Run(c *cli.Context)

type Runner

type Runner interface {
	RunCmdByName(cmdName string, c *cli.Context) (err error)
}

type Stacks

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

func NewStacks

func NewStacks(ui terminal.UI, config *configuration.Configuration, stacksRepo api.StackRepository) (cmd *Stacks)

func (*Stacks) GetRequirements

func (cmd *Stacks) GetRequirements(reqFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (*Stacks) Run

func (cmd *Stacks) Run(c *cli.Context)

type Target

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

func NewTarget

func NewTarget(ui terminal.UI,
	configRepo configuration.ConfigurationRepository,
	orgRepo api.OrganizationRepository,
	spaceRepo api.SpaceRepository) (cmd Target)

func (Target) GetRequirements

func (cmd Target) GetRequirements(reqFactory requirements.Factory, c *cli.Context) (reqs []requirements.Requirement, err error)

func (Target) Run

func (cmd Target) Run(c *cli.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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