out

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

View Source
const CfDockerPassword = "CF_DOCKER_PASSWORD"

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFoundry

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

func NewCloudFoundry

func NewCloudFoundry(verbose bool) *CloudFoundry

func (*CloudFoundry) Login

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

func (*CloudFoundry) PushApp

func (cf *CloudFoundry) PushApp(
	manifest string,
	path string,
	currentAppName string,
	vars map[string]interface{},
	varsFiles []string,
	dockerUser string,
	showLogs bool,
	noStart bool,
) 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, clientID string, clientSecret string, insecure bool) error
	Target(organization string, space string) error
	PushApp(manifest string, path string, currentAppName string, vars map[string]interface{}, varsFiles []string, dockerUser string, showLogs bool, noStart bool) error
}

type Params

type Params struct {
	ManifestPath         string                 `json:"manifest"`
	Path                 string                 `json:"path"`
	CurrentAppName       string                 `json:"current_app_name"`
	Vars                 map[string]interface{} `json:"vars"`
	VarsFiles            []string               `json:"vars_files"`
	EnvironmentVariables map[string]string      `json:"environment_variables"`
	DockerUsername       string                 `json:"docker_username"`
	DockerPassword       string                 `json:"docker_password"`
	ShowAppLog           bool                   `json:"show_app_log"`
	NoStart              bool                   `json:"no_start"`
}

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
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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