backend

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeFileSystemBackend added in v1.0.0

func InitializeFileSystemBackend(c FileSystemConfig, debug bool) (cache.Backend, error)

InitializeFileSystemBackend creates a filesystem backend

func InitializeS3Backend added in v1.0.0

func InitializeS3Backend(c S3Config, debug bool) (cache.Backend, error)

InitializeS3Backend creates an S3 backend

Types

type FileSystemConfig added in v1.0.0

type FileSystemConfig struct {
	CacheRoot string
}

FileSystemConfig is a structure to store filesystem backend configuration

type S3Config added in v1.0.0

type S3Config struct {
	// Indicates the files ACL, which should be one
	// of the following:
	//     private
	//     public-read
	//     public-read-write
	//     authenticated-read
	//     bucket-owner-read
	//     bucket-owner-full-control
	ACL        string
	Bucket     string
	Encryption string // if not "", enables server-side encryption. valid values are: AES256, aws:kms
	Endpoint   string
	Key        string

	// us-east-1
	// us-west-1
	// us-west-2
	// eu-west-1
	// ap-southeast-1
	// ap-southeast-2
	// ap-northeast-1
	// sa-east-1
	Region string
	Secret string

	PathStyle bool // Use path style instead of domain style. Should be true for minio and false for AWS
}

S3Config is a structure to store S3 backend configuration

Jump to

Keyboard shortcuts

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