commands

package
v6.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2014 License: Apache-2.0 Imports: 25 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.Reader, 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, config configuration.Reader, 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.ReadWriter, manifestRepo manifest.ManifestRepository, 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 Curl

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

func NewCurl

func NewCurl(ui terminal.UI, config configuration.Reader, curlRepo api.CurlRepository) (cmd *Curl)

func (*Curl) GetRequirements

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

func (*Curl) Run

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

type Factory

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

type ListStacks

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

func NewListStacks

func NewListStacks(ui terminal.UI, config configuration.Reader, stacksRepo api.StackRepository) (cmd ListStacks)

func (ListStacks) GetRequirements

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

func (ListStacks) Run

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

type Login

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

func NewLogin

func NewLogin(ui terminal.UI,
	config configuration.ReadWriter,
	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, config configuration.ReadWriter) (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, config configuration.ReadWriter) (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 Target

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

func NewTarget

func NewTarget(ui terminal.UI,
	config configuration.ReadWriter,
	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