Documentation
¶
Index ¶
- type Store
- func (s *Store) ApproveAgentEnrollment(ctx context.Context, tokenHash string, ...) (model.AgentEnrollment, error)
- func (s *Store) ApproveAgentEnrollmentByID(ctx context.Context, enrollmentID string, ...) (model.AgentEnrollment, error)
- func (s *Store) AuthenticateAgentCredential(ctx context.Context, credentialID, credentialHash string) (string, error)
- func (s *Store) ClaimAgentEnrollment(ctx context.Context, ...) (model.AgentEnrollment, error)
- func (s *Store) ClaimDueBlacklistRecheck(ctx context.Context, now, leaseUntil time.Time) (*model.BlacklistRecheckSettings, error)
- func (s *Store) ClaimDueScanSchedules(ctx context.Context, now, leaseUntil time.Time, limit int) ([]model.ScanSchedule, error)
- func (s *Store) ClaimDueSourceSyncSchedules(ctx context.Context, now, leaseUntil time.Time, limit int) ([]model.SourceSyncSchedule, error)
- func (s *Store) ClaimTasks(ctx context.Context, agentID string, limit int) (*model.TaskBatch, error)
- func (s *Store) Close()
- func (s *Store) CreateASNSource(ctx context.Context, input model.CreateASNSourceRequest) (model.ASNSource, error)
- func (s *Store) CreateAgentEnrollment(ctx context.Context, input model.CreateAgentEnrollment) (model.AgentEnrollment, error)
- func (s *Store) CreateAuthSession(ctx context.Context, tokenHash, userID string, expiresAt time.Time) error
- func (s *Store) CreateBlacklistRechecks(ctx context.Context, settings model.BlacklistRecheckSettings) (model.BlacklistRecheckResult, error)
- func (s *Store) CreateScanJob(ctx context.Context, input model.CreateScanJobRequest, targets []string) (model.ScanJob, error)
- func (s *Store) CreateScanSchedule(ctx context.Context, input model.UpsertScanScheduleRequest, nextRun time.Time) (model.ScanSchedule, error)
- func (s *Store) CreateUser(ctx context.Context, input model.CreateUserRequest, passwordHash string) (model.User, error)
- func (s *Store) DeleteASNSource(ctx context.Context, asn int64) error
- func (s *Store) DeleteAuthSession(ctx context.Context, tokenHash string) error
- func (s *Store) DeleteScanSchedule(ctx context.Context, id string) error
- func (s *Store) DeleteUser(ctx context.Context, userID string) error
- func (s *Store) EnsureBootstrapAdmin(ctx context.Context, username, displayName, passwordHash string) error
- func (s *Store) FindUserByUsername(ctx context.Context, username string) (model.UserCredential, error)
- func (s *Store) FinishAutomationRun(ctx context.Context, id, status string, summary json.RawMessage, runErr error) error
- func (s *Store) GetAgentEnrollment(ctx context.Context, tokenHash string) (model.AgentEnrollment, error)
- func (s *Store) GetAgentEnrollmentByID(ctx context.Context, enrollmentID string) (model.AgentEnrollment, error)
- func (s *Store) GetBlacklistRecheckSettings(ctx context.Context) (model.BlacklistRecheckSettings, error)
- func (s *Store) GetScanJob(ctx context.Context, id string) (model.ScanJob, error)
- func (s *Store) GetScanSchedule(ctx context.Context, id string) (model.ScanSchedule, error)
- func (s *Store) GetSourceSyncSchedule(ctx context.Context, source string) (model.SourceSyncSchedule, error)
- func (s *Store) GetUserBySession(ctx context.Context, tokenHash string) (model.User, error)
- func (s *Store) Heartbeat(ctx context.Context, agentID string) error
- func (s *Store) ListASNSources(ctx context.Context, enabledOnly bool) ([]model.ASNSource, error)
- func (s *Store) ListActivePrefixes(ctx context.Context, includeIPv6 bool) ([]model.Prefix, error)
- func (s *Store) ListAgentEnrollments(ctx context.Context) ([]model.AgentEnrollment, error)
- func (s *Store) ListAgents(ctx context.Context) ([]model.Agent, error)
- func (s *Store) ListAutomationRuns(ctx context.Context, limit int) ([]model.AutomationRun, error)
- func (s *Store) ListBlacklist(ctx context.Context, limit int) ([]model.BlacklistEntry, error)
- func (s *Store) ListColoLocations(ctx context.Context) ([]model.ColoLocation, error)
- func (s *Store) ListResultColoFacets(ctx context.Context, filter model.ResultFilter) ([]model.ResultColoFacet, error)
- func (s *Store) ListResultJobFacets(ctx context.Context, filter model.ResultFilter) ([]model.ResultJobFacet, error)
- func (s *Store) ListResults(ctx context.Context, filter model.ResultFilter) (model.ResultPage, error)
- func (s *Store) ListScanJobs(ctx context.Context, limit int) ([]model.ScanJob, error)
- func (s *Store) ListScanSchedules(ctx context.Context) ([]model.ScanSchedule, error)
- func (s *Store) ListSourceSyncSchedules(ctx context.Context) ([]model.SourceSyncSchedule, error)
- func (s *Store) ListUsers(ctx context.Context) ([]model.User, error)
- func (s *Store) Migrate(ctx context.Context) error
- func (s *Store) Overview(ctx context.Context) (model.Overview, error)
- func (s *Store) RecordASNError(ctx context.Context, asn int64, syncErr error) error
- func (s *Store) RecordBlacklistRecheckRun(ctx context.Context, nextRun *time.Time, runErr error) error
- func (s *Store) RecordScanScheduleRun(ctx context.Context, id string, nextRun *time.Time, jobID *string, ...) error
- func (s *Store) RecordSourceError(ctx context.Context, source string, syncErr error) error
- func (s *Store) RecordSourceSyncRun(ctx context.Context, source string, nextRun *time.Time, runErr error) error
- func (s *Store) RejectAgentEnrollment(ctx context.Context, tokenHash string) (model.AgentEnrollment, error)
- func (s *Store) RejectAgentEnrollmentByID(ctx context.Context, enrollmentID string) (model.AgentEnrollment, error)
- func (s *Store) ReplaceASNPrefixes(ctx context.Context, asn int64, prefixes []model.Prefix) (model.ASNSource, error)
- func (s *Store) ReplaceCloudflarePrefixes(ctx context.Context, prefixes []model.Prefix) (model.SourceStatus, error)
- func (s *Store) ReplaceColoLocations(ctx context.Context, locations []model.ColoLocation) (model.ColoSyncSummary, error)
- func (s *Store) ResetUserPassword(ctx context.Context, userID, passwordHash string) error
- func (s *Store) SourceStatus(ctx context.Context, source string) (model.SourceStatus, error)
- func (s *Store) StartAutomationRun(ctx context.Context, input model.StartAutomationRunRequest) (model.AutomationRun, error)
- func (s *Store) StopScanJob(ctx context.Context, id string) (model.ScanJob, error)
- func (s *Store) SubmitResults(ctx context.Context, batch model.ResultBatch) error
- func (s *Store) UpdateASNSource(ctx context.Context, asn int64, input model.UpdateASNSourceRequest) (model.ASNSource, error)
- func (s *Store) UpdateBlacklistRecheckSettings(ctx context.Context, input model.UpdateBlacklistRecheckSettingsRequest, ...) (model.BlacklistRecheckSettings, error)
- func (s *Store) UpdateScanSchedule(ctx context.Context, id string, input model.UpsertScanScheduleRequest, ...) (model.ScanSchedule, error)
- func (s *Store) UpdateSourceSyncSchedule(ctx context.Context, source string, ...) (model.SourceSyncSchedule, error)
- func (s *Store) UpdateUser(ctx context.Context, userID string, input model.UpdateUserRequest) (model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ApproveAgentEnrollment ¶
func (s *Store) ApproveAgentEnrollment(ctx context.Context, tokenHash string, input model.ApproveAgentEnrollmentRequest) (model.AgentEnrollment, error)
func (*Store) ApproveAgentEnrollmentByID ¶
func (s *Store) ApproveAgentEnrollmentByID(ctx context.Context, enrollmentID string, input model.ApproveAgentEnrollmentRequest) (model.AgentEnrollment, error)
func (*Store) AuthenticateAgentCredential ¶
func (*Store) ClaimAgentEnrollment ¶
func (*Store) ClaimDueBlacklistRecheck ¶
func (*Store) ClaimDueScanSchedules ¶
func (*Store) ClaimDueSourceSyncSchedules ¶
func (*Store) ClaimTasks ¶
func (*Store) CreateASNSource ¶
func (*Store) CreateAgentEnrollment ¶
func (s *Store) CreateAgentEnrollment(ctx context.Context, input model.CreateAgentEnrollment) (model.AgentEnrollment, error)
func (*Store) CreateAuthSession ¶
func (*Store) CreateBlacklistRechecks ¶
func (s *Store) CreateBlacklistRechecks(ctx context.Context, settings model.BlacklistRecheckSettings) (model.BlacklistRecheckResult, error)
func (*Store) CreateScanJob ¶
func (*Store) CreateScanSchedule ¶
func (s *Store) CreateScanSchedule(ctx context.Context, input model.UpsertScanScheduleRequest, nextRun time.Time) (model.ScanSchedule, error)
func (*Store) CreateUser ¶
func (*Store) DeleteASNSource ¶
func (*Store) DeleteAuthSession ¶
func (*Store) DeleteScanSchedule ¶
func (*Store) EnsureBootstrapAdmin ¶
func (*Store) FindUserByUsername ¶
func (*Store) FinishAutomationRun ¶
func (*Store) GetAgentEnrollment ¶
func (*Store) GetAgentEnrollmentByID ¶
func (*Store) GetBlacklistRecheckSettings ¶
func (*Store) GetScanJob ¶
func (*Store) GetScanSchedule ¶
func (*Store) GetSourceSyncSchedule ¶
func (*Store) GetUserBySession ¶
func (*Store) ListASNSources ¶
func (*Store) ListActivePrefixes ¶
func (*Store) ListAgentEnrollments ¶
func (*Store) ListAutomationRuns ¶
func (*Store) ListBlacklist ¶
func (*Store) ListColoLocations ¶
func (*Store) ListResultColoFacets ¶
func (s *Store) ListResultColoFacets(ctx context.Context, filter model.ResultFilter) ([]model.ResultColoFacet, error)
func (*Store) ListResultJobFacets ¶
func (s *Store) ListResultJobFacets(ctx context.Context, filter model.ResultFilter) ([]model.ResultJobFacet, error)
func (*Store) ListResults ¶
func (s *Store) ListResults(ctx context.Context, filter model.ResultFilter) (model.ResultPage, error)
func (*Store) ListScanJobs ¶
func (*Store) ListScanSchedules ¶
func (*Store) ListSourceSyncSchedules ¶
func (*Store) RecordASNError ¶
func (*Store) RecordBlacklistRecheckRun ¶
func (*Store) RecordScanScheduleRun ¶
func (*Store) RecordSourceError ¶
func (*Store) RecordSourceSyncRun ¶
func (*Store) RejectAgentEnrollment ¶
func (*Store) RejectAgentEnrollmentByID ¶
func (*Store) ReplaceASNPrefixes ¶
func (*Store) ReplaceCloudflarePrefixes ¶
func (*Store) ReplaceColoLocations ¶
func (s *Store) ReplaceColoLocations(ctx context.Context, locations []model.ColoLocation) (model.ColoSyncSummary, error)
func (*Store) ResetUserPassword ¶
func (*Store) SourceStatus ¶
func (*Store) StartAutomationRun ¶
func (s *Store) StartAutomationRun(ctx context.Context, input model.StartAutomationRunRequest) (model.AutomationRun, error)
func (*Store) StopScanJob ¶
func (*Store) SubmitResults ¶
func (*Store) UpdateASNSource ¶
func (*Store) UpdateBlacklistRecheckSettings ¶
func (s *Store) UpdateBlacklistRecheckSettings(ctx context.Context, input model.UpdateBlacklistRecheckSettingsRequest, nextRun time.Time) (model.BlacklistRecheckSettings, error)
func (*Store) UpdateScanSchedule ¶
func (*Store) UpdateSourceSyncSchedule ¶
Click to show internal directories.
Click to hide internal directories.