aws

package
v0.1.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2019 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Steps []Steps // using UnmarshalYAML so that we don't need a custom type per action
}

func (*Action) UnmarshalYAML

func (a *Action) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML takes any yaml in this form ACTION: - aws: ... and puts the steps into the Action.Steps field

type Flag

type Flag struct {
	Name   string
	Values []string
}

func NewFlag

func NewFlag(name string, values ...string) Flag

type Flags

type Flags []Flag

func (Flags) Len

func (flags Flags) Len() int

func (Flags) Less

func (flags Flags) Less(i, j int) bool

func (Flags) MarshalYAML

func (flags Flags) MarshalYAML() (interface{}, error)

func (Flags) Swap

func (flags Flags) Swap(i, j int)

func (*Flags) UnmarshalYAML

func (flags *Flags) UnmarshalYAML(unmarshal func(interface{}) error) error

type Mixin

type Mixin struct {
	*context.Context
}

func New

func New() (*Mixin, error)

New aws mixin client, initialized with useful defaults.

func (*Mixin) Build

func (m *Mixin) Build() error

Build will generate the necessary Dockerfile lines for an invocation image using this mixin

func (*Mixin) Execute

func (m *Mixin) Execute() error

func (*Mixin) GetSchema

func (m *Mixin) GetSchema() (string, error)

func (*Mixin) PrintSchema

func (m *Mixin) PrintSchema() error

func (*Mixin) PrintVersion

func (m *Mixin) PrintVersion()

func (*Mixin) Uninstall

func (m *Mixin) Uninstall() error

type Output

type Output struct {
	Name     string `yaml:"name"`
	JsonPath string `yaml:"jsonPath"`
}

type Step

type Step struct {
	Description string   `yaml:"description"`
	Service     string   `yaml:"service"`
	Operation   string   `yaml:"operation"`
	Arguments   []string `yaml:"arguments,omitempty"`
	Flags       Flags    `yaml:"flags,omitempty"`
	Outputs     []Output `yaml:"outputs,omitempty"`
}

type Steps

type Steps struct {
	Step `yaml:"aws"`
}

type TestMixin

type TestMixin struct {
	*Mixin
	TestContext *context.TestContext
}

func NewTestMixin

func NewTestMixin(t *testing.T) *TestMixin

NewTestMixin initializes a mixin test client, with the output buffered, and an in-memory file system.

Jump to

Keyboard shortcuts

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