Documentation
¶
Index ¶
- func WithStartingID(startID uint64) func(*StackClient)
- type StackClient
- func (c *StackClient) StackCreate(_ context.Context, spec types.StackSpec, _ types.StackCreateOptions) (types.StackCreateResponse, error)
- func (c *StackClient) StackDelete(_ context.Context, id string) error
- func (c *StackClient) StackInspect(_ context.Context, id string) (types.Stack, error)
- func (c *StackClient) StackList(_ context.Context, _ types.StackListOptions) ([]types.Stack, error)
- func (c *StackClient) StackUpdate(_ context.Context, id string, version types.Version, spec types.StackSpec, ...) error
- type StackOptionFunc
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 ¶
func (c *StackClient) StackCreate(_ context.Context, spec types.StackSpec, _ types.StackCreateOptions) (types.StackCreateResponse, error)
StackCreate creates a new stack.
func (*StackClient) StackDelete ¶
func (c *StackClient) StackDelete(_ context.Context, id string) error
StackDelete deletes a stack.
func (*StackClient) StackInspect ¶
StackInspect inspects an existing stack.
func (*StackClient) StackList ¶
func (c *StackClient) StackList(_ context.Context, _ types.StackListOptions) ([]types.Stack, error)
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.
Click to show internal directories.
Click to hide internal directories.