provision

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 28 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChoriaPlugin

func ChoriaPlugin() plugin.Pluggable

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

func SetRestartAction(f func(splay time.Duration, si agents.ServerInfoSource, log *logrus.Entry))

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 CSRReply

type CSRReply struct {
	CSR    string `json:"csr"`
	SSLDir string `json:"ssldir"`
}

type CSRRequest

type CSRRequest struct {
	Token string `json:"token"`
	CN    string `json:"cn"`
	C     string `json:"C"`
	L     string `json:"L"`
	O     string `json:"O"`
	OU    string `json:"OU"`
	ST    string `json:"ST"`
}

type ConfigureRequest

type ConfigureRequest struct {
	Token         string `json:"token"`
	Configuration string `json:"config"`
	Certificate   string `json:"certificate"`
	CA            string `json:"ca"`
	SSLDir        string `json:"ssldir"`
}

type JWTReply

type JWTReply struct {
	JWT string `json:"jwt"`
}

type JWTRequest

type JWTRequest struct {
	Token string `json:"token"`
}

type ReleaseUpdateRequest

type ReleaseUpdateRequest struct {
	Token      string `json:"token"`
	Repository string `json:"repository"`
	Version    string `json:"version"`
}

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

type RestartRequest struct {
	Token string `json:"token"`
	Splay int    `json:"splay"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL