Documentation ¶
Overview ¶
Package aws provides AWS protocol for NVGD.
Index ¶
Constants ¶
View Source
const (
S3Token = "s3token"
)
Variables ¶
This section is empty.
Functions ¶
func NewProxyClient ¶
NewProxyClient creates a proxied client for AWS.
Types ¶
type S3BucketConfig ¶
type S3BucketConfig struct { // Region is AWS region. // // @see http://docs.aws.amazon.com/general/latest/gr/rande.html Region string `yaml:"region"` // AccessKeyID is AWS access key ID. AccessKeyID string `yaml:"access_key_id"` // SecrentAccessKey is AWS secrent access key. SecretAccessKey string `yaml:"secret_access_key"` // SessionToken is AWS session token. SessionToken string `yaml:"session_token,omitempty"` // MaxKeys used for S3 object listing. MaxKeys int64 `yaml:"max_keys,omitempty"` // HTTPProxy used as HTTP proxy to access S3. HTTPProxy string `yaml:"http_proxy,omitempty"` }
S3BucketConfig is AWS configuration for buckets.
type S3Config ¶
type S3Config struct { // Timezone forces timezone of modified times or so. Timezone string `yaml:"timezone,omitempty"` // Default is default bucket configuration. Default S3BucketConfig `yaml:"default,omitempty"` // Buckets Buckets map[string]S3BucketConfig `yaml:"buckets,omitempty"` // UseUnixtime makes times in UNIX format: modified_at or so. UseUnixtime bool `yaml:"use_unixtime"` // contains filtered or unexported fields }
S3Config is configuration of S3 protocol handler.
type S3ListHandler ¶
type S3ListHandler struct {
Config *S3Config
}
S3ListHandler is AWS S3 list protocol handler
Click to show internal directories.
Click to hide internal directories.