profilerepo

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func DeleteCapabilities(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID) error

DeleteCapabilities deletes a capability template for the passed group and id

func DeleteProfile

func DeleteProfile(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID) error

DeleteProfile deletes a profile for the passed group and id

func DeleteRestrictions

func DeleteRestrictions(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID) error

DeleteRestrictions deletes a restrictions template for the passed group and id

func DeleteRotation

func DeleteRotation(rlog log.Ext1FieldLogger, tx *sqlx.Tx, group string, id uuid.UUID) error

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 GetGroups

func GetGroups(rlog log.Ext1FieldLogger, tx *sqlx.Tx) (groups []string, err error)

GetGroups returns the list of available groups

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.

Jump to

Keyboard shortcuts

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