Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownOperation = errors.New("unknown operation")
Functions ¶
This section is empty.
Types ¶
type CompoundOperation ¶
type CompoundOperation struct {
Operations []Operation
}
func (*CompoundOperation) Run ¶
func (c *CompoundOperation) Run(ctx context.Context, log hclog.Logger) (OperationStatus, error)
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func ParseConfig ¶
func ParseConfigFile ¶
type DockerOptions ¶
type DockerOptions struct {
Image string `hcl:"image"`
}
type Executor ¶
type Executor struct { Log hclog.Logger Config *Config }
func (*Executor) Execute ¶
func (e *Executor) Execute(ctx context.Context, opInfo *models.HashicorpCloudWaypointAgentOperation) (OperationStatus, error)
func (*Executor) IsAvailable ¶
func (e *Executor) IsAvailable(opInfo *models.HashicorpCloudWaypointAgentOperation) (bool, error)
type HTTPOperation ¶
type HTTPOperation struct {
URL string
}
func (*HTTPOperation) Run ¶
func (h *HTTPOperation) Run(ctx context.Context, log hclog.Logger) (OperationStatus, error)
type NoopWrapper ¶
type NoopWrapper struct {
Operation Operation
}
func (*NoopWrapper) Run ¶
func (n *NoopWrapper) Run(ctx context.Context, log hclog.Logger) (OperationStatus, error)
type Operation ¶
type Operation interface {
Run(ctx context.Context, log hclog.Logger) (OperationStatus, error)
}
func NoopOperations ¶
type OperationStatus ¶
type ShellOperation ¶
type ShellOperation struct { Arguments []string Environment map[string]string DockerOptions *DockerOptions }
func (*ShellOperation) Run ¶
func (s *ShellOperation) Run(ctx context.Context, log hclog.Logger) (OperationStatus, error)
type StatusOperation ¶
type StatusOperation struct { Message string Values map[string]string Status string // contains filtered or unexported fields }
func (*StatusOperation) Run ¶
func (s *StatusOperation) Run(ctx context.Context, log hclog.Logger) (OperationStatus, error)
Click to show internal directories.
Click to hide internal directories.