Documentation ¶
Index ¶
- func ComposeBlobPath(repo string, digest string, proto string, protoVersion string) string
- func ComposeManifestPath(repo string, tag string, proto string, protoVersion string) string
- func DeleteBlob(ctx *context.Context, repo string, digest string, proto string, ...) error
- func DeleteManifest(ctx *context.Context, repo string, tag string, proto string, ...) error
- func Driver() driver.StorageDriver
- func GetBlob(ctx *context.Context, repo string, digest string, proto string, ...) ([]byte, error)
- func GetManifest(ctx *context.Context, repo string, tag string, proto string, ...) ([]byte, error)
- func HeadBlob(ctx *context.Context, repo string, digest string, proto string, ...) (driver.FileInfo, error)
- func HealthRegist() error
- func InitStorage(cfg config.StorageConfig) error
- func PutBlob(ctx *context.Context, repo string, proto string, protoVersion string, ...) error
- func PutManifest(ctx *context.Context, repo string, tag string, proto string, ...) error
- type Health
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeBlobPath ¶
ComposeBlobPath composes the blob path from the 'digest, proto, proto version' repo is not used
func ComposeManifestPath ¶
ComposeManifestPath composes the manifest path from the 'proto, proto version, repo and tag'
func DeleteBlob ¶
func DeleteBlob(ctx *context.Context, repo string, digest string, proto string, protoVersion string) error
DeleteBlob deletes the blob TODO we need to get user in ctx, or setting in config
func DeleteManifest ¶
func DeleteManifest(ctx *context.Context, repo string, tag string, proto string, protoVersion string) error
DeleteManifest deletes the manifest data TODO we need to get user in ctx, or setting in config
func GetBlob ¶
func GetBlob(ctx *context.Context, repo string, digest string, proto string, protoVersion string) ([]byte, error)
GetBlob gets the blob data TODO we need to get user in ctx, or setting in config
func GetManifest ¶
func GetManifest(ctx *context.Context, repo string, tag string, proto string, protoVersion string) ([]byte, error)
GetManifest gets the manifest data TODO we need to get user in ctx, or setting in config
func HeadBlob ¶
func HeadBlob(ctx *context.Context, repo string, digest string, proto string, protoVersion string) (driver.FileInfo, error)
HeadBlob return the blob stat TODO we need to get user in ctx, or setting in config
func InitStorage ¶
func InitStorage(cfg config.StorageConfig) error
InitStorage setups the storage bankends from the config file