Documentation ¶
Index ¶
- type Manifest
- func (manifest Manifest) AddApplication(appName string) (app map[interface{}]interface{})
- func (manifest Manifest) ApplicationName() string
- func (manifest Manifest) Applications() (apps []interface{})
- func (manifest Manifest) FirstApplication() map[interface{}]interface{}
- func (manifest Manifest) RemoveAllButFirstApplication()
- func (manifest Manifest) Save(path string) (err error)
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 NewManifestFromPath ¶
NewManifestFromPath creates a Manifest from a manifest.yml file
func NewSSHManifest ¶
NewSSHManifest prepares for a new cf-ssh.yml
func NewSSHManifestFromManifestPath ¶
NewSSHManifestFromManifestPath prepares for a new cf-ssh.yml based on existing manifest.yml
func (Manifest) AddApplication ¶
AddApplication adds a default manifestApp
func (Manifest) ApplicationName ¶
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
Click to show internal directories.
Click to hide internal directories.