nodeset

package
v0.0.0-...-d9d3431 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PathDoesNotExistError = errors.New("Path does not exist in synced nodesets.")

Functions

This section is empty.

Types

type NodeSet

type NodeSet struct {
	ID         string
	FolderName string
	PlainPath  string
	Nodes      []config.NodeConfig
}

func FromDataPath

func FromDataPath(path string) ([]NodeSet, error)

func FromFacePath

func FromFacePath(path string) ([]NodeSet, error)

func FromFullPath

func FromFullPath(path string) (*NodeSet, error)

func FromGUIDs

func FromGUIDs(guids []string) (*NodeSet, error)

Creates the NodeSet corresponding to the given GUIDs. Mutates guids

func FromHash

func FromHash(hash string) (*NodeSet, error)

func FromSubdirPath

func FromSubdirPath(subdir string, path string) ([]NodeSet, error)

func MountList

func MountList() []NodeSet

func SetsContaining

func SetsContaining(guid string) ([]NodeSet, error)

func (*NodeSet) Add

func (ns *NodeSet) Add(guids []string) (*NodeSet, error)

func (*NodeSet) Aliases

func (ns *NodeSet) Aliases() []string

func (*NodeSet) Contains

func (ns *NodeSet) Contains(guid string) bool

func (*NodeSet) DataDir

func (ns *NodeSet) DataDir() string

func (*NodeSet) FacesDir

func (ns *NodeSet) FacesDir() string

func (*NodeSet) GUIDs

func (ns *NodeSet) GUIDs() []string

func (*NodeSet) IgnoreFile

func (ns *NodeSet) IgnoreFile() string

func (*NodeSet) MessagesDir

func (ns *NodeSet) MessagesDir() string

func (*NodeSet) RemovePath

func (ns *NodeSet) RemovePath(path string) error

func (*NodeSet) Sub

func (ns *NodeSet) Sub(guids []string) (*NodeSet, error)

type NodeSetPair

type NodeSetPair struct {
	DataSet *NodeSet
	FaceSet *NodeSet
}

Jump to

Keyboard shortcuts

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