filesystem

package
v0.0.0-...-2a0b3d7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 11 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(ctx context.Context, account models.ReducedAccount, storageID string, chunkCount uint32) error

AbortBlobUpload implements the keppel.StorageDriver interface.

func (*StorageDriver) AppendToBlob

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

AppendToBlob implements the keppel.StorageDriver interface.

func (*StorageDriver) CanSetupAccount

func (d *StorageDriver) CanSetupAccount(ctx context.Context, account models.ReducedAccount) error

CanSetupAccount implements the keppel.StorageDriver interface.

func (*StorageDriver) CleanupAccount

func (d *StorageDriver) CleanupAccount(ctx context.Context, account models.ReducedAccount) error

CleanupAccount implements the keppel.StorageDriver interface.

func (*StorageDriver) DeleteBlob

func (d *StorageDriver) DeleteBlob(ctx context.Context, account models.ReducedAccount, storageID string) error

DeleteBlob implements the keppel.StorageDriver interface.

func (*StorageDriver) DeleteManifest

func (d *StorageDriver) DeleteManifest(ctx context.Context, account models.ReducedAccount, repoName string, manifestDigest digest.Digest) error

DeleteManifest implements the keppel.StorageDriver interface.

func (*StorageDriver) FinalizeBlob

func (d *StorageDriver) FinalizeBlob(ctx context.Context, account models.ReducedAccount, 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

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(ctx context.Context, account models.ReducedAccount, storageID string) (io.ReadCloser, uint64, error)

ReadBlob implements the keppel.StorageDriver interface.

func (*StorageDriver) ReadManifest

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

ReadManifest implements the keppel.StorageDriver interface.

func (*StorageDriver) URLForBlob

func (d *StorageDriver) URLForBlob(ctx context.Context, account models.ReducedAccount, storageID string) (string, error)

URLForBlob implements the keppel.StorageDriver interface.

func (*StorageDriver) WriteManifest

func (d *StorageDriver) WriteManifest(ctx context.Context, account models.ReducedAccount, 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