fake

package
v0.0.0-...-43d1ab5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithStartingID

func WithStartingID(startID uint64) func(*StackClient)

WithStartingID is a StackOptionFunc which sets a starting ID. All allocated IDs will be greater than the provided startID.

Types

type StackClient

type StackClient struct {
	// contains filtered or unexported fields
}

StackClient is a fake implementation of the Stacks API.

func NewStackClient

func NewStackClient(optsFunc ...StackOptionFunc) *StackClient

NewStackClient creates a new StackClient.

func (*StackClient) StackCreate

StackCreate creates a new stack.

func (*StackClient) StackDelete

func (c *StackClient) StackDelete(_ context.Context, id string) error

StackDelete deletes a stack.

func (*StackClient) StackInspect

func (c *StackClient) StackInspect(_ context.Context, id string) (types.Stack, error)

StackInspect inspects an existing stack.

func (*StackClient) StackList

StackList lists all stacks.

func (*StackClient) StackUpdate

func (c *StackClient) StackUpdate(_ context.Context, id string, version types.Version, spec types.StackSpec, _ types.StackUpdateOptions) error

StackUpdate updates a stack.

type StackOptionFunc

type StackOptionFunc func(*StackClient)

StackOptionFunc is the type used for functional arguments of the StackClient during its creation.

Jump to

Keyboard shortcuts

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