Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Handshake = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "SAILOR_MAGIC_COOKIE",
MagicCookieValue: "jkda2981dASA219",
}
View Source
var PluginMap = map[string]plugin.Plugin{ "hook": &SailorPlugin{}, }
Functions ¶
This section is empty.
Types ¶
type DeployRequest ¶
type DeployResponse ¶
type DeployResponse struct {
Status DoneResponse
}
type DoneResponse ¶
type HookRPCClient ¶
type HookRPCClient struct {
// contains filtered or unexported fields
}
func (*HookRPCClient) Health ¶
func (hc *HookRPCClient) Health() DoneResponse
func (*HookRPCClient) OnDeploy ¶
func (hc *HookRPCClient) OnDeploy(req DeployRequest) DeployResponse
type HookRPCServer ¶
type HookRPCServer struct{ Impl SailorHook }
func (*HookRPCServer) Health ¶
func (hs *HookRPCServer) Health(args any, resp *DoneResponse) error
func (*HookRPCServer) OnDeploy ¶
func (hs *HookRPCServer) OnDeploy(args DeployRequest, resp *DeployResponse) error
type SailorHook ¶
type SailorHook interface {
Health() DoneResponse
OnDeploy(req DeployRequest) DeployResponse
}
type SailorPlugin ¶
type SailorPlugin struct {
plugin.Plugin
Impl SailorHook
}
Click to show internal directories.
Click to hide internal directories.