installer

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2015 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeGrant

func MakeGrant(dsn mysql.DSN, user string, pass string, mysqlMaxUserConns int64) []string

func ParseMySQLDefaults

func ParseMySQLDefaults(output string) *mysql.DSN

Types

type Flags

type Flags struct {
	Bool   map[string]bool
	String map[string]string
	Int64  map[string]int64
}

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

func NewInstaller

func NewInstaller(terminal *term.Terminal, basedir string, api *api.Api, instanceRepo *instance.Repo, agentConfig *agent.Config, flags Flags) *Installer

func (*Installer) InstallerCreateAgentWithInitialServiceConfigs

func (i *Installer) InstallerCreateAgentWithInitialServiceConfigs() (protoAgent *proto.Agent, err error)

func (*Installer) InstallerCreateMySQLInstance

func (i *Installer) InstallerCreateMySQLInstance() (mi *proto.MySQLInstance, err error)

func (*Installer) InstallerCreateServerInstance

func (i *Installer) InstallerCreateServerInstance() (si *proto.ServerInstance, err error)

func (*Installer) InstallerGetApiKey

func (i *Installer) InstallerGetApiKey() error

func (*Installer) InstallerGetDefaultConfigs

func (i *Installer) InstallerGetDefaultConfigs(si *proto.ServerInstance, mi *proto.MySQLInstance) (configs []proto.AgentConfig, err error)

func (*Installer) IsVersionSupported added in v1.0.11

func (i *Installer) IsVersionSupported(conn mysql.Connector) (bool, error)

func (*Installer) Run

func (i *Installer) Run() (err error)

func (*Installer) VerifyApiKey

func (i *Installer) VerifyApiKey() error

Jump to

Keyboard shortcuts

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