manifest

package
v7.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 15 Imported by: 134

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)
	HealthCheckType(string, string)
	HealthCheckHTTPEndpoint(string, string)
	Instances(string, int)
	Route(string, string, string, string, int)
	GetContents() []models.Application
	Stack(string, string)
	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"`
	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"`
	HealthCheckType         string                 `yaml:"health-check-type,omitempty"`
	HealthCheckHTTPEndpoint string                 `yaml:"health-check-http-endpoint,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
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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