cfmanifest

package
v0.1.1-0...-26d9b60 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2016 License: Apache-2.0, CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest map[string]interface{}

Manifest models a manifest.yml See http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html

func NewManifest

func NewManifest() (manifest *Manifest)

NewManifest creates a Manifest

func NewManifestFromPath

func NewManifestFromPath(manifestPath string) (manifest *Manifest, err error)

NewManifestFromPath creates a Manifest from a manifest.yml file

func NewSSHManifest

func NewSSHManifest(appName string) (manifest *Manifest)

NewSSHManifest prepares for a new cf-ssh.yml

func NewSSHManifestFromManifestPath

func NewSSHManifestFromManifestPath(manifestPath string) (manifest *Manifest, err error)

NewSSHManifestFromManifestPath prepares for a new cf-ssh.yml based on existing manifest.yml

func (Manifest) AddApplication

func (manifest Manifest) AddApplication(appName string) (app map[interface{}]interface{})

AddApplication adds a default manifestApp

func (Manifest) ApplicationName

func (manifest Manifest) ApplicationName() string

ApplicationName returns the "name" of the first application in the manifest

func (Manifest) Applications

func (manifest Manifest) Applications() (apps []interface{})

Applications returns the full list of applications

func (Manifest) FirstApplication

func (manifest Manifest) FirstApplication() map[interface{}]interface{}

FirstApplication returns the first application in the manifest

func (Manifest) RemoveAllButFirstApplication

func (manifest Manifest) RemoveAllButFirstApplication()

RemoveAllButFirstApplication removes all applications but the first

func (Manifest) Save

func (manifest Manifest) Save(path string) (err error)

Save the Manifest to a file in YAML format

Jump to

Keyboard shortcuts

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