templates

package
v0.21.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTemplatesBox

func NewTemplatesBox() *packr.Box

NewSchemas creates or retrieves the packr box with the porter template files.

Types

type Templates

type Templates struct {
	// contains filtered or unexported fields
}

func NewTemplates

func NewTemplates() *Templates

func (*Templates) GetDockerfile

func (t *Templates) GetDockerfile() ([]byte, error)

GetDockerfile returns the default Dockerfile for invocation images.

func (*Templates) GetDockerfileTemplate

func (t *Templates) GetDockerfileTemplate() ([]byte, error)

GetDockerfileTemplate returns a Dockerfile.tmpl file for use in new bundles.

func (*Templates) GetDockerignore

func (t *Templates) GetDockerignore() ([]byte, error)

GetDockerignore returns a .dockerignore file for use in new bundles.

func (*Templates) GetGitignore

func (t *Templates) GetGitignore() ([]byte, error)

GetGitignore returns a .gitignore file for use in new bundles.

func (*Templates) GetManifest

func (t *Templates) GetManifest() ([]byte, error)

GetManifest returns a porter.yaml template file for use in new bundles.

func (*Templates) GetReadme

func (t *Templates) GetReadme() ([]byte, error)

GetReadme returns a README.md file for use in new bundles.

func (*Templates) GetRunScript

func (t *Templates) GetRunScript() ([]byte, error)

GetRunScript returns a run script template for invocation images.

func (*Templates) GetSchema

func (t *Templates) GetSchema() ([]byte, error)

GetSchema returns the template manifest schema for the porter manifest. Note that is is incomplete and does not include the mixins' schemas.ß

Jump to

Keyboard shortcuts

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