Documentation
¶
Overview ¶
Package spin provides utilities for orchestrating Spin CLI commands
Index ¶
- func Build(ctx context.Context, options ...string) error
- func Deploy(ctx context.Context, options ...string) error
- func EnsureInstalled() error
- func New(ctx context.Context, template, name string, options ...string) error
- func Registry(ctx context.Context, subcommand string, options ...string) error
- func Up(ctx context.Context, options ...string) error
- func WaitForReady(ctx context.Context, address string, timeout time.Duration) error
- func Watch(ctx context.Context, options ...string) error
- type Executor
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForReady ¶
WaitForReady waits for Spin to be ready on a given address
Types ¶
type Executor ¶
type Executor interface {
Run(ctx context.Context, args ...string) error
RunWithOutput(ctx context.Context, args ...string) (string, error)
RunWithInput(ctx context.Context, input string, args ...string) error
RunInteractive(ctx context.Context, args ...string) error
IsInstalled() bool
Version() (string, error)
}
Executor provides an interface for executing Spin commands
func NewExecutor ¶
NewExecutor creates a new Spin executor
type Option ¶
type Option func(*executor)
Option configures an executor
func WithOutput ¶
WithOutput sets custom output writers
Click to show internal directories.
Click to hide internal directories.