nodeset

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidNodeSet = errors.New("invalid nodeset")
	ErrParseNodeSet   = errors.New("nodeset parse error")
)
View Source
var (
	ErrInvalidRangeSet = errors.New("invalid range set")
	ErrParseRangeSet   = errors.New("rangeset parse error")
	ErrInvalidPadding  = errors.New("invalid padding")
)

Functions

This section is empty.

Types

type NodeSet

type NodeSet struct {
	// contains filtered or unexported fields
}

func NewNodeSet

func NewNodeSet(nodestr string) (*NodeSet, error)

func (*NodeSet) Iterator

func (ns *NodeSet) Iterator() *NodeSetIterator

func (*NodeSet) Len

func (ns *NodeSet) Len() int

func (*NodeSet) MarshalJSON

func (ns *NodeSet) MarshalJSON() ([]byte, error)

func (*NodeSet) String

func (ns *NodeSet) String() string

func (*NodeSet) UnmarshalJSON

func (ns *NodeSet) UnmarshalJSON(data []byte) error

type NodeSetIterator

type NodeSetIterator struct {
	// contains filtered or unexported fields
}

func (*NodeSetIterator) Len

func (i *NodeSetIterator) Len() int

func (*NodeSetIterator) Next

func (i *NodeSetIterator) Next() bool

func (*NodeSetIterator) Value

func (i *NodeSetIterator) Value() string

type Pattern

type Pattern struct {
	// contains filtered or unexported fields
}

type RangeSet

type RangeSet struct {
	// contains filtered or unexported fields
}

func NewRangeSet

func NewRangeSet(pattern string) (rs *RangeSet, err error)

func (*RangeSet) AddSlice

func (rs *RangeSet) AddSlice(slice *Slice) error

func (*RangeSet) AddString

func (rs *RangeSet) AddString(subrange string) (err error)

func (*RangeSet) Len

func (rs *RangeSet) Len() int

func (*RangeSet) Slices

func (rs *RangeSet) Slices() []*Slice

func (*RangeSet) String

func (rs *RangeSet) String() string

func (*RangeSet) Strings

func (rs *RangeSet) Strings() []string

func (*RangeSet) Subset

func (rs *RangeSet) Subset(other *RangeSet) bool

func (*RangeSet) Superset

func (rs *RangeSet) Superset(other *RangeSet) bool

type RangeSetND

type RangeSetND struct {
	// contains filtered or unexported fields
}

func NewRangeSetND

func NewRangeSetND(patterns []string) (nd *RangeSetND, err error)

func (*RangeSetND) Dim

func (nd *RangeSetND) Dim() int

func (*RangeSetND) Len

func (nd *RangeSetND) Len() int

func (*RangeSetND) Ranges

func (nd *RangeSetND) Ranges() []*RangeSet

func (*RangeSetND) String

func (nd *RangeSetND) String() string

func (*RangeSetND) Subset

func (nd *RangeSetND) Subset(other *RangeSetND) bool

func (*RangeSetND) Superset

func (nd *RangeSetND) Superset(other *RangeSetND) bool

func (*RangeSetND) Update

func (nd *RangeSetND) Update(patterns []string) error

type Slice

type Slice struct {
	// contains filtered or unexported fields
}

func (*Slice) String

func (s *Slice) String() string

Jump to

Keyboard shortcuts

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