Documentation ¶
Index ¶
- func GetGroups(user string) (lis []string, err error)
- func GetNotify(event string) (lis mercury.ListNotify)
- func GetRules(user ident.Ident) (lis mercury.Rules, err error)
- func WriteConfig(tx *dbm.Tx, config mercury.Config) (err error)
- func WriteSpaces(tx *dbm.Tx, delete squirrel.Sqlizer, lis []Space) (err error)
- func WriteValues(tx *dbm.Tx, delete squirrel.Sqlizer, lis []Value) (err error)
- type Config
- func ListConfig(where interface{}, limit, offset uint64, order []string) (lis []Config, err error)
- func ListConfigContext(ctx context.Context, where interface{}, limit, offset uint64, order []string) (lis []Config, err error)
- func ListConfigQry(ctx context.Context, q qry.Input) (lis []Config, err error)
- type ConfigTx
- type Mode
- type NotFoundError
- type Notify
- type ParseError
- type Space
- func ListSpace(where interface{}, limit, offset uint64, order []string) (lis []Space, err error)
- func ListSpaceContext(ctx context.Context, where interface{}, limit, offset uint64, order []string) (lis []Space, err error)
- func ListSpaceQry(ctx context.Context, q qry.Input) (lis []Space, err error)
- func PutSpace(id uint64, fn func(Mode, dbm.DbInfo, SpaceTx) error) (o Space, err error)
- type SpaceTx
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteConfig ¶
WriteConfig writes a config map to database
func WriteSpaces ¶
WriteSpaces writes the spaces to db
Types ¶
type Config ¶
type Config struct { ID uint64 `json:"id" view:"mercury_registry_vw"` Seq uint64 `json:"seq"` Space string `json:"space"` Name string `json:"name"` Values []string `json:"values" cont:"ListStrings"` Notes []string `json:"notes" cont:"ListStrings"` Tags []string `json:"tags" cont:"ListStrings"` }
Config stores the attributes for a registry space
func ListConfig ¶
ListConfig queries a list of Config
type Notify ¶
type Notify struct { Name string `json:"name" view:"mercury_notify_vw"` Match string `json:"match"` Event string `json:"event"` Method string `json:"-" db:"method"` URL string `json:"-" db:"url"` }
Notify stores the attributes for a registry space
type Space ¶
type Space struct { ID uint64 `json:"id" db:",AUTO" table:"mercury_spaces"` Space string `json:"space"` Tags []string `json:"tags" cont:"ListStrings"` Notes []string `json:"notes" cont:"ListStrings"` Items []Value `json:"items" db:"-"` }
Space stores a space value
func ListSpaceContext ¶
func ListSpaceContext(ctx context.Context, where interface{}, limit, offset uint64, order []string) (lis []Space, err error)
ListSpaceContext queries a list of User with Context
func ListSpaceQry ¶
ListSpaceQry queries a list of Space with Context
type Value ¶
type Value struct { ID uint64 `json:"id" db:",AUTO" table:"mercury_values"` Seq uint64 `json:"seq"` Name string `json:"name"` Values []string `json:"values" cont:"ListStrings"` Notes []string `json:"notes" cont:"ListStrings"` Tags []string `json:"tags" cont:"ListStrings"` }
Value stores the attributes for a registry space
Click to show internal directories.
Click to hide internal directories.