Documentation
¶
Index ¶
- Constants
- func IsPluginError(err error) bool
- func ValidateHandshake(h *plugin_go.Handshake) error
- type Client
- func (c *Client) Apply(ctx context.Context, state *types.StateData, apps []*types.AppPlan, ...) (ret *plugin_go.ApplyDoneResponse, err error)
- func (c *Client) GetState(ctx context.Context, typ, env string, props map[string]interface{}, lock bool, ...) (ret *plugin_go.GetStateResponse, err error)
- func (c *Client) Init(ctx context.Context, name string, deployPlugins, runPlugins []string, ...) (*plugin_go.InitResponse, error)
- func (c *Client) Plan(ctx context.Context, state *types.StateData, apps []*types.AppPlan, ...) (ret *plugin_go.PlanResponse, err error)
- func (c *Client) ReleaseLock(ctx context.Context, typ, env string, props map[string]interface{}, ...) error
- func (c *Client) Run(ctx context.Context, req *plugin_go.RunRequest, ...) (ret *plugin_go.RunningResponse, err error)
- func (c *Client) SaveState(ctx context.Context, state *types.StateData, typ, env string, ...) (ret *plugin_go.SaveStateResponse, err error)
- func (c *Client) Start(ctx context.Context, yamlContext YAMLContext) error
- func (c *Client) Stop() error
- type PluginError
- type ResponseWithHeader
- type SenderStream
- type YAMLContext
Constants ¶
View Source
const (
DefaultTimeout = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func IsPluginError ¶ added in v0.1.2
func ValidateHandshake ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetState ¶
func (c *Client) GetState(ctx context.Context, typ, env string, props map[string]interface{}, lock bool, yamlContext YAMLContext) (ret *plugin_go.GetStateResponse, err error)
func (*Client) ReleaseLock ¶
func (*Client) Run ¶ added in v0.1.11
func (c *Client) Run(ctx context.Context, req *plugin_go.RunRequest, outCh chan<- *plugin_go.RunOutputResponse, errCh chan<- error) (ret *plugin_go.RunningResponse, err error)
type PluginError ¶ added in v0.1.2
type PluginError struct {
// contains filtered or unexported fields
}
func NewPluginError ¶ added in v0.1.2
func NewPluginError(c *Client, msg string, wrapped error) *PluginError
func (*PluginError) Error ¶ added in v0.1.2
func (e *PluginError) Error() string
func (*PluginError) Unwrap ¶ added in v0.1.2
func (e *PluginError) Unwrap() error
type ResponseWithHeader ¶
type ResponseWithHeader struct { Header plugin_go.ResponseHeader Response plugin_go.Response }
type SenderStream ¶ added in v0.1.5
type SenderStream struct {
// contains filtered or unexported fields
}
func NewSenderStream ¶ added in v0.1.5
func NewSenderStream(log logger.Logger, c net.Conn) *SenderStream
func (*SenderStream) Close ¶ added in v0.1.5
func (s *SenderStream) Close() error
func (*SenderStream) DrainAndClose ¶ added in v0.1.5
func (s *SenderStream) DrainAndClose() error
type YAMLContext ¶
func (*YAMLContext) Error ¶
func (c *YAMLContext) Error(r *plugin_go.ValidationErrorResponse) error
Click to show internal directories.
Click to hide internal directories.