package
0.4.8
Repository: https://github.com/coralproject/shelf.git
Documentation: pkg.go.dev

# README

disk

import "github.com/coralproject/shelf/cmd/xenia/disk"

Overview

Index

Package files

disk.go

func LoadDir

func LoadDir(dir string, loader func(string) error) error

LoadDir loadsup a given directory, calling a load function for each valid json file found.

func LoadMask

func LoadMask(context interface{}, path string) (mask.Mask, error)

LoadMask serializes the content of a Mask from a file using the given file path. Returns the serialized Mask value.

func LoadRegex

func LoadRegex(context interface{}, path string) (regex.Regex, error)

LoadRegex serializes the content of a regex from a file using the given file path. Returns the serialized regex value.

func LoadRelationship

func LoadRelationship(context interface{}, path string) (relationship.Relationship, error)

LoadRelationship serializes the content of a Relationship from a file using the given file path. Returns the serialized Relationship value.

func LoadScript

func LoadScript(context interface{}, path string) (script.Script, error)

LoadScript serializes the content of a Script from a file using the given file path. Returns the serialized Script value.

func LoadSet

func LoadSet(context interface{}, path string) (*query.Set, error)

LoadSet serializes the content of a Set from a file using the given file path. Returns the serialized Set value.

func LoadView

func LoadView(context interface{}, path string) (view.View, error)

LoadView serializes the content of a View from a file using the given file path. Returns the serialized View value.


Generated by godoc2md

# Functions

LoadDir loadsup a given directory, calling a load function for each valid json file found.
LoadMask serializes the content of a Mask from a file using the given file path.
LoadRegex serializes the content of a regex from a file using the given file path.
LoadRelationship serializes the content of a Relationship from a file using the given file path.
LoadScript serializes the content of a Script from a file using the given file path.
LoadSet serializes the content of a Set from a file using the given file path.
LoadView serializes the content of a View from a file using the given file path.