arkuri

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package arkuri opens an ark.Backend from a single configuration string.

It is a plain scheme switch, not a registry: it imports every backend it supports, so importing arkuri is what pulls those backends into a binary. Callers who construct backends directly do not need this package.

Supported forms:

/srv/ark                            a local directory
local:///srv/ark                    the same, written as a URI
sftp://user@host:22/srv/ark         over SFTP

Non-secret sftp options ride as query parameters: known_hosts, identity and insecure. Secrets never appear in a URI; see arksftp for the environment variables that carry them.

Index

Constants

View Source
const (
	SchemeLocal = "local"
	SchemeSFTP  = "sftp"
)

Supported URI schemes.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, s string) (ark.Backend, error)

Open resolves s to a backend. A string with no scheme is a local path. The caller closes the returned backend.

Types

This section is empty.

Jump to

Keyboard shortcuts

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