data

package
v0.0.0-...-a6c131b Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(
	NewObjectStorage,
)

Functions

func SnapshotKey

func SnapshotKey(ref bufmoduleref.ModuleReference) string

Types

type ObjectStorage

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

func NewObjectStorage

func NewObjectStorage(cfg *conf.Data_TencentOSS, logger log.Logger) (*ObjectStorage, func(), error)

func (*ObjectStorage) CreateModuleSnapshot

func (o *ObjectStorage) CreateModuleSnapshot(ctx context.Context, ref bufmoduleref.ModuleReference, snapshot *registryv1alpha1.DownloadResponse) error

func (*ObjectStorage) FetchModuleSnapshot

func (*ObjectStorage) HasModuleSnapshot

func (o *ObjectStorage) HasModuleSnapshot(ctx context.Context, ref bufmoduleref.ModuleReference) (bool, error)

Jump to

Keyboard shortcuts

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