Documentation ¶
Index ¶
- type Blobstore
- func (blobstore *Blobstore) Copy(src, dest string) error
- func (blobstore *Blobstore) Delete(path string) error
- func (blobstore *Blobstore) DeleteDir(prefix string) error
- func (blobstore *Blobstore) Exists(path string) (bool, error)
- func (blobstore *Blobstore) Get(path string) (body io.ReadCloser, err error)
- func (blobstore *Blobstore) GetOrRedirect(path string) (body io.ReadCloser, redirectLocation string, err error)
- func (blobstore *Blobstore) HeadOrRedirectAsGet(path string) (redirectLocation string, err error)
- func (blobstore *Blobstore) Put(path string, src io.ReadSeeker) error
- type LocalResourceSigner
- type SignatureVerificationMiddleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blobstore ¶
type Blobstore struct {
// contains filtered or unexported fields
}
func NewBlobstore ¶
func NewBlobstore(localConfig config.LocalBlobstoreConfig) *Blobstore
func (*Blobstore) Get ¶
func (blobstore *Blobstore) Get(path string) (body io.ReadCloser, err error)
func (*Blobstore) GetOrRedirect ¶
func (*Blobstore) HeadOrRedirectAsGet ¶
type LocalResourceSigner ¶
type LocalResourceSigner struct { Signer pathsigner.PathSigner ResourcePathPrefix string DelegateEndpoint string }
type SignatureVerificationMiddleware ¶
type SignatureVerificationMiddleware struct {
SignatureValidator pathsigner.PathSignatureValidator
}
func (*SignatureVerificationMiddleware) ServeHTTP ¶
func (middleware *SignatureVerificationMiddleware) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.