types

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllNodeTypeNames

func AllNodeTypeNames() []string

Types

type FilePerm

type FilePerm struct {
	User  Perm
	Group Perm
	Other Perm
}

func FilePermFrom

func FilePermFrom(mode os.FileMode) FilePerm

type NodeType

type NodeType int8
const (
	UnspecifiedNodeType NodeType = iota
	ValidatorNode
	RpcNode
	SnapshotNode
	ArchivalNode
)

func NodeTypeFromString

func NodeTypeFromString(name string) NodeType

func (NodeType) String

func (t NodeType) String() string

type Perm

type Perm struct {
	Read  bool
	Write bool
	Exec  bool
}

func (Perm) AnyPermission

func (p Perm) AnyPermission() bool

func (Perm) IsFullPermission

func (p Perm) IsFullPermission() bool

Jump to

Keyboard shortcuts

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