Documentation ¶
Index ¶
- func AddFlags(fl *flag.FlagSet) func() (imageStore, fileStore BlobStore)
- type BlobStore
- func (bs BlobStore) BuildURL(srcPath string) string
- func (bs BlobStore) ReadMD5(ctx context.Context, path string) (hash []byte, size int64, err error)
- func (bs BlobStore) SignGetURL(ctx context.Context, srcPath string) (signedURL string, err error)
- func (bs BlobStore) SignPutURL(ctx context.Context, srcPath string, h http.Header) (signedURL string, err error)
- func (bs BlobStore) WriteFile(ctx context.Context, path string, h http.Header, data []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlobStore ¶
type BlobStore struct {
// contains filtered or unexported fields
}
func NewBlobStore ¶
func (BlobStore) SignGetURL ¶
func (BlobStore) SignPutURL ¶
Click to show internal directories.
Click to hide internal directories.