Documentation
¶
Index ¶
- Constants
- Variables
- func CommandExec(command string, args []string, ui cli.Ui) *exec.Cmd
- func CommandExecWithOutput(command string, args []string, ui cli.Ui) *exec.Cmd
- func CommandExecWithStderrOnly(command string, args []string, ui cli.Ui) *exec.Cmd
- type AdHocPlaybook
- type AliasCommand
- type CheckCommand
- type CommandArgumentValidator
- type DBCredentials
- type DBOpenCommand
- type DBOpener
- type DBOpenerFactory
- type DBOpenerSequelAce
- type DBOpenerTableplus
- type DeployCommand
- type DotEnvCommand
- type DownCommand
- type DropletCreateCommand
- type ExecCommand
- type GalaxyInstallCommand
- type InfoCommand
- type InitCommand
- type NamespaceCommand
- type NewCommand
- type PassthroughCommand
- type Playbook
- type PlaybookRunner
- type ProvisionCommand
- type RollbackCommand
- type ShellInitCommand
- type SshCommand
- type UiErrorWriter
- type UpCommand
- type ValetLinkCommand
- type VaultDecryptCommand
- type VaultEditCommand
- type VaultEncryptCommand
- type VaultViewCommand
- type VenvHookCommand
Constants ¶
View Source
const VagrantInventoryFilePath string = ".vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory"
Variables ¶
View Source
var BashScript string
View Source
var HookbookScript string
View Source
var Requirements = []trellis.Requirement{ { Name: "Python", Command: "python", Url: "https://www.python.org/", VersionConstraint: ">= 2.7.0", ExtractVersion: func(output string) string { return strings.Replace(output, "Python ", "", 1) }, }, { Name: "Vagrant", Command: "vagrant", Url: "https://www.vagrantup.com/downloads.html", VersionConstraint: ">= 2.1.0", ExtractVersion: func(output string) string { return strings.Replace(output, "Vagrant ", "", 1) }, }, { Name: "VirtualBox", Command: "VBoxManage", Url: "https://www.virtualbox.org/wiki/Downloads", VersionConstraint: ">= 4.3.10", }, }
View Source
var RoleAlreadyInstalledPattern = regexp.MustCompile(`^.*\[WARNING\]\: - (.*) \(.*\) .*`)
View Source
var ZshScript string
Functions ¶
func CommandExecWithOutput ¶
Types ¶
type AdHocPlaybook ¶
type AdHocPlaybook struct {
Playbook
// contains filtered or unexported fields
}
type AliasCommand ¶
type AliasCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func NewAliasCommand ¶
func NewAliasCommand(ui cli.Ui, trellis *trellis.Trellis) *AliasCommand
func (*AliasCommand) AutocompleteFlags ¶
func (c *AliasCommand) AutocompleteFlags() complete.Flags
func (*AliasCommand) Help ¶
func (c *AliasCommand) Help() string
func (*AliasCommand) Run ¶
func (c *AliasCommand) Run(args []string) int
func (*AliasCommand) Synopsis ¶
func (c *AliasCommand) Synopsis() string
type CheckCommand ¶
func (*CheckCommand) Help ¶
func (c *CheckCommand) Help() string
func (*CheckCommand) Run ¶
func (c *CheckCommand) Run(args []string) int
func (*CheckCommand) Synopsis ¶
func (c *CheckCommand) Synopsis() string
type CommandArgumentValidator ¶
type CommandArgumentValidator struct {
// contains filtered or unexported fields
}
type DBCredentials ¶
type DBOpenCommand ¶
type DBOpenCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func NewDBOpenCommand ¶
func NewDBOpenCommand(ui cli.Ui, trellis *trellis.Trellis) *DBOpenCommand
func (*DBOpenCommand) Help ¶
func (c *DBOpenCommand) Help() string
func (*DBOpenCommand) Run ¶
func (c *DBOpenCommand) Run(args []string) int
func (*DBOpenCommand) Synopsis ¶
func (c *DBOpenCommand) Synopsis() string
type DBOpener ¶
type DBOpener interface {
Open(c DBCredentials) (err error)
}
type DBOpenerFactory ¶
type DBOpenerFactory struct{}
func (*DBOpenerFactory) GetSupportedApps ¶
func (f *DBOpenerFactory) GetSupportedApps() []string
type DBOpenerSequelAce ¶ added in v1.1.0
type DBOpenerSequelAce struct {
// contains filtered or unexported fields
}
func (*DBOpenerSequelAce) Open ¶ added in v1.1.0
func (o *DBOpenerSequelAce) Open(c DBCredentials) (err error)
type DBOpenerTableplus ¶
type DBOpenerTableplus struct{}
func (*DBOpenerTableplus) Open ¶
func (o *DBOpenerTableplus) Open(c DBCredentials) (err error)
type DeployCommand ¶
type DeployCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func NewDeployCommand ¶
func NewDeployCommand(ui cli.Ui, trellis *trellis.Trellis) *DeployCommand
func (*DeployCommand) AutocompleteArgs ¶
func (c *DeployCommand) AutocompleteArgs() complete.Predictor
func (*DeployCommand) AutocompleteFlags ¶
func (c *DeployCommand) AutocompleteFlags() complete.Flags
func (*DeployCommand) Help ¶
func (c *DeployCommand) Help() string
func (*DeployCommand) Run ¶
func (c *DeployCommand) Run(args []string) int
func (*DeployCommand) Synopsis ¶
func (c *DeployCommand) Synopsis() string
type DotEnvCommand ¶
type DotEnvCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func NewDotEnvCommand ¶
func NewDotEnvCommand(ui cli.Ui, trellis *trellis.Trellis) *DotEnvCommand
func (*DotEnvCommand) Help ¶
func (c *DotEnvCommand) Help() string
func (*DotEnvCommand) Run ¶
func (c *DotEnvCommand) Run(args []string) int
func (*DotEnvCommand) Synopsis ¶
func (c *DotEnvCommand) Synopsis() string
type DownCommand ¶
func (*DownCommand) Help ¶
func (c *DownCommand) Help() string
func (*DownCommand) Run ¶
func (c *DownCommand) Run(args []string) int
func (*DownCommand) Synopsis ¶
func (c *DownCommand) Synopsis() string
type DropletCreateCommand ¶
type DropletCreateCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func NewDropletCreateCommand ¶
func NewDropletCreateCommand(ui cli.Ui, trellis *trellis.Trellis) *DropletCreateCommand
func (*DropletCreateCommand) AutocompleteArgs ¶
func (c *DropletCreateCommand) AutocompleteArgs() complete.Predictor
func (*DropletCreateCommand) AutocompleteFlags ¶
func (c *DropletCreateCommand) AutocompleteFlags() complete.Flags
func (*DropletCreateCommand) Help ¶
func (c *DropletCreateCommand) Help() string
func (*DropletCreateCommand) Run ¶
func (c *DropletCreateCommand) Run(args []string) int
func (*DropletCreateCommand) Synopsis ¶
func (c *DropletCreateCommand) Synopsis() string
type ExecCommand ¶
func (*ExecCommand) Help ¶
func (c *ExecCommand) Help() string
func (*ExecCommand) Run ¶
func (c *ExecCommand) Run(args []string) int
func (*ExecCommand) Synopsis ¶
func (c *ExecCommand) Synopsis() string
type GalaxyInstallCommand ¶
func (*GalaxyInstallCommand) Help ¶
func (c *GalaxyInstallCommand) Help() string
func (*GalaxyInstallCommand) Run ¶
func (c *GalaxyInstallCommand) Run(args []string) int
func (*GalaxyInstallCommand) Synopsis ¶
func (c *GalaxyInstallCommand) Synopsis() string
type InfoCommand ¶
func (*InfoCommand) Help ¶
func (c *InfoCommand) Help() string
func (*InfoCommand) Run ¶
func (c *InfoCommand) Run(args []string) int
func (*InfoCommand) Synopsis ¶
func (c *InfoCommand) Synopsis() string
type InitCommand ¶
func (*InitCommand) Help ¶
func (c *InitCommand) Help() string
func (*InitCommand) Run ¶
func (c *InitCommand) Run(args []string) int
func (*InitCommand) Synopsis ¶
func (c *InitCommand) Synopsis() string
type NamespaceCommand ¶
func (*NamespaceCommand) Help ¶
func (c *NamespaceCommand) Help() string
func (*NamespaceCommand) Run ¶
func (c *NamespaceCommand) Run(args []string) int
func (*NamespaceCommand) Synopsis ¶
func (c *NamespaceCommand) Synopsis() string
type NewCommand ¶
func NewNewCommand ¶
func (*NewCommand) Help ¶
func (c *NewCommand) Help() string
func (*NewCommand) Run ¶
func (c *NewCommand) Run(args []string) int
func (*NewCommand) Synopsis ¶
func (c *NewCommand) Synopsis() string
func (*NewCommand) YamlHeader ¶
func (c *NewCommand) YamlHeader(doc string) string
type PassthroughCommand ¶
func (*PassthroughCommand) Help ¶
func (c *PassthroughCommand) Help() string
func (*PassthroughCommand) Run ¶
func (c *PassthroughCommand) Run(args []string) int
func (*PassthroughCommand) Synopsis ¶
func (c *PassthroughCommand) Synopsis() string
type PlaybookRunner ¶
type ProvisionCommand ¶
type ProvisionCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func NewProvisionCommand ¶
func NewProvisionCommand(ui cli.Ui, trellis *trellis.Trellis) *ProvisionCommand
func (*ProvisionCommand) AutocompleteArgs ¶
func (c *ProvisionCommand) AutocompleteArgs() complete.Predictor
func (*ProvisionCommand) AutocompleteFlags ¶
func (c *ProvisionCommand) AutocompleteFlags() complete.Flags
func (*ProvisionCommand) Help ¶
func (c *ProvisionCommand) Help() string
func (*ProvisionCommand) Run ¶
func (c *ProvisionCommand) Run(args []string) int
func (*ProvisionCommand) Synopsis ¶
func (c *ProvisionCommand) Synopsis() string
type RollbackCommand ¶
type RollbackCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func NewRollbackCommand ¶
func NewRollbackCommand(ui cli.Ui, trellis *trellis.Trellis) *RollbackCommand
func (*RollbackCommand) AutocompleteArgs ¶
func (c *RollbackCommand) AutocompleteArgs() complete.Predictor
func (*RollbackCommand) AutocompleteFlags ¶
func (c *RollbackCommand) AutocompleteFlags() complete.Flags
func (*RollbackCommand) Help ¶
func (c *RollbackCommand) Help() string
func (*RollbackCommand) Run ¶
func (c *RollbackCommand) Run(args []string) int
func (*RollbackCommand) Synopsis ¶
func (c *RollbackCommand) Synopsis() string
type ShellInitCommand ¶
func (*ShellInitCommand) Help ¶
func (c *ShellInitCommand) Help() string
func (*ShellInitCommand) Run ¶
func (c *ShellInitCommand) Run(args []string) int
func (*ShellInitCommand) Synopsis ¶
func (c *ShellInitCommand) Synopsis() string
type SshCommand ¶
func (*SshCommand) AutocompleteArgs ¶
func (c *SshCommand) AutocompleteArgs() complete.Predictor
func (*SshCommand) AutocompleteFlags ¶
func (c *SshCommand) AutocompleteFlags() complete.Flags
func (*SshCommand) Help ¶
func (c *SshCommand) Help() string
func (*SshCommand) Run ¶
func (c *SshCommand) Run(args []string) int
func (*SshCommand) Synopsis ¶
func (c *SshCommand) Synopsis() string
type UiErrorWriter ¶
type UpCommand ¶
type UpCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func (*UpCommand) AutocompleteArgs ¶
func (*UpCommand) AutocompleteFlags ¶
type ValetLinkCommand ¶
func (*ValetLinkCommand) Help ¶
func (c *ValetLinkCommand) Help() string
func (*ValetLinkCommand) Run ¶
func (c *ValetLinkCommand) Run(args []string) int
func (*ValetLinkCommand) Synopsis ¶
func (c *ValetLinkCommand) Synopsis() string
type VaultDecryptCommand ¶
type VaultDecryptCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func NewVaultDecryptCommand ¶
func NewVaultDecryptCommand(ui cli.Ui, trellis *trellis.Trellis) *VaultDecryptCommand
func (*VaultDecryptCommand) AutocompleteArgs ¶
func (c *VaultDecryptCommand) AutocompleteArgs() complete.Predictor
func (*VaultDecryptCommand) AutocompleteFlags ¶
func (c *VaultDecryptCommand) AutocompleteFlags() complete.Flags
func (*VaultDecryptCommand) Help ¶
func (c *VaultDecryptCommand) Help() string
func (*VaultDecryptCommand) Run ¶
func (c *VaultDecryptCommand) Run(args []string) int
func (*VaultDecryptCommand) Synopsis ¶
func (c *VaultDecryptCommand) Synopsis() string
type VaultEditCommand ¶
func (*VaultEditCommand) Help ¶
func (c *VaultEditCommand) Help() string
func (*VaultEditCommand) Run ¶
func (c *VaultEditCommand) Run(args []string) int
func (*VaultEditCommand) Synopsis ¶
func (c *VaultEditCommand) Synopsis() string
type VaultEncryptCommand ¶
type VaultEncryptCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func NewVaultEncryptCommand ¶
func NewVaultEncryptCommand(ui cli.Ui, trellis *trellis.Trellis) *VaultEncryptCommand
func (*VaultEncryptCommand) AutocompleteArgs ¶
func (c *VaultEncryptCommand) AutocompleteArgs() complete.Predictor
func (*VaultEncryptCommand) AutocompleteFlags ¶
func (c *VaultEncryptCommand) AutocompleteFlags() complete.Flags
func (*VaultEncryptCommand) Help ¶
func (c *VaultEncryptCommand) Help() string
func (*VaultEncryptCommand) Run ¶
func (c *VaultEncryptCommand) Run(args []string) int
func (*VaultEncryptCommand) Synopsis ¶
func (c *VaultEncryptCommand) Synopsis() string
type VaultViewCommand ¶
type VaultViewCommand struct {
UI cli.Ui
Trellis *trellis.Trellis
// contains filtered or unexported fields
}
func NewVaultViewCommand ¶
func NewVaultViewCommand(ui cli.Ui, trellis *trellis.Trellis) *VaultViewCommand
func (*VaultViewCommand) AutocompleteArgs ¶
func (c *VaultViewCommand) AutocompleteArgs() complete.Predictor
func (*VaultViewCommand) AutocompleteFlags ¶
func (c *VaultViewCommand) AutocompleteFlags() complete.Flags
func (*VaultViewCommand) Help ¶
func (c *VaultViewCommand) Help() string
func (*VaultViewCommand) Run ¶
func (c *VaultViewCommand) Run(args []string) int
func (*VaultViewCommand) Synopsis ¶
func (c *VaultViewCommand) Synopsis() string
type VenvHookCommand ¶
func (*VenvHookCommand) Help ¶
func (c *VenvHookCommand) Help() string
func (*VenvHookCommand) Run ¶
func (c *VenvHookCommand) Run(args []string) int
func (*VenvHookCommand) Synopsis ¶
func (c *VenvHookCommand) Synopsis() string
Source Files
¶
- ad_hoc_playbook.go
- alias.go
- check.go
- command_argument_validator.go
- db_open.go
- db_opener_factory.go
- db_opener_sequel_ace.go
- db_opener_tableplus.go
- deploy.go
- dot_env.go
- down.go
- droplet_create.go
- exec.go
- galaxy_install.go
- info.go
- init.go
- main.go
- namespace.go
- new.go
- passthrough.go
- playbook.go
- provision.go
- rollback.go
- shell_init.go
- ssh.go
- up.go
- valet_link.go
- vault_decrypt.go
- vault_edit.go
- vault_encrypt.go
- vault_view.go
- venv_hook.go
Click to show internal directories.
Click to hide internal directories.