storage

package
v0.0.0-...-8635785 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Local LocalConfig
	S3    S3Config
	GS    []GSConfig
	Swift SwiftConfig
}

Config describes configuration for all storage types

func DefaultConfig

func DefaultConfig() Config

type GSConfig

type GSConfig struct {
	AccountFile string
	FromEnv     bool
}

GSConfig describes configuration for the Google Cloud storage backend.

func (GSConfig) Valid

func (g GSConfig) Valid() bool

Valid validates the GSConfig configuration.

func (GSConfig) Validate

func (g GSConfig) Validate() (errs []error)

type LocalConfig

type LocalConfig struct {
	AllowedDirs []string
}

LocalConfig describes the directories Funnel can read from and write to

func (LocalConfig) Valid

func (l LocalConfig) Valid() bool

Valid validates the LocalConfig configuration

type S3Config

type S3Config struct {
	Key     string
	Secret  string
	FromEnv bool
}

S3Config describes the directories Funnel can read from and write to

func (S3Config) Validate

func (l S3Config) Validate() (errs []error)

Validate validates the LocalConfig configuration

type SwiftConfig

type SwiftConfig struct {
	UserName   string
	Password   string
	AuthURL    string
	TenantName string
	TenantID   string
	RegionName string
}

SwiftConfig configures the OpenStack Swift object storage backend.

func (SwiftConfig) Valid

func (s SwiftConfig) Valid() bool

Valid validates the SwiftConfig configuration.

Jump to

Keyboard shortcuts

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