Documentation ¶
Index ¶
- func CheckTag(cfg *Site, tag string) error
- func File() string
- func Write(file string, cfg *Site) error
- type Auth
- type Collection
- type Node
- type Nodes
- type Objects
- type Resources
- type Site
- func AddNode(cfg *Site, pID string, id string, name string, path string) (*Site, error)
- func AddObjectCollection(cfg *Site, storeID string, id string, name string, active bool) (*Site, error)
- func AddObjectStore(cfg *Site, id string, name string, loc string, active bool) (*Site, error)
- func AddObjectType(cfg *Site, storeID string, collID string, id string, name string, active bool) (*Site, error)
- func AddResources(cfg *Site, id string, resID string, name string, path string) (*Site, error)
- func DeleteResources(cfg *Site, id string, resID string) (*Site, error)
- func Parse(file string) (*Site, error)
- func RemoveNode(cfg *Site, pID string, id string) (*Site, error)
- func RemoveObjectCollection(cfg *Site, storeID string, id string) (*Site, error)
- func RemoveObjectStore(cfg *Site, id string) (*Site, error)
- func RemoveObjectType(cfg *Site, storeID string, collID string, id string) (*Site, error)
- func SetNode(cfg *Site, id string, active bool, name string, path string, level int, ...) (*Site, error)
- func SetResources(cfg *Site, id string, resID string, name string, path string) (*Site, error)
- func SetSiteStatus(cfg *Site, str string) (*Site, error)
- func UpdateObjectCollection(cfg *Site, storeID string, id string, name string, active bool) (*Site, error)
- func UpdateObjectStore(cfg *Site, id string, name string, loc string, active bool) (*Site, error)
- func UpdateObjectType(cfg *Site, storeID string, collID string, id string, name string, active bool) (*Site, error)
- type Status
- type Store
- type Tag
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
Collection ...
type Node ¶
type Node struct { ID string Active bool Name string Path string Auth *Auth Subs []*Node Res []*Resources }
Node the node config
type Objects ¶
type Objects struct {
Stores []*Store
}
Objects the object stores holder
func (*Objects) FindCollection ¶
func (o *Objects) FindCollection(store *Store, id string) *Collection
FindCollection ...
type Site ¶
Site the site config
func AddObjectCollection ¶
func AddObjectCollection(cfg *Site, storeID string, id string, name string, active bool) (*Site, error)
AddObjectCollection ...
func AddObjectStore ¶
AddObjectStore ...
func AddObjectType ¶
func AddObjectType(cfg *Site, storeID string, collID string, id string, name string, active bool) (*Site, error)
AddObjectType ...
func AddResources ¶
AddResources ...
func DeleteResources ¶
DeleteResources ...
func RemoveObjectCollection ¶
RemoveObjectCollection ...
func RemoveObjectStore ¶
RemoveObjectStore ...
func RemoveObjectType ¶
RemoveObjectType ...
func SetNode ¶
func SetNode(cfg *Site, id string, active bool, name string, path string, level int, roles []string) (*Site, error)
SetNode ...
func SetResources ¶
SetResources ...
func UpdateObjectCollection ¶
func UpdateObjectCollection(cfg *Site, storeID string, id string, name string, active bool) (*Site, error)
UpdateObjectCollection ...
func UpdateObjectStore ¶
UpdateObjectStore ...
Click to show internal directories.
Click to hide internal directories.