out

package
v0.0.0-...-4f5e3b4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFoundry

type CloudFoundry struct{}

func NewCloudFoundry

func NewCloudFoundry() *CloudFoundry

func (*CloudFoundry) Login

func (cf *CloudFoundry) Login(api string, username string, password string, insecure bool) error

func (*CloudFoundry) PushApp

func (cf *CloudFoundry) PushApp(manifest string, path string, currentAppName string) error

func (*CloudFoundry) Target

func (cf *CloudFoundry) Target(organization string, space string) error

type Command

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

func NewCommand

func NewCommand(paas PAAS) *Command

func (*Command) Run

func (command *Command) Run(request Request) (Response, error)

type Manifest

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

func NewManifest

func NewManifest(manifestPath string) (Manifest, error)

func (*Manifest) AddEnvironmentVariable

func (manifest *Manifest) AddEnvironmentVariable(name, value string)

func (*Manifest) EnvironmentVariables

func (manifest *Manifest) EnvironmentVariables() map[interface{}]interface{}

func (*Manifest) Save

func (manifest *Manifest) Save(manifestPath string) error

type PAAS

type PAAS interface {
	Login(api string, username string, password string, insecure bool) error
	Target(organization string, space string) error
	PushApp(manifest string, path string, currentAppName string) error
}

type Params

type Params struct {
	ManifestPath         string            `json:"manifest"`
	Path                 string            `json:"path"`
	CurrentAppName       string            `json:"current_app_name"`
	EnvironmentVariables map[string]string `json:"environment_variables"`
}

type Request

type Request struct {
	Source resource.Source `json:"source"`
	Params Params          `json:"params"`
}

type Response

type Response struct {
	Version  resource.Version        `json:"version"`
	Metadata []resource.MetadataPair `json:"metadata"`
}

Directories

Path Synopsis
cmd
out
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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