Documentation ¶
Index ¶
- Variables
- func SnapshotKey(ref bufmoduleref.ModuleReference) string
- type ObjectStorage
- func (o *ObjectStorage) CreateModuleSnapshot(ctx context.Context, ref bufmoduleref.ModuleReference, ...) error
- func (o *ObjectStorage) FetchModuleSnapshot(ctx context.Context, ref bufmoduleref.ModuleReference) (*registryv1alpha1.DownloadResponse, error)
- func (o *ObjectStorage) HasModuleSnapshot(ctx context.Context, ref bufmoduleref.ModuleReference) (bool, error)
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 (o *ObjectStorage) FetchModuleSnapshot(ctx context.Context, ref bufmoduleref.ModuleReference) (*registryv1alpha1.DownloadResponse, error)
func (*ObjectStorage) HasModuleSnapshot ¶
func (o *ObjectStorage) HasModuleSnapshot(ctx context.Context, ref bufmoduleref.ModuleReference) (bool, error)
Click to show internal directories.
Click to hide internal directories.