Documentation ¶
Index ¶
- func NewTemplatesBox() *packr.Box
- type Templates
- func (t *Templates) GetDockerfile() ([]byte, error)
- func (t *Templates) GetDockerfileTemplate() ([]byte, error)
- func (t *Templates) GetDockerignore() ([]byte, error)
- func (t *Templates) GetGitignore() ([]byte, error)
- func (t *Templates) GetManifest() ([]byte, error)
- func (t *Templates) GetReadme() ([]byte, error)
- func (t *Templates) GetRunScript() ([]byte, error)
- func (t *Templates) GetSchema() ([]byte, error)
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 ¶
GetDockerfile returns the default Dockerfile for invocation images.
func (*Templates) GetDockerfileTemplate ¶
GetDockerfileTemplate returns a Dockerfile.tmpl file for use in new bundles.
func (*Templates) GetDockerignore ¶
GetDockerignore returns a .dockerignore file for use in new bundles.
func (*Templates) GetGitignore ¶
GetGitignore returns a .gitignore file for use in new bundles.
func (*Templates) GetManifest ¶
GetManifest returns a porter.yaml template file for use in new bundles.
func (*Templates) GetRunScript ¶
GetRunScript returns a run script template for invocation images.
Click to show internal directories.
Click to hide internal directories.