common

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLog added in v0.5.0

type AccessLog struct {
	Bucket string
	Prefix string
}

AccessLog is the configuration for a bucket's access log

type Account

type Account struct {
	Endpoint                             string
	Region                               string
	Akid                                 string
	Secret                               string
	DefaultS3BucketActions               []string
	DefaultS3ObjectActions               []string
	DefaultCloudfrontDistributionActions []string
	AccessLog                            *AccessLog
	Domains                              map[string]*Domain
	Cleaner                              *Cleaner
}

Account is the configuration for an individual account

type Cleaner added in v0.9.0

type Cleaner struct {
	Interval string
	MaxSplay string
}

Cleaner is the configuration for the periodic cleaner task

type Config

type Config struct {
	ListenAddress string
	Accounts      map[string]Account
	Token         string
	LogLevel      string
	Version       Version
	Org           string
}

Config is representation of the configuration data

func ReadConfig

func ReadConfig(r io.Reader) (Config, error)

ReadConfig decodes the configuration from an io Reader

type Domain added in v0.6.0

type Domain struct {
	CertArn      string
	HostedZoneID string
}

Domain is the domain configuration for an S3 site

type Version added in v0.3.2

type Version struct {
	Version           string
	VersionPrerelease string
	BuildStamp        string
	GitHash           string
}

Version carries around the API version information

Jump to

Keyboard shortcuts

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