storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageConfig

type StorageConfig []StorageConfigEntry

StorageConfig defines a list of storage locations to mirror artifacts.

type StorageConfigEntry

type StorageConfigEntry struct {
	// URI must define a metalink-friendly file path which supports writing.
	URI string `yaml:"uri"`

	// Location may define an ISO3166-1 alpha-2 country code for the geographical
	// location.
	Location string `yaml:"location"`

	// Priority may specify a priority for this mirror.
	Priority *uint `yaml:"priority"`

	// Options should specify credentials which are required for write-operations
	// for the URI-specific schema (e.g. AWS credentials for S3).
	Options map[string]string `yaml:"options"`
}

StorageConfigEntry defines a specific mirror location.

Jump to

Keyboard shortcuts

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