location

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package location implements parsing the restic repository location from a string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripPassword added in v0.11.0

func StripPassword(s string) string

StripPassword returns a displayable version of a repository location (with any sensitive information removed)

Types

type Location

type Location struct {
	Scheme string
	Config interface{}
}

Location specifies the location of a repository, including the method of access and (possibly) credentials needed for access.

func Parse

func Parse(s string) (u Location, err error)

Parse extracts repository location information from the string s. If s starts with a backend name followed by a colon, that backend's Parse() function is called. Otherwise, the local backend is used which interprets s as the name of a directory.

Jump to

Keyboard shortcuts

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