Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create opens a connection to the B2 service. If the bucket does not exist yet, it is created.
func NewFactory ¶
Types ¶
type Config ¶
type Config struct { AccountID string Key options.SecretString Bucket string Prefix string Connections uint `option:"connections" help:"set a limit for the number of concurrent connections (default: 5)"` }
Config contains all configuration necessary to connect to an b2 compatible server.
func NewConfig ¶
func NewConfig() Config
NewConfig returns a new config with default options applied.
func ParseConfig ¶
ParseConfig parses the string s and extracts the b2 config. The supported configuration format is b2:bucketname/prefix. If no prefix is given the prefix "restic" will be used.
func (*Config) ApplyEnvironment ¶
ApplyEnvironment saves values from the environment to the config.
Click to show internal directories.
Click to hide internal directories.