template

package
v0.0.0-...-1b39373 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2015 License: Apache-2.0, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hba

func Hba(dbConn *sql.DB, mode string, hostname string, port string, clusterid string, domainname string, cars []Rule) (string, error)

func KubeNodePod

func KubeNodePod(info KubePodParams) ([]byte, error)

func KubeNodeService

func KubeNodeService(info KubeServiceParams) ([]byte, error)

func Poolconf

func Poolconf(poolnames []string) (string, error)

Poolconf generates a pgpool.conf file from a template and values passed in

func Poolhba

func Poolhba() (string, error)

Poolhba right now this is simple, just read the template and spit it back out, no substitutions are done right now, they will be in the future no doubt

func Poolpasswd

func Poolpasswd() (string, error)

Poolpasswd right now this is simple, just read the template and spit it back out, no substitutions are done right now, they will be in the future no doubt

func Postgresql

func Postgresql(mode string, port string, clusterType string) (string, error)

func Recovery

func Recovery(masterhost string, port string, masteruser string) (string, error)

Types

type HBAParameters

type HBAParameters struct {
	ADMIN_HOST     string
	MONITOR_HOST   string
	BACKUP_HOST    string
	PG_HOST_IP     string
	USER           string
	USER_IP_LIST   []string
	PGPOOL_HOST    string
	STANDBY_LIST   []string
	BRIDGE_IP_LIST []string
	SERVER_IP_LIST []string
	RULES_LIST     []Rule
}

type KubePodParams

type KubePodParams struct {
	NAME                 string
	ID                   string
	PODID                string
	CPU                  string
	MEM                  string
	IMAGE                string
	VOLUME               string
	DOMAIN               string
	PORT                 string
	PG_MODE              string
	BACKUP_NAME          string
	BACKUP_SERVERNAME    string
	BACKUP_SERVERIP      string
	BACKUP_SCHEDULEID    string
	BACKUP_PROFILENAME   string
	BACKUP_CONTAINERNAME string
	BACKUP_PATH          string
	BACKUP_HOST          string
	BACKUP_PORT          string
	BACKUP_USER          string
	BACKUP_SERVER_URL    string
}

type KubeServiceParams

type KubeServiceParams struct {
	SERVICENAME string
	NAME        string
	PORT        string
	DBPORT      string
}

type PGPoolParameters

type PGPoolParameters struct {
	HOST_LIST []string
}

type PostgresqlParameters

type PostgresqlParameters struct {
	PG_HOST_IP   string
	PG_PORT      string
	CLUSTER_TYPE string
}

type RecoveryParameters

type RecoveryParameters struct {
	USER       string
	PG_HOST_IP string
	PG_PORT    string
}

type Rule

type Rule struct {
	Type     string
	Database string
	User     string
	Address  string
	Method   string
}

Jump to

Keyboard shortcuts

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