manifest

package
v6.21.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 27, 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 App

type App 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)
	Route(string, string, string, string, int)
	GetContents() []models.Application
	Stack(string, string)
	AppPorts(string, []int)
	Save(f io.Writer) error
}

func NewGenerator

func NewGenerator() App

type Application

type Application 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"`
	Routes    []map[string]string    `yaml:"routes,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 Applications

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

type DiskRepository

type DiskRepository struct{}

func (DiskRepository) ReadManifest

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

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 Repository

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

func NewDiskRepository

func NewDiskRepository() (repo Repository)

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