manifest

package
v6.17.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppManifest

type AppManifest interface {
	BuildpackUrl(string, string)
	DiskQuota(string, int64)
	Memory(string, int64)
	Service(string, string)
	StartCommand(string, string)
	EnvironmentVars(string, string, string)
	HealthCheckTimeout(string, int)
	Instances(string, int)
	Domain(string, string, string)
	GetContents() []models.Application
	Stack(string, string)
	AppPorts(string, []int)
	Save(f io.Writer) error
}

func NewGenerator

func NewGenerator() AppManifest

type Manifest

type Manifest struct {
	Path string
	Data generic.Map
}

func NewEmptyManifest

func NewEmptyManifest() (m *Manifest)

func (Manifest) Applications

func (m Manifest) Applications() ([]models.AppParams, error)

type ManifestApplication

type ManifestApplication struct {
	Name       string                 `yaml:"name"`
	Instances  int                    `yaml:"instances,omitempty"`
	Memory     string                 `yaml:"memory,omitempty"`
	DiskQuota  string                 `yaml:"disk_quota,omitempty"`
	AppPorts   []int                  `yaml:"app-ports,omitempty"`
	Host       string                 `yaml:"host,omitempty"`
	Hosts      []string               `yaml:"hosts,omitempty"`
	Domain     string                 `yaml:"domain,omitempty"`
	Domains    []string               `yaml:"domains,omitempty"`
	NoHostname bool                   `yaml:"no-hostname,omitempty"`
	NoRoute    bool                   `yaml:"no-route,omitempty"`
	Buildpack  string                 `yaml:"buildpack,omitempty"`
	Command    string                 `yaml:"command,omitempty"`
	Env        map[string]interface{} `yaml:"env,omitempty"`
	Services   []string               `yaml:"services,omitempty"`
	Stack      string                 `yaml:"stack,omitempty"`
	Timeout    int                    `yaml:"timeout,omitempty"`
}

type ManifestApplications

type ManifestApplications struct {
	Applications []ManifestApplication `yaml:"applications"`
}

type ManifestDiskRepository

type ManifestDiskRepository struct{}

func (ManifestDiskRepository) ReadManifest

func (repo ManifestDiskRepository) ReadManifest(inputPath string) (*Manifest, error)

type ManifestRepository

type ManifestRepository interface {
	ReadManifest(string) (*Manifest, error)
}

func NewManifestDiskRepository

func NewManifestDiskRepository() (repo ManifestRepository)

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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