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, props map[string]interface{}) 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) 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 ResponseWithError
- type ResponseWithHeader
- 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) Apply ¶
func (c *Client) Apply(ctx context.Context, state *types.StateData, apps []*types.AppPlan, deps []*types.DependencyPlan, destroy bool, callback func(*types.ApplyAction)) (ret *plugin_go.ApplyDoneResponse, err error)
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 ¶
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 ResponseWithError ¶
type ResponseWithError struct { *ResponseWithHeader Error error }
type ResponseWithHeader ¶
type ResponseWithHeader struct { Header plugin_go.ResponseHeader Response plugin_go.Response }
type YAMLContext ¶
func (*YAMLContext) Error ¶
func (c *YAMLContext) Error(r *plugin_go.ValidationErrorResponse) error
Click to show internal directories.
Click to hide internal directories.