templates

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Templates

type Templates struct {
	*config.Config
	// contains filtered or unexported fields
}

func NewTemplates

func NewTemplates(c *config.Config) *Templates

func (*Templates) GetCredentialSetJSON added in v1.0.1

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

GetCredentialSetJSON returns a credential-set.schema.json template file to define new credential set.

func (*Templates) GetCredentialSetYAML added in v1.0.1

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

GetCredentialSetYAML returns a credential-set.yaml template file to define new credential set.

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 template.Dockerfile 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) GetManifestHelpers

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

GetHelpers returns a helpers.sh template file for use in new bundles.

func (*Templates) GetParameterSetJSON added in v1.0.1

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

GetParameterSetJSON returns a parameter-set.schema.json template file to define new parameter set.

func (*Templates) GetParameterSetYAML added in v1.0.1

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

GetParameterSetYAML returns a parameter-set.yaml template file to define new parameter set.

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 it 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