Documentation ¶
Index ¶
- func ChoriaPlugin() plugin.Pluggable
- func New(mgr server.AgentManager) (agents.Agent, error)
- func SetRestartAction(f func(splay time.Duration, si agents.ServerInfoSource, log *logrus.Entry))
- type CSRReply
- type CSRRequest
- type ConfigureRequest
- type JWTReply
- type JWTRequest
- type ReleaseUpdateRequest
- type Reply
- type ReprovisionRequest
- type RestartRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChoriaPlugin ¶
ChoriaPlugin creates the choria plugin hooks
func New ¶
func New(mgr server.AgentManager) (agents.Agent, error)
New creates a new instance of the agent
func SetRestartAction ¶
SetRestartAction sets a custom restart function to call than the default that causes a os.Exec() to be issued replacing the running instance with a new process on the old pid
Types ¶
type CSRRequest ¶
type ConfigureRequest ¶
type JWTRequest ¶
type JWTRequest struct {
Token string `json:"token"`
}
type ReleaseUpdateRequest ¶
type Reply ¶
type Reply struct {
Message string `json:"message"`
}
Reply is a generic reply used by most actions
type ReprovisionRequest ¶
type ReprovisionRequest struct {
Token string `json:"token"`
}
type RestartRequest ¶
Click to show internal directories.
Click to hide internal directories.