Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDNBucket ¶
type CDNBucket struct {
// contains filtered or unexported fields
}
func NewCDNBucket ¶
func NewCDNBucket(urlFactory URLFactory, bucket Bucket) CDNBucket
type CDNSignedURL ¶
type CDNSignedURL struct {
// contains filtered or unexported fields
}
func (CDNSignedURL) String ¶
func (u CDNSignedURL) String() (string, error)
type CDNSignedURLFactory ¶
type CDNSignedURLFactory struct {
// contains filtered or unexported fields
}
func NewCDNURLFactory ¶
func NewCDNURLFactory(base, keyPairID, privateKey string) (CDNSignedURLFactory, error)
func (CDNSignedURLFactory) New ¶
func (f CDNSignedURLFactory) New(path, fileName string) URL
type DirectURLFactory ¶
type DirectURLFactory struct {
// contains filtered or unexported fields
}
func (DirectURLFactory) New ¶
func (f DirectURLFactory) New(path, fileName string) URL
type File ¶
type File interface { Key() string ETag() string Size() uint64 LastModified() string URL() (string, error) }
func NewCDNFile ¶
func NewCDNFile(file File, urlFactory URLFactory) File
type PlainFile ¶
type PlainFile struct {
// contains filtered or unexported fields
}
func (PlainFile) LastModified ¶
type URLFactory ¶
func NewDirectURLFactory ¶
func NewDirectURLFactory(base string) URLFactory
Click to show internal directories.
Click to hide internal directories.