Documentation
¶
Overview ¶
Copyright © 2021 Colin Fox <greenenergy@gmail.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2021 Colin Fox <greenenergy@gmail.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2021 Colin Fox <greenenergy@gmail.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2021 Colin Fox <greenenergy@gmail.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBEngine ¶
type DBEngine interface {
GetInstalledIDs() (*set.Set, error) // Return the IDs of patches that have already been installed
Patch(*patch.Patch) error
}
func NewMockDBE ¶
func NewMockDBE() DBEngine
func NewMySQLDBE ¶ added in v1.1.1
func NewMySQLDBE(args *EngineArgs) (DBEngine, error)
func NewMySQLDBE(host string, port int, user, password, dbname string, sslmode bool, verbose, debug bool, retries int) (DBEngine, error) {
func NewPGDBE ¶
func NewPGDBE(args *EngineArgs) (DBEngine, error)
func NewPGDBE(host string, port int, user, password, dbname string, sslmode bool, verbose, debug bool, retries int) (DBEngine, error) {
func NewSQLiteDBE ¶
func NewSQLiteDBE(args *EngineArgs) (DBEngine, error)
type EngineArgs ¶ added in v1.1.0
type EngineArgs struct {
Host string `json:"host" connarg:"host"`
Port int `json:"port" connarg:"port"`
Name string `json:"dbname" connarg:"dbname"`
Username string `json:"user" connarg:"user"`
Password string `json:"password" connarg:"password,protected"`
SSLMode string `json:"sslmode" connarg:"sslmode"`
SSLCert string `json:"sslcert" connarg:"sslcert"`
SSLKey string `json:"sslkey" connarg:"sslkey"`
SSLRootCert string `json:"sslrootcert" connarg:"sslrootcert"`
Debug bool `json:"debug"`
Verbose bool `json:"verbose"`
Retries int `json:"retries"`
}
func NewEngineArgs ¶ added in v1.1.2
func NewEngineArgs(flags *flag.FlagSet) *EngineArgs
func (*EngineArgs) AddFlags ¶ added in v1.1.2
func (ea *EngineArgs) AddFlags(flags *flag.FlagSet)
func (*EngineArgs) ToConnStr ¶ added in v1.1.2
func (ea *EngineArgs) ToConnStr(protectPassword bool) string
type MySQLDBE ¶ added in v1.1.1
type MySQLDBE struct {
// contains filtered or unexported fields
}
func (*MySQLDBE) GetInstalledIDs ¶ added in v1.1.1
type SQLITEArgs ¶ added in v1.0.1
type SQLITEArgs struct {
Filename string `json:"filename"`
}