manifest

package
v6.32.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteApplicationManifest

func WriteApplicationManifest(application Application, filePath string) error

WriteApplicationManifest writes the provided application to the given filepath. If the filepath does not exist, it will create it.

Types

type Application

type Application struct {
	Buildpack types.FilteredString
	Command   types.FilteredString
	// DiskQuota is the disk size in megabytes.
	DiskQuota      types.NullByteSizeInMb
	DockerImage    string
	DockerUsername string
	DockerPassword string
	// EnvironmentVariables can be any valid json type (ie, strings not
	// guaranteed, although CLI only ships strings).
	EnvironmentVariables    map[string]string
	HealthCheckHTTPEndpoint string
	// HealthCheckType attribute defines the number of seconds that is allocated
	// for starting an application.
	HealthCheckTimeout int
	HealthCheckType    string
	Instances          types.NullInt
	// Memory is the amount of memory in megabytes.
	Memory    types.NullByteSizeInMb
	Name      string
	NoRoute   bool
	Path      string
	Routes    []string
	Services  []string
	StackName string
}

func ReadAndMergeManifests

func ReadAndMergeManifests(pathToManifest string) ([]Application, error)

ReadAndMergeManifests reads the manifest at provided path and returns a fully merged set of applications.

func (Application) MarshalYAML

func (app Application) MarshalYAML() (interface{}, error)

func (Application) String

func (app Application) String() string

func (*Application) UnmarshalYAML

func (app *Application) UnmarshalYAML(unmarshaller func(interface{}) error) error

type Manifest

type Manifest struct {
	Applications []Application `yaml:"applications"`
}

func (*Manifest) UnmarshalYAML

func (manifest *Manifest) UnmarshalYAML(unmarshal func(interface{}) error) error

type ManifestCreationError

type ManifestCreationError struct {
	Err error
}

func (ManifestCreationError) Error

func (e ManifestCreationError) Error() string

type UnsupportedFieldsError

type UnsupportedFieldsError struct {
}

func (UnsupportedFieldsError) Error

func (e UnsupportedFieldsError) Error() string

Jump to

Keyboard shortcuts

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