Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Name string Steps []Step // using UnmarshalYAML so that we don't need a custom type per action }
func (Action) GetSteps ¶
func (a Action) GetSteps() []builder.ExecutableStep
func (Action) MakeSteps ¶
func (a Action) MakeSteps() interface{}
MakeSteps builds a slice of Steps for data to be unmarshaled into.
func (*Action) UnmarshalYAML ¶
UnmarshalYAML takes any yaml in this form ACTION: - gcloud: ... and puts the steps into the Action.Steps field
type Instruction ¶
type Instruction struct { Description string `yaml:"description"` Groups Groups `yaml:"groups"` Command string `yaml:"command"` Arguments []string `yaml:"arguments,omitempty"` Flags builder.Flags `yaml:"flags,omitempty"` Outputs []Output `yaml:"outputs,omitempty"` SuppressOutput bool `yaml:"suppress-output,omitempty"` }
type Mixin ¶
type Mixin struct {
runtime.RuntimeConfig
}
func (*Mixin) Build ¶
Build will generate the necessary Dockerfile lines for an invocation image using this mixin
func (*Mixin) PrintSchema ¶
func (m *Mixin) PrintSchema()
type Output ¶
func (Output) GetJsonPath ¶
type Step ¶
type Step struct {
Instruction `yaml:"gcloud"`
}
func (Step) GetArguments ¶
func (Step) GetCommand ¶
func (Step) GetOutputs ¶
func (Step) GetWorkingDir ¶ added in v1.0.0
func (Step) SuppressesOutput ¶
type TestMixin ¶
type TestMixin struct { *Mixin TestContext *portercontext.TestContext }
func NewTestMixin ¶
NewTestMixin initializes a mixin test client, with the output buffered, and an in-memory file system.
Click to show internal directories.
Click to hide internal directories.