reservationstorage

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIndexCleaner

func NewIndexCleaner(s Store) *cleaner.Cleaner

NewIndexCleaner creates a cleaner removing expired indices and reservations.

Types

type Store

type Store interface {
	AdmitSegmentReservation(ctx context.Context, req *sgt.SetupReq) (
		base.MessageWithPath, error)
	ConfirmSegmentReservation(ctx context.Context, req *sgt.IndexConfirmationReq) (
		base.MessageWithPath, error)
	CleanupSegmentReservation(ctx context.Context, req *sgt.CleanupReq) (
		base.MessageWithPath, error)
	TearDownSegmentReservation(ctx context.Context, req *sgt.TeardownReq) (
		base.MessageWithPath, error)
	AdmitE2EReservation(ctx context.Context, req e2e.SetupRequest) (
		base.MessageWithPath, error)
	CleanupE2EReservation(ctx context.Context, req *e2e.CleanupReq) (
		base.MessageWithPath, error)

	DeleteExpiredIndices(ctx context.Context) (int, error)
}

Store is the interface to interact with the reservation store.

Directories

Path Synopsis
mock_backend
Package mock_backend is a generated GoMock package.
Package mock_backend is a generated GoMock package.

Jump to

Keyboard shortcuts

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