manifest

package
v6.34.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: Apache-2.0 Imports: 6 Imported by: 178

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      types.NullByteSizeInMb
	DockerImage    string
	DockerPassword string
	DockerUsername string
	Domain         string
	// EnvironmentVariables can be any valid json type (ie, strings not
	// guaranteed, although CLI only ships strings).
	EnvironmentVariables    map[string]string
	HealthCheckHTTPEndpoint string
	HealthCheckTimeout      int
	// HealthCheckType attribute defines the number of seconds that is allocated
	// for starting an application.
	HealthCheckType string
	Hostname        string
	Instances       types.NullInt
	Memory          types.NullByteSizeInMb
	Name            string
	NoHostname      bool
	NoRoute         bool
	Path            string
	RandomRoute     bool
	Routes          []string
	RoutePath       string
	Services        []string
	StackName       string

	DeprecatedDomain     interface{}
	DeprecatedDomains    interface{}
	DeprecatedHost       interface{}
	DeprecatedHosts      interface{}
	DeprecatedNoHostname interface{}
}

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 GlobalFieldsError

type GlobalFieldsError struct {
	Fields []string
}

func (GlobalFieldsError) Error

func (e GlobalFieldsError) Error() string

type InheritanceFieldError

type InheritanceFieldError struct{}

func (InheritanceFieldError) Error

func (InheritanceFieldError) Error() string

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