filesystem

package
v0.0.0-...-06e4513 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageDriver

type StorageDriver struct {
	// contains filtered or unexported fields
}

StorageDriver (driver ID "filesystem") is a keppel.StorageDriver that stores its contents in the local filesystem.

func (*StorageDriver) AbortBlobUpload

func (d *StorageDriver) AbortBlobUpload(account models.Account, storageID string, chunkCount uint32) error

AbortBlobUpload implements the keppel.StorageDriver interface.

func (*StorageDriver) AppendToBlob

func (d *StorageDriver) AppendToBlob(account models.Account, storageID string, chunkNumber uint32, chunkLength *uint64, chunk io.Reader) error

AppendToBlob implements the keppel.StorageDriver interface.

func (*StorageDriver) CanSetupAccount

func (d *StorageDriver) CanSetupAccount(account models.Account) error

CanSetupAccount implements the keppel.StorageDriver interface.

func (*StorageDriver) CleanupAccount

func (d *StorageDriver) CleanupAccount(account models.Account) error

CleanupAccount implements the keppel.StorageDriver interface.

func (*StorageDriver) DeleteBlob

func (d *StorageDriver) DeleteBlob(account models.Account, storageID string) error

DeleteBlob implements the keppel.StorageDriver interface.

func (*StorageDriver) DeleteManifest

func (d *StorageDriver) DeleteManifest(account models.Account, repoName string, manifestDigest digest.Digest) error

DeleteManifest implements the keppel.StorageDriver interface.

func (*StorageDriver) FinalizeBlob

func (d *StorageDriver) FinalizeBlob(account models.Account, storageID string, chunkCount uint32) error

FinalizeBlob implements the keppel.StorageDriver interface.

func (*StorageDriver) Init

func (d *StorageDriver) Init(ad keppel.AuthDriver, cfg keppel.Configuration) (err error)

Init implements the keppel.StorageDriver interface.

func (*StorageDriver) ListStorageContents

func (d *StorageDriver) ListStorageContents(account models.Account) ([]keppel.StoredBlobInfo, []keppel.StoredManifestInfo, error)

ListStorageContents implements the keppel.StorageDriver interface.

func (*StorageDriver) PluginTypeID

func (d *StorageDriver) PluginTypeID() string

PluginTypeID implements the keppel.StorageDriver interface.

func (*StorageDriver) ReadBlob

func (d *StorageDriver) ReadBlob(account models.Account, storageID string) (io.ReadCloser, uint64, error)

ReadBlob implements the keppel.StorageDriver interface.

func (*StorageDriver) ReadManifest

func (d *StorageDriver) ReadManifest(account models.Account, repoName string, manifestDigest digest.Digest) ([]byte, error)

ReadManifest implements the keppel.StorageDriver interface.

func (*StorageDriver) URLForBlob

func (d *StorageDriver) URLForBlob(account models.Account, storageID string) (string, error)

URLForBlob implements the keppel.StorageDriver interface.

func (*StorageDriver) WriteManifest

func (d *StorageDriver) WriteManifest(account models.Account, repoName string, manifestDigest digest.Digest, contents []byte) error

WriteManifest implements the keppel.StorageDriver interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL