Documentation ¶
Index ¶
- Constants
- func NewDecoder(in io.Reader) *yaml.Decoder
- func NewEncoder(out io.Writer) *yaml.Encoder
- func WriteTo(v interface{}, out io.Writer) (int64, error)
- type Decoder
- type Encoder
- type ExportDepth
- type Group
- type Store
- func (store *Store) ExportNode(w types.Node, depth ExportDepth) (g Group, err error)
- func (store *Store) ExportNodes(w []types.Node, depth ExportDepth) ([]Group, error)
- func (store *Store) ExportSlice(data *types.Library, depth ExportDepth) yaml.MapSlice
- func (store *Store) ExportUser(w *types.User, depth ExportDepth) (*User, error)
- func (store *Store) Load() (*types.Library, error)
- func (store *Store) ReadNodeFile(filename string) (types.Node, error)
- func (store *Store) ReadUserFile(filename string) (*types.User, error)
- func (store *Store) Store(data *types.Library) error
- func (store *Store) WriteTo(data *types.Library, out io.Writer) (int64, error)
- type User
Constants ¶
View Source
const ( StoreDirectoryMode fs.FileMode = 0755 StoreFileMode fs.FileMode = 0644 )
Variables ¶
This section is empty.
Functions ¶
func NewDecoder ¶
func NewEncoder ¶
Types ¶
type Store ¶
type Store struct {
Basedir string
}
func (*Store) ExportNode ¶
Export Node data for YAML encoding
func (*Store) ExportNodes ¶
func (*Store) ExportSlice ¶
func (store *Store) ExportSlice(data *types.Library, depth ExportDepth) yaml.MapSlice
Export Library for YAML encoding
func (*Store) ExportUser ¶
Export User data for YAML encoding
Click to show internal directories.
Click to hide internal directories.