Documentation
¶
Index ¶
- type Crumb
- type Directory
- type File
- type S3Browser
- func (S3Browser) CaddyModule() caddy.ModuleInfo
- func (b *S3Browser) Provision(ctx caddy.Context) (err error)
- func (b S3Browser) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (b *S3Browser) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (b *S3Browser) Validate() error
- type S3Client
- type S3FsCache
- type S3FsSorter
- type TemplateArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type File ¶
func (File) HumanModTime ¶
HumanModTime returns the modified time of the file as a human-readable string.
type S3Browser ¶
type S3Browser struct { // Config (these fields must be public) SiteName string `json:"site_name,omitempty"` Endpoint string `json:"endpoint,omitempty"` Region string `json:"region,omitempty"` Key string `json:"key,omitempty"` Secret string `json:"secret,omitempty"` Bucket string `json:"bucket,omitempty"` Secure bool `json:"secure,omitempty"` RefreshInterval time.Duration `json:"refresh_interval,omitempty"` RefreshAPISecret string `json:"refresh_api_secret,omitempty"` Debug bool `json:"debug,omitempty"` SignedURLRedirect bool `json:"signed_url_redirect,omitempty"` SortAlgorithm string `json:"sort_algorithm,omitempty"` // contains filtered or unexported fields }
func (S3Browser) CaddyModule ¶
func (S3Browser) CaddyModule() caddy.ModuleInfo
func (*S3Browser) UnmarshalCaddyfile ¶
type S3Client ¶
type S3Client struct {
// contains filtered or unexported fields
}
func NewS3Client ¶
func (*S3Client) ForEachObject ¶
type S3FsCache ¶
type S3FsCache struct {
// contains filtered or unexported fields
}
func NewS3FsCache ¶
func NewS3FsCache(client S3Client, sorter *S3FsSorter, l *zap.Logger) S3FsCache
type S3FsSorter ¶
type S3FsSorter struct {
// contains filtered or unexported fields
}
func NewS3FsSorter ¶
func NewS3FsSorter(algorithm string, reverse bool) (*S3FsSorter, error)
func (*S3FsSorter) Sort ¶
func (s *S3FsSorter) Sort(names []string)
type TemplateArgs ¶
Click to show internal directories.
Click to hide internal directories.