client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2019 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(inctx context.Context, backupDir string, mdbConnOpts ConnectionOptions, mdbSSLOpts SSLOptions,
	conn *grpc.ClientConn, logger *logrus.Logger) (*Client, error)

func (*Client) ID

func (c *Client) ID() string

func (*Client) IsDBBackupRunning

func (c *Client) IsDBBackupRunning() bool

func (*Client) IsOplogBackupRunning

func (c *Client) IsOplogBackupRunning() bool

func (*Client) NodeName

func (c *Client) NodeName() string

func (*Client) ReplicasetName

func (c *Client) ReplicasetName() string

func (*Client) Stop

func (c *Client) Stop() error

type ConnectionOptions

type ConnectionOptions struct {
	Host                string `yaml:"host,omitempty"`
	Port                string `yaml:"port,omitempty"`
	User                string `yaml:"user,omitempty"`
	Password            string `yaml:"password,omitempty"`
	AuthDB              string `yaml:"authdb,omitempty"`
	ReplicasetName      string `yaml:"replicaset_name,omitempty"`
	Timeout             int    `yaml:"timeout,omitempty"`
	TCPKeepAliveSeconds int    `yaml:"tcp_keep_alive_seconds,omitempty"`
	ReconnectDelay      int    `yaml:"reconnect_delay,omitempty"`
	ReconnectCount      int    `yaml:"reconnect_count,omitempty"` // 0: forever
}

type SSLOptions

type SSLOptions struct {
	UseSSL              bool   `yaml:"use_ssl,omitempty"`
	SSLCAFile           string `yaml:"sslca_file,omitempty"`
	SSLPEMKeyFile       string `yaml:"sslpem_key_file,omitempty"`
	SSLPEMKeyPassword   string `yaml:"sslpem_key_password,omitempty"`
	SSLCRLFile          string `yaml:"sslcrl_file,omitempty"`
	SSLAllowInvalidCert bool   `yaml:"ssl_allow_invalid_cert,omitempty"`
	SSLAllowInvalidHost bool   `yaml:"ssl_allow_invalid_host,omitempty"`
	SSLFipsMode         bool   `yaml:"ssl_fips_mode,omitempty"`
}

Struct holding ssl-related options

Jump to

Keyboard shortcuts

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