Documentation ¶
Index ¶
- Constants
- Variables
- func ImageAncestryPath(id string) string
- func ImageChecksumPath(id string) string
- func ImageDiffPath(id string) string
- func ImageFilesPath(id string) string
- func ImageJsonPath(id string) string
- func ImageLayerPath(id string) string
- func ImageMarkPath(id string) string
- func RepoImagesListPath(namespace, repo string) string
- func RepoIndexImagesPath(namespace, repo string) string
- func RepoJsonPath(namespace, repo string) string
- func RepoPath(namespace, repo string) string
- func RepoPrivatePath(namespace, repo string) string
- func RepoTagJsonPath(namespace, repo, tag string) string
- func RepoTagPath(namespace, repo, tag string) string
- type Buffer
- type BufferDir
- type Config
- type Local
- func (s *Local) Exists(relpath string) (bool, error)
- func (s *Local) Get(relpath string) ([]byte, error)
- func (s *Local) GetReader(relpath string) (io.ReadCloser, error)
- func (s *Local) List(relpath string) ([]string, error)
- func (s *Local) Put(relpath string, data []byte) (err error)
- func (s *Local) PutReader(relpath string, r io.Reader, afterWrite func(io.ReadSeeker)) error
- func (s *Local) Remove(relpath string) error
- func (s *Local) RemoveAll(relpath string) error
- func (s *Local) Size(relpath string) (int64, error)
- type S3
- func (s *S3) Exists(relpath string) (bool, error)
- func (s *S3) Get(relpath string) ([]byte, error)
- func (s *S3) GetReader(relpath string) (io.ReadCloser, error)
- func (s *S3) List(relpath string) ([]string, error)
- func (s *S3) Put(relpath string, data []byte) error
- func (s *S3) PutReader(relpath string, r io.Reader, afterWrite func(io.ReadSeeker)) error
- func (s *S3) Remove(relpath string) error
- func (s *S3) RemoveAll(relpath string) error
- func (s *S3) Size(relpath string) (int64, error)
- type Storage
Constants ¶
View Source
const S3_CONTENT_TYPE = "application/binary"
View Source
const TAG_PREFIX = "tag_"
Variables ¶
View Source
var EMPTY_HEADERS = map[string][]string{}
View Source
var S3_OPTIONS = s3.Options{}
Functions ¶
func ImageAncestryPath ¶
func ImageChecksumPath ¶
func ImageDiffPath ¶
func ImageFilesPath ¶
func ImageJsonPath ¶
func ImageLayerPath ¶
func ImageMarkPath ¶
func RepoImagesListPath ¶
func RepoIndexImagesPath ¶
func RepoJsonPath ¶
func RepoPrivatePath ¶
func RepoTagJsonPath ¶
func RepoTagPath ¶
Types ¶
type BufferDir ¶
This will ensure that we don't try to upload the same thing from two different requests at the same time
type S3 ¶
type S3 struct { Region string `json:"region"` Bucket string `json:"bucket"` Root string `json:"root"` BufferDir string `json:"buffer_dir"` AccessKey string `json:"access_key"` SecretKey string `json:"secret_key"` // contains filtered or unexported fields }
type Storage ¶
type Storage interface { Get(string) ([]byte, error) Put(string, []byte) error GetReader(string) (io.ReadCloser, error) PutReader(string, io.Reader, func(io.ReadSeeker)) error List(string) ([]string, error) Exists(string) (bool, error) Size(string) (int64, error) Remove(string) error RemoveAll(string) error // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.