filestore

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg *Config) (blobstore.Client, error)

NewClient returns a new Client backed by file system

Types

type BucketConfig

type BucketConfig struct {
	Name          string `yaml:"name"`
	Owner         string `yaml:"owner"`
	RetentionDays int    `yaml:"retentionDays"`
}

BucketConfig describes the config for a bucket

type Config

type Config struct {
	StoreDirectory string         `yaml:"storeDirectory"`
	DefaultBucket  BucketConfig   `yaml:"defaultBucket"`
	CustomBuckets  []BucketConfig `yaml:"customBuckets"`
}

Config describes the configuration needed to construct a blobstore client backed by file system

func (*Config) Validate

func (c *Config) Validate() error

Validate validates config

Jump to

Keyboard shortcuts

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