Documentation
¶
Index ¶
- Variables
- func NewNotFoundError(name string) error
- func SendImage(shell *net.ScpShell, location string, image *Image) (string, error)
- type Blobs
- type FileStore
- func (r *FileStore) GetBlob(cid, digest string) ([]byte, error)
- func (r *FileStore) GetManifest(cid, reference string) ([]byte, error)
- func (r *FileStore) HasBlob(cid, digest string) bool
- func (r *FileStore) Resolve(name string, ref string) ([]string, error)
- func (r *FileStore) Save(image *Image) (string, error)
- func (r *FileStore) String() string
- type Image
- type IpfsStore
- func (r *IpfsStore) GetBlob(cid, digest string) ([]byte, error)
- func (r *IpfsStore) GetManifest(cid, reference string) ([]byte, error)
- func (r *IpfsStore) HasBlob(cid, digest string) bool
- func (r *IpfsStore) Resolve(name string, ref string) ([]string, error)
- func (r *IpfsStore) Save(image *Image) (string, error)
- type Manifests
- type MemoryStore
- func (r *MemoryStore) GetBlob(cid, digest string) ([]byte, error)
- func (r *MemoryStore) GetManifest(cid, reference string) ([]byte, error)
- func (r *MemoryStore) HasBlob(cid, digest string) bool
- func (r *MemoryStore) Resolve(name string, ref string) ([]string, error)
- func (r *MemoryStore) Save(image *Image) (string, error)
- type NotFoundError
- type ScpStore
- func (r *ScpStore) GetBlob(cid, digest string) ([]byte, error)
- func (r *ScpStore) GetManifest(cid, reference string) ([]byte, error)
- func (r *ScpStore) HasBlob(cid, digest string) bool
- func (r *ScpStore) Resolve(name string, ref string) ([]string, error)
- func (r *ScpStore) Save(image *Image) (string, error)
- func (r *ScpStore) String() string
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalid = errors.New("invalid")
View Source
var ErrNotSupported = errors.New("not suppored")
Functions ¶
func NewNotFoundError ¶
Types ¶
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
FileStore layout <location>/<name>/
blobs/ <digest> ... manifests/ <reference> ...
func (*FileStore) GetManifest ¶
type IpfsStore ¶
type IpfsStore struct {
// contains filtered or unexported fields
}
func (*IpfsStore) GetManifest ¶
type MemoryStore ¶
func (*MemoryStore) GetManifest ¶
func (r *MemoryStore) GetManifest(cid, reference string) ([]byte, error)
func (*MemoryStore) HasBlob ¶
func (r *MemoryStore) HasBlob(cid, digest string) bool
type NotFoundError ¶
NotFoundError not found
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
func (*NotFoundError) Unwrap ¶
func (e *NotFoundError) Unwrap() error
type ScpStore ¶
type ScpStore struct {
// contains filtered or unexported fields
}
ScpStore uses scp.
func (*ScpStore) GetManifest ¶
type Store ¶
type Store interface { Save(image *Image) (string, error) Resolve(name, reference string) ([]string, error) HasBlob(cid, digest string) bool GetBlob(cid, digest string) ([]byte, error) GetManifest(cid, reference string) ([]byte, error) }
func NewFileStore ¶
NewFileStore creates a local file system store file:/path
func NewIpfsStore ¶
func NewMemoryStore ¶
Click to show internal directories.
Click to hide internal directories.