Documentation
¶
Index ¶
- func NewClientConfig(config SshConfig) (*ssh.ClientConfig, error)
- func NewKey(key string) (interface{}, error)
- func NewKeyFile(key string) (string, error)
- func NewRemoteWriter(host string, w io.Writer) io.Writer
- func NewSigner(key string) (ssh.Signer, error)
- type Build
- type Default
- type Git
- type Hapfile
- type Host
- type Remote
- type RemoteWriter
- type SshConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientConfig ¶
func NewClientConfig(config SshConfig) (*ssh.ClientConfig, error)
Construct a new client config
func NewRemoteWriter ¶
Writer with [host] prepended to output
Types ¶
type Hapfile ¶
type Hapfile struct {
Default Default
Hosts map[string]*Host `gcfg:"host"`
Builds map[string]*Build `gcfg:"build"`
}
The Hapfile
type Host ¶
type Host struct {
Name string
Addr string
Username string
Identity string
Password string
Build []string
Cmd []string
// contains filtered or unexported fields
}
A remote machine
func (*Host) SetDefaults ¶
Use the defaults to fill in missing host specific config
type Remote ¶
The remote machine to provision
func (*Remote) Build ¶
Execute the builds and cmds First execute builds specified in Hapfile Then execute any cmds specified in Hapfile
func (*Remote) Initialize ¶
Setup a git repo on the remote machine
func (*Remote) PushSubmodules ¶
Initialize and Push submodules into proper location on remote
type RemoteWriter ¶
type RemoteWriter struct {
// contains filtered or unexported fields
}
Writer with host and io.Writer
Click to show internal directories.
Click to hide internal directories.