Documentation ¶
Index ¶
- Constants
- func GetDependencyDefinition(c *context.Context, alias string) ([]byte, error)
- func GetDependencyDefinitionPath(alias string) string
- type ActionInput
- type PorterRuntime
- type RuntimeManifest
- func (m *RuntimeManifest) ApplyStepOutputs(assignments map[string]string) error
- func (m *RuntimeManifest) GetInstallationName() string
- func (m *RuntimeManifest) GetOutputs() map[string]string
- func (m *RuntimeManifest) GetSensitiveValues() []string
- func (m *RuntimeManifest) GetSteps() manifest.Steps
- func (m *RuntimeManifest) Prepare() error
- func (m *RuntimeManifest) ReadDependencyOutputValue(ref manifest.DependencyOutputReference) (string, error)
- func (m *RuntimeManifest) ResolveImages(bun *bundle.Bundle, reloMap relocation.ImageRelocationMap) error
- func (m *RuntimeManifest) ResolveStep(step *manifest.Step) error
- func (m *RuntimeManifest) Validate() error
- type StepOutput
- type TestPorterRuntime
Constants ¶
const (
BundleDependenciesDir = "/cnab/app/dependencies"
)
Variables ¶
This section is empty.
Functions ¶
func GetDependencyDefinition ¶
Types ¶
type ActionInput ¶
type ActionInput struct { Steps []*manifest.Step `yaml:"steps"` // contains filtered or unexported fields }
func (*ActionInput) MarshalYAML ¶
func (a *ActionInput) MarshalYAML() (interface{}, error)
MarshalYAML marshals the step nested under the action install:
- helm: ...
Solution from https://stackoverflow.com/a/42547226
type PorterRuntime ¶
type PorterRuntime struct { *context.Context RuntimeManifest *RuntimeManifest // contains filtered or unexported fields }
PorterRuntime orchestrates executing a bundle and managing state.
func NewPorterRuntime ¶
func NewPorterRuntime(cxt *context.Context, mixins pkgmgmt.PackageManager) *PorterRuntime
func (*PorterRuntime) Execute ¶
func (r *PorterRuntime) Execute(rm *RuntimeManifest) error
type RuntimeManifest ¶
type RuntimeManifest struct { *context.Context *manifest.Manifest Action string // contains filtered or unexported fields }
func NewRuntimeManifest ¶
func (*RuntimeManifest) ApplyStepOutputs ¶
func (m *RuntimeManifest) ApplyStepOutputs(assignments map[string]string) error
func (*RuntimeManifest) GetInstallationName ¶ added in v0.29.1
func (m *RuntimeManifest) GetInstallationName() string
func (*RuntimeManifest) GetOutputs ¶
func (m *RuntimeManifest) GetOutputs() map[string]string
func (*RuntimeManifest) GetSensitiveValues ¶
func (m *RuntimeManifest) GetSensitiveValues() []string
func (*RuntimeManifest) GetSteps ¶
func (m *RuntimeManifest) GetSteps() manifest.Steps
func (*RuntimeManifest) Prepare ¶
func (m *RuntimeManifest) Prepare() error
Prepare prepares the runtime environment prior to step execution
func (*RuntimeManifest) ReadDependencyOutputValue ¶ added in v0.28.0
func (m *RuntimeManifest) ReadDependencyOutputValue(ref manifest.DependencyOutputReference) (string, error)
ReadDependencyOutputValue reads the dependency's output using the alias for the dependency from the specified output parameter source (name).
func (*RuntimeManifest) ResolveImages ¶
func (m *RuntimeManifest) ResolveImages(bun *bundle.Bundle, reloMap relocation.ImageRelocationMap) error
ResolveImages updates the RuntimeManifest to properly reflect the image map passed to the bundle via the mounted bundle.json and relocation mapping
func (*RuntimeManifest) ResolveStep ¶
func (m *RuntimeManifest) ResolveStep(step *manifest.Step) error
ResolveStep will walk through the Step's data and resolve any placeholder data using the definitions in the manifest, like parameters or credentials.
func (*RuntimeManifest) Validate ¶
func (m *RuntimeManifest) Validate() error
type StepOutput ¶
type TestPorterRuntime ¶
type TestPorterRuntime struct { *PorterRuntime TestContext *context.TestContext }
func NewTestPorterRuntime ¶
func NewTestPorterRuntime(t *testing.T) *TestPorterRuntime