resources

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: ISC Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalid = errors.New("invalid type")
)

Functions

This section is empty.

Types

type Type

type Type uint32
const (
	RT_CONFIG    Type = 1
	RT_LOCK      Type = 2
	RT_STATE     Type = 3
	RT_PACKFILE  Type = 4
	RT_SNAPSHOT  Type = 5
	RT_SIGNATURE Type = 6
	RT_OBJECT    Type = 7
	// Type = 8 - unused, can't be used
	RT_CHUNK       Type = 9
	RT_VFS_BTREE   Type = 10
	RT_VFS_NODE    Type = 11
	RT_VFS_ENTRY   Type = 12
	RT_ERROR_BTREE Type = 13
	RT_ERROR_NODE  Type = 14
	RT_ERROR_ENTRY Type = 15
	RT_XATTR_BTREE Type = 16
	RT_XATTR_NODE  Type = 17
	RT_XATTR_ENTRY Type = 18
	RT_BTREE_ROOT  Type = 19
	RT_BTREE_NODE  Type = 20

	// Type is a uint32 but we can't set it a value > 255 as state v1
	// assume it's a uint8
	RT_RANDOM Type = 255
)

func FromString added in v1.0.3

func FromString(typ string) (Type, error)

func Types

func Types() []Type

func (Type) String

func (r Type) String() string

Jump to

Keyboard shortcuts

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