storagestate

package
v1.27.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStatusReadOnly = errors.New("store is read-only")
	ErrInvalidStatus  = errors.New("invalid storage status")
)
View Source
var ErrStatusReadOnlyWithReason = func(reason string) error {
	return fmt.Errorf("store is read-only due to: %v", reason)
}

Functions

This section is empty.

Types

type Status

type Status string
const (
	StatusReadOnly Status = "READONLY"
	StatusIndexing Status = "INDEXING"
	StatusLoading  Status = "LOADING"
	StatusReady    Status = "READY"
)

func ValidateStatus

func ValidateStatus(in string) (status Status, err error)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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