lrazureblobdriver

package
v0.0.0-...-ae6cc27 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2018 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureBlobOptions

type AzureBlobOptions struct {
	Container  string `short:"C" long:"container" description:"Azure Blob Storage container name" required:"true"`
	BlobPrefix string `short:"p" long:"blob-prefix" description:"Prefix used when storing and retrieving files. Optional" optional:"true"`
}

type DriverFactory

type DriverFactory struct {
	Ops *Options
}

DriverFactory implements strata.DriverFactory

func (DriverFactory) Driver

func (factory DriverFactory) Driver() (*strata.Driver, error)

Driver uses the DriverFactory's Options to construct a strata.Driver

func (DriverFactory) GetOptions

func (factory DriverFactory) GetOptions() interface{}

GetOptions returns the factory's Options

type Options

type Options struct {
	AzureBlobOptions AzureBlobOptions `group:"Azure Blob Options"`
	Replica          ReplicaOptions   `group:"Replica Options"`
}

Options define the common options needed by this strata command

type ReplicaOptions

type ReplicaOptions struct {
	MaxBackgroundCopies int    `` /* 132-byte string literal not displayed */
	Port                int    `long:"port" default:"27017" description:"Backup should look for a mongod instance that is listening on this port"`
	Username            string `long:"username" description:"If auth is configured, specify the username with admin privileges here"`
	Password            string `long:"password" description:"Password for the specified user."`
}

ReplicaOptions are used for commands like backup and restore

Jump to

Keyboard shortcuts

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