Documentation ¶
Index ¶
- Variables
- func IsErrAssetFsUnavailable(err error) bool
- type Endpoint
- type NameGetter
- type NamedStorage
- type NamedStorageInterface
- type Names
- func (names *Names) Alias(real, alias string, aliases ...string) error
- func (names *Names) Get(key string) (name string)
- func (names *Names) GetOrDefault(key string, defauls ...string) (name string)
- func (names *Names) Getter(getter NameGetter) *Names
- func (names *Names) Set(key, value string) *Names
- type Object
- type StorageInterface
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsErrAssetFsUnavailable ¶
Types ¶
type Endpoint ¶
func (*Endpoint) DinamicURL ¶
type NameGetter ¶
type NamedStorage ¶
type NamedStorage struct { StorageInterface StorageName string }
func (*NamedStorage) Name ¶
func (ns *NamedStorage) Name() string
type NamedStorageInterface ¶
type NamedStorageInterface interface { StorageInterface Name() string }
type Names ¶
type Names struct {
// contains filtered or unexported fields
}
func (*Names) GetOrDefault ¶
func (*Names) Getter ¶
func (names *Names) Getter(getter NameGetter) *Names
type Object ¶
type Object struct { Path string Name string LastModified *time.Time StorageInterface StorageInterface }
Object content object
type StorageInterface ¶
type StorageInterface interface { http.Handler Stat(path string) (info os.FileInfo, notFound bool, err error) Get(path string) (*os.File, error) Put(path string, reader io.Reader) (*Object, error) Delete(path string) error List(path string) ([]*Object, error) GetEndpoint() *Endpoint GetURL(p ...string) string GetDynamicURL(scheme, host string, p ...string) (url string) AssetFS() (assetfsapi.Interface, error) }
StorageInterface define common API to operate storage
Click to show internal directories.
Click to hide internal directories.