disk

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: Apache-2.0 Imports: 11 Imported by: 6

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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