Documentation ¶
Index ¶
- func AddCapabilities(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group, name string, ...) error
- func AddProfile(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group, name string, ...) error
- func AddRestrictions(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group, name string, ...) error
- func AddRotation(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group, name string, ...) error
- func DeleteCapabilities(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID) error
- func DeleteProfile(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID) error
- func DeleteRestrictions(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID) error
- func DeleteRotation(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID) error
- func GetCapabilitiesTemplates(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string) (profiles []api.Profile, err error)
- func GetGroups(rlog log.Ext1FieldLogger, tx *sqlx.Tx) (groups []string, err error)
- func GetProfiles(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string) (profiles []api.Profile, err error)
- func GetRestrictionsTemplates(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string) (profiles []api.Profile, err error)
- func GetRotationTemplates(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string) (profiles []api.Profile, err error)
- func NewDBProfileParser(rlog log.Ext1FieldLogger) *profile.Parser
- func UpdateCapabilities(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID, name string, ...) error
- func UpdateProfile(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID, name string, ...) error
- func UpdateRestrictions(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID, name string, ...) error
- func UpdateRotation(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCapabilities ¶
func AddCapabilities( rlog log.Ext1FieldLogger, tx *sqlx.Tx, group, name string, payload json.RawMessage, ) error
AddCapabilities adds a capability template for the passed group and name
func AddProfile ¶
func AddProfile( rlog log.Ext1FieldLogger, tx *sqlx.Tx, group, name string, payload json.RawMessage, ) error
AddProfile adds a profile for the passed group and name
func AddRestrictions ¶
func AddRestrictions( rlog log.Ext1FieldLogger, tx *sqlx.Tx, group, name string, payload json.RawMessage, ) error
AddRestrictions adds a restrictions template for the passed group and name
func AddRotation ¶
func AddRotation( rlog log.Ext1FieldLogger, tx *sqlx.Tx, group, name string, payload json.RawMessage, ) error
AddRotation adds a capability template for the passed group and name
func DeleteCapabilities ¶
DeleteCapabilities deletes a capability template for the passed group and id
func DeleteProfile ¶
DeleteProfile deletes a profile for the passed group and id
func DeleteRestrictions ¶
DeleteRestrictions deletes a restrictions template for the passed group and id
func DeleteRotation ¶
DeleteRotation deletes a rotation template for the passed group and id
func GetCapabilitiesTemplates ¶
func GetCapabilitiesTemplates(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string) (profiles []api.Profile, err error)
GetCapabilitiesTemplates returns the rotation templates for a group
func GetProfiles ¶
func GetProfiles(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string) (profiles []api.Profile, err error)
GetProfiles returns the profiles for a group
func GetRestrictionsTemplates ¶
func GetRestrictionsTemplates(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string) (profiles []api.Profile, err error)
GetRestrictionsTemplates returns the rotation templates for a group
func GetRotationTemplates ¶
func GetRotationTemplates(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string) (profiles []api.Profile, err error)
GetRotationTemplates returns the rotation templates for a group
func NewDBProfileParser ¶
func NewDBProfileParser(rlog log.Ext1FieldLogger) *profile.Parser
NewDBProfileParser creates a new profile.ProfileParser that can read profiles from the db
func UpdateCapabilities ¶
func UpdateCapabilities( rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID, name string, payload json.RawMessage, ) error
UpdateCapabilities updates a capability template for the passed group and id
func UpdateProfile ¶
func UpdateProfile( rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID, name string, payload json.RawMessage, ) error
UpdateProfile updates a profile for the passed group and id
func UpdateRestrictions ¶
func UpdateRestrictions( rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID, name string, payload json.RawMessage, ) error
UpdateRestrictions updates a restrictions template for the passed group and id
func UpdateRotation ¶
func UpdateRotation( rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID, name string, payload json.RawMessage, ) error
UpdateRotation updates a capability template for the passed group and id
Types ¶
This section is empty.