client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 27 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"`
	Port                string `yaml:"port"`
	User                string `yaml:"user"`
	Password            string `yaml:"password"`
	ReplicasetName      string `yaml:"replicaset_name"`
	Timeout             int    `yaml:"timeout"`
	TCPKeepAliveSeconds int    `yaml:"tcp_keep_alive_seconds"`
}

type SSLOptions

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

Struct holding ssl-related options

Jump to

Keyboard shortcuts

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