Documentation
¶
Overview ¶
Package master is the gofigure reference client library with helper functions.
Index ¶
- Variables
- func BootstrapCmd() (map[string]*Client, error)
- func BootstrapMany(sshConfigPath string, executable string, ...) (map[string]*Client, error)
- func CheckExec(client *Client, args []string, timeoutSecs int) (*pb.ExecResult, error)
- func ConnectGRPC(address, caFile, certFile, keyFile string) (*grpc.ClientConn, error)
- func CopyFile(client *Client, src, dst, owner, group, mode string, timeoutSecs int) (*pb.FileResult, error)
- func DeferredExit(clients map[string]*Client)
- func Delete(client *Client, path string, recursive bool, timeoutSecs int) (*pb.DeleteResult, error)
- func Directory(client *Client, path, owner, group, mode string, timeoutSecs int) (*pb.DirectoryResult, error)
- func Exec(client *Client, args []string, timeoutSecs int) (*pb.ExecResult, error)
- func Exit(clients map[string]*Client) error
- func File(client *Client, path, owner, group, mode string, content []byte, ...) (*pb.FileResult, error)
- func LineInFile(client *Client, path, owner, group, mode, regex, line string, timeoutSecs int) (*pb.LineInFileResult, error)
- func Lines(s string) []string
- func RunAll(clients map[string]*Client, f func(host string, client *Client) error) error
- func Stat(client *Client, path string, timeoutSecs int) (*pb.StatResult, error)
- func TemplateFile(client *Client, path, owner, group, mode, templatePath string, ...) (*pb.FileResult, error)
- type Client
- type Config
- type Creds
- type MinionConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Debug = true
)
Functions ¶
func BootstrapCmd ¶
func BootstrapMany ¶
func BootstrapMany(sshConfigPath string, executable string, minionConfigs map[string]*MinionConfig, masterCreds *Creds) (map[string]*Client, error)
BootstrapMany calls Bootstrap for many hosts in parallel.
func ConnectGRPC ¶
func ConnectGRPC(address, caFile, certFile, keyFile string) (*grpc.ClientConn, error)
ConnectGRPC attempts to connect over GRPC to the remote address. It returns only a GRPC connection, not a gofigure client.
func DeferredExit ¶
func LineInFile ¶
func TemplateFile ¶
Types ¶
type Client ¶
type Client struct {
pb.GofigureClient
}
Client is a concrete example implementation of the local side of the gofigure configuration management tool.
type Config ¶
type Config struct { Defaults *MinionConfig Master *Creds Minions map[string]*MinionConfig }
Click to show internal directories.
Click to hide internal directories.