Documentation ¶
Index ¶
- Constants
- func IsStolonName(name string) bool
- func NameFromStolonName(stolonName string) string
- func NewTLSConfig(certFile, keyFile, caFile string, insecureSkipVerify bool) (*tls.Config, error)
- func StolonName(name string) string
- func UID() string
- func UUID() string
- func WriteFileAtomic(filename string, perm os.FileMode, data []byte) error
- func WriteFileAtomicFunc(filename string, perm os.FileMode, writeFunc func(f io.Writer) error) error
- type Parameters
- type Role
Constants ¶
View Source
const ( StorePrefix = "stolon/cluster" SentinelLeaderKey = "sentinel-leader" )
View Source
const PgUnixSocketDirectories = "/tmp"
Variables ¶
This section is empty.
Functions ¶
func IsStolonName ¶
func NameFromStolonName ¶
func NewTLSConfig ¶
func StolonName ¶
func WriteFileAtomic ¶
WriteFileAtomic atomically writes a file
func WriteFileAtomicFunc ¶
func WriteFileAtomicFunc(filename string, perm os.FileMode, writeFunc func(f io.Writer) error) error
WriteFileAtomicFunc atomically writes a file, it achieves this by creating a temporary file and then moving it. writeFunc is the func that will write data to the file. This function is taken from
https://github.com/youtube/vitess/blob/master/go/ioutil2/ioutil.go
Copyright 2012, Google Inc. BSD-license, see licenses/LICENSE-BSD-3-Clause
Types ¶
type Parameters ¶
func (Parameters) Equals ¶
func (s Parameters) Equals(is Parameters) bool
Click to show internal directories.
Click to hide internal directories.