Documentation
¶
Index ¶
- Constants
- func IsConfigError(err error) bool
- func IsMissingCredentialError(err error) bool
- func IsReportError(err error) bool
- type CaseDefinition
- type ConfigError
- type Dependencies
- type Event
- type EventMetadata
- type EventType
- type FinalEvent
- type FinalPayload
- type HTTPDoer
- type ListRequest
- type MissingCredentialError
- type PlanEvent
- type PlanPayload
- type PlannedRun
- type ProgressEvent
- type ProgressPayload
- type ReportError
- type RunRequest
- type Service
Constants ¶
View Source
const EventSchemaVersion = 1
Variables ¶
This section is empty.
Functions ¶
func IsConfigError ¶
func IsReportError ¶
Types ¶
type CaseDefinition ¶
type CaseDefinition = apiaudit.CaseDefinition
type ConfigError ¶
type ConfigError struct {
Err error
}
func (*ConfigError) Error ¶
func (err *ConfigError) Error() string
func (*ConfigError) Unwrap ¶
func (err *ConfigError) Unwrap() error
type Dependencies ¶
type Event ¶
type Event interface {
Metadata() EventMetadata
// contains filtered or unexported methods
}
type EventMetadata ¶
type FinalEvent ¶
type FinalEvent struct {
EventMetadata
Payload FinalPayload `json:"payload"`
}
func (FinalEvent) Metadata ¶
func (event FinalEvent) Metadata() EventMetadata
type FinalPayload ¶
type ListRequest ¶
type MissingCredentialError ¶
type MissingCredentialError struct{}
func (*MissingCredentialError) Error ¶
func (*MissingCredentialError) Error() string
type PlanEvent ¶
type PlanEvent struct {
EventMetadata
Payload PlanPayload `json:"payload"`
}
func (PlanEvent) Metadata ¶
func (event PlanEvent) Metadata() EventMetadata
type PlanPayload ¶
type PlanPayload struct {
Total int `json:"total"`
Runs []PlannedRun `json:"runs"`
}
type PlannedRun ¶
type ProgressEvent ¶
type ProgressEvent struct {
EventMetadata
Payload ProgressPayload `json:"payload"`
}
func (ProgressEvent) Metadata ¶
func (event ProgressEvent) Metadata() EventMetadata
type ProgressPayload ¶
type ProgressPayload struct {
Completed int `json:"completed"`
Total int `json:"total"`
Result apiaudit.CaseResult `json:"result"`
}
type ReportError ¶
type ReportError struct {
Err error
}
func (*ReportError) Error ¶
func (err *ReportError) Error() string
func (*ReportError) Unwrap ¶
func (err *ReportError) Unwrap() error
type RunRequest ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(dependencies Dependencies) *Service
func (*Service) List ¶
func (service *Service) List(ctx context.Context, request ListRequest) ([]CaseDefinition, error)
func (*Service) Run ¶
func (service *Service) Run(ctx context.Context, request RunRequest) (FinalEvent, error)
Click to show internal directories.
Click to hide internal directories.