Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultRunSocketPath = "/tmp/savvy-run.sock"
Variables ¶
View Source
var ErrAbortRun = errors.New("abort running runbook")
View Source
var ErrStartingRunSession = errors.New("failed to start run session")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type RunCommand ¶
type RunCommand struct { Command string `json:"command,omitempty"` Params map[string]string `json:"params,omitempty"` }
func (*RunCommand) IsShutdown ¶
func (rc *RunCommand) IsShutdown() bool
type RunServer ¶
type RunServer struct {
// contains filtered or unexported fields
}
func NewServerWithDefaultSocketPath ¶
func NewServerWithDefaultSocketPath(rb *savvy_client.Runbook, opts ...Option) (*RunServer, error)
func NewServerWithSocketPath ¶
func (*RunServer) Commands ¶
func (rs *RunServer) Commands() []*RunCommand
func (*RunServer) ListenAndServe ¶
func (rs *RunServer) ListenAndServe()
func (*RunServer) SocketPath ¶
Click to show internal directories.
Click to hide internal directories.