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, data []byte, perm os.FileMode) error
- type Parameters
- type Role
Constants ¶
View Source
const ( StoreBasePath = "stolon/cluster" SentinelLeaderKey = "sentinel-leader" )
Variables ¶
This section is empty.
Functions ¶
func IsStolonName ¶ added in v0.5.0
func NameFromStolonName ¶ added in v0.5.0
func NewTLSConfig ¶ added in v0.5.0
func StolonName ¶ added in v0.5.0
func WriteFileAtomic ¶ added in v0.6.0
WriteFileAtomic atoically writes a file, it achieves this by creating a temporary file and then moving it. 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 ¶ added in v0.5.0
func (Parameters) Equals ¶ added in v0.5.0
func (s Parameters) Equals(is Parameters) bool
Click to show internal directories.
Click to hide internal directories.