package
0.0.82
Repository: https://github.com/mindersec/minder.git
Documentation: pkg.go.dev

# Packages

Package mock_history is a generated GoMock package.

# Functions

NewEvaluationHistoryService creates a new instance of EvaluationHistoryService.
NewListEvaluationFilter is a constructor routine for ListEvaluationFilter objects.
ParseListEvaluationCursor interprets an opaque payload and returns a ListEvaluationCursor.
WithAlert adds an alert string to the filter.
WithEntityName adds an entity name string to the filter.
WithEntityType adds an entity type string to the filter.
WithFrom sets the start of the time range, inclusive.
WithLabel adds a label string to the filter.
WithProfileName adds an profile name string to the filter.
WithProjectID adds a project id (uuid) to the filter.
WithProjectIDStr adds a project id (string) to the filter.
WithRemediation adds a remediation string to the filter.
WithStatus adds a status string to the filter.
WithTo sets the end of the time range, exclusive.

# Constants

Next represents the next page.
Prev represents the prev page.

# Variables

DefaultCursor is a cursor starting from the beginning of the data set.
ErrInclusionExclusion is returned when both inclusion and exclusion filters are specified on the same field.
ErrInvalidIdentifier is returned when an identifier (e.g.
ErrInvalidProjectID is returned when project id is missing or malformed form the filter.
ErrInvalidTimeRange is returned the time range from-to is either missing one end or from is greater than to.
ErrMalformedCursor represents errors in the cursor payload.

# Structs

ListEvaluationCursor is a struct representing a cursor in the dataset of historical evaluations.
ListEvaluationHistoryResult is the return value of ListEvaluationHistory function.
OneEvalHistoryAndEntity is a struct representing a combination of an evaluation and an entity.

# Interfaces

AlertFilter interface should be implemented by types implementing a filter on alert settings.
EntityNameFilter interface should be implemented by types implementing a filter on entity names.
EntityTypeFilter interface should be implemented by types implementing a filter on entity types.
EvaluationHistoryService contains methods to add/query data in the history table.
Filter is an empty interface to be implemented by structs representing filters.
LabelFilter interface should be implemented by types implementing a filter on labels.
ListEvaluationFilter is a filter to be used when listing historical evaluations.
ProfileNameFilter interface should be implemented by types implementing a filter on profile names.
ProjectFilter interface should be implemented by types implementing a filter on project id.
RemediationFilter interface should be implemented by types implementing a filter on remediation statuses.
StatusFilter interface should be implemented by types implementing a filter on statuses.
TimeRangeFilter interface should be implemented by types implementing a filter based on time range.

# Type aliases

Direction enumerates the direction of the Cursor.
FilterOpt is the option type used to configure filters.