application

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBlob

func DeleteBlob(
	ctx context.Context,
	blobRepo domain.BlobDescriptorRepo,
	pubkey string,
	sha256 string,
	authSha256 string,
) error

func GetBlob

func GetBlob(
	ctx context.Context,
	blobRepo domain.BlobDescriptorRepo,
	sha256 string,
) ([]byte, error)

func HasBlob

func HasBlob(
	ctx context.Context,
	blobRepo domain.BlobDescriptorRepo,
	sha256 string,
) (bool, error)

func ListBlobs

func ListBlobs(
	ctx context.Context,
	blobDescriptorRepo domain.BlobDescriptorRepo,
	pubkey string,

) ([]*domain.BlobDescriptor, error)

func MirrorBlob

func MirrorBlob(
	ctx context.Context,
	blobRepo domain.BlobDescriptorRepo,
	cdnBaseUrl string,
	pubkey string,
	authSha256 string,
	blobUrl url.URL,
) (*domain.BlobDescriptor, error)

func UploadBlob

func UploadBlob(
	ctx context.Context,
	blobRepo domain.BlobDescriptorRepo,
	cdnBaseUrl string,
	authSha256 string,
	pubkey string,
	blobBytes []byte,

) (*domain.BlobDescriptor, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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