Documentation
¶
Index ¶
- func AssetURL(baseURL string, key string) (string, error)
- func CleanKey(key string) (string, error)
- func NormalizeBaseURL(baseURL string) string
- func SignTestfile(sha256Hex string, expiresUnix int64, signingKey []byte) string
- func SignedTestfileURL(baseURL string, sha256Hex string, signingKey []byte, expires time.Time) string
- func ValidTestfileSignature(sha256Hex string, expiresUnix int64, signature string, signingKey []byte, ...) bool
- type Store
- func (s *Store) Delete(key string) error
- func (s *Store) Download(key string) ([]byte, error)
- func (s *Store) Exists(key string) (bool, error)
- func (s *Store) Open(key string) (io.ReadCloser, error)
- func (s *Store) Path(key string) (string, error)
- func (s *Store) Root() string
- func (s *Store) ServeHTTP(w http.ResponseWriter, r *http.Request, key string) error
- func (s *Store) Upload(content []byte, key string, mediaType string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeBaseURL ¶
func SignTestfile ¶
func SignedTestfileURL ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.