Documentation
¶
Index ¶
- func ConnectSQLDb(ctx context.Context, config *config.Config, sugar *zap.SugaredLogger) (*gorm.DB, error)
- func MigrateDown(db *gorm.DB) error
- func MigrateUp(db *gorm.DB) error
- func MigrateUpWithConfig(db *gorm.DB, cfg *config.Config) error
- type Heartbeat
- type ListResponse
- type PaginationConfig
- type PaginationParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectSQLDb ¶
func MigrateDown ¶
Types ¶
type ListResponse ¶
type ListResponse[T any] struct { Data []T `json:"data"` Total int64 `json:"total"` Page int `json:"page"` Limit int `json:"limit"` TotalPages int `json:"totalPages"` }
ListResponse represents a paginated response structure
func NewListResponse ¶
func NewListResponse[T any](data []T, total int64, page, limit int) *ListResponse[T]
NewListResponse creates a new paginated list response
type PaginationConfig ¶
PaginationConfig holds configuration for pagination behavior
func NewPaginationConfig ¶
func NewPaginationConfig() *PaginationConfig
NewPaginationConfig creates a new pagination configuration with sensible defaults
func (*PaginationConfig) ParseParams ¶
func (cfg *PaginationConfig) ParseParams(ctx echo.Context) (*PaginationParams, error)
ParseParams extracts and validates pagination parameters from echo context
type PaginationParams ¶
PaginationParams holds parsed pagination parameters
Directories
¶
| Path | Synopsis |
|---|---|
|
Package leverage is the neutral home for the cross-SSP leveraged-authorization projection and aggregation.
|
Package leverage is the neutral home for the cross-SSP leveraged-authorization projection and aggregation. |
|
agentcfg
Package agentcfg stores and serves agent remote-configuration revisions (append-only overlays per agent) and the agent instances that report against them.
|
Package agentcfg stores and serves agent remote-configuration revisions (append-only overlays per agent) and the agent instances that report against them. |
|
artifacts
Package artifacts stores content-addressed policy evaluation artifacts.
|
Package artifacts stores content-addressed policy evaluation artifacts. |
|
sspscope
Package sspscope stores an SSP's scope: the labels that identify the SSP's evidence.
|
Package sspscope stores an SSP's scope: the labels that identify the SSP's evidence. |
|
sspservice
Package sspservice creates System Security Plans and binds profiles to them.
|
Package sspservice creates System Security Plans and binds profiles to them. |
|
ssptemplates
Package ssptemplates stores SSP templates: rules that create one SSP per distinct combination of key label values in the latest evidence and keep its scope up to date.
|
Package ssptemplates stores SSP templates: rules that create one SSP per distinct combination of key label values in the latest evidence and keep its scope up to date. |
|
subjects
Package subjects lists the entities evidence can name as its subject: defined components, SSP system components, parties and users.
|
Package subjects lists the entities evidence can name as its subject: defined components, SSP system components, parties and users. |
Click to show internal directories.
Click to hide internal directories.