Documentation ¶
Index ¶
- type GitSource
- type S3
- func (s *S3) Fetch(ctx context.Context, path string) (io.ReadCloser, error)
- func (s *S3) Move(ctx context.Context, old, new string) error
- func (s *S3) Name() string
- func (s *S3) Persist(ctx context.Context, path, _ string, f nstorage.Persister) (string, int64, error)
- func (s *S3) Serve(digest string, req *http.Request, w http.ResponseWriter) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
func NewS3Storage ¶
func (*S3) Move ¶
Move renames a path inside the storage backend. This is used for staging uploads while calculating their hashes.
func (*S3) Persist ¶
func (s *S3) Persist(ctx context.Context, path, _ string, f nstorage.Persister) (string, int64, error)
Persist provides a user-supplied function with a writer that stores data in the storage backend.
It needs to return the SHA256 hash of the data written as well as the total number of bytes, as those are required for the image manifest.
Click to show internal directories.
Click to hide internal directories.