provision

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DDL = make(map[string]*addl.DDL)

DDL is the agent DDL

Functions

func ChoriaPlugin added in v0.5.0

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 added in v0.8.0

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 added in v0.6.0

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

type JWTRequest added in v0.6.0

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