Documentation ¶
Index ¶
- Variables
- func ErrorHandler(err error, c echo.Context)
- func LoadTemplates(root string) error
- func ValidateAsset(dto templ.AssetDTO) valid.Result
- func ValidateCase(dto templ.CaseDTO) valid.Result
- func ValidateEvent(dto templ.EventDTO) valid.Result
- func ValidateEvidence(dto templ.EvidenceDTO) valid.Result
- func ValidateIndicator(dto templ.IndicatorDTO) valid.Result
- func ValidateMalware(dto templ.MalwareDTO) valid.Result
- func ValidateNote(dto templ.NoteDTO) valid.Result
- func ValidateTask(dto templ.TaskDTO) valid.Result
- type AssetCtrl
- type CaseCtrl
- type EventCtrl
- type EvidenceCtrl
- func (ctrl EvidenceCtrl) Delete(c echo.Context) error
- func (ctrl EvidenceCtrl) Download(c echo.Context) error
- func (ctrl EvidenceCtrl) Edit(c echo.Context) error
- func (ctrl EvidenceCtrl) Export(c echo.Context) error
- func (ctrl EvidenceCtrl) Import(c echo.Context) error
- func (ctrl EvidenceCtrl) List(c echo.Context) error
- func (ctrl EvidenceCtrl) Save(c echo.Context) error
- type IndicatorCtrl
- func (ctrl IndicatorCtrl) Delete(c echo.Context) error
- func (ctrl IndicatorCtrl) Edit(c echo.Context) error
- func (ctrl IndicatorCtrl) Export(c echo.Context) error
- func (ctrl IndicatorCtrl) Import(c echo.Context) error
- func (ctrl IndicatorCtrl) List(c echo.Context) error
- func (ctrl IndicatorCtrl) Save(c echo.Context) error
- type MalwareCtrl
- func (ctrl MalwareCtrl) Delete(c echo.Context) error
- func (ctrl MalwareCtrl) Export(c echo.Context) error
- func (ctrl MalwareCtrl) Import(c echo.Context) error
- func (ctrl MalwareCtrl) List(c echo.Context) error
- func (ctrl MalwareCtrl) Save(c echo.Context) error
- func (ctrl MalwareCtrl) View(c echo.Context) error
- type NoteCtrl
- type OpenIDConfig
- type ReportCtrl
- type TaskCtrl
- type UserCtrl
Constants ¶
This section is empty.
Variables ¶
View Source
var ZeroID ulid.ULID
View Source
var ZeroTime time.Time
Functions ¶
func ErrorHandler ¶
func ErrorHandler(err error, c echo.Context)
func LoadTemplates ¶
func ValidateEvidence ¶
func ValidateEvidence(dto templ.EvidenceDTO) valid.Result
func ValidateIndicator ¶
func ValidateIndicator(dto templ.IndicatorDTO) valid.Result
func ValidateMalware ¶
func ValidateMalware(dto templ.MalwareDTO) valid.Result
Types ¶
type AssetCtrl ¶
type AssetCtrl struct {
// contains filtered or unexported fields
}
func NewAssetCtrl ¶
func NewAssetCtrl(store model.AssetStore) *AssetCtrl
type CaseCtrl ¶
type CaseCtrl struct {
// contains filtered or unexported fields
}
func NewCaseCtrl ¶
func (CaseCtrl) ImportCases ¶
type EventCtrl ¶
type EventCtrl struct {
// contains filtered or unexported fields
}
func NewEventCtrl ¶
func NewEventCtrl(assetStore model.AssetStore, eventStore model.EventStore, indicatorStore model.IndicatorStore) *EventCtrl
type EvidenceCtrl ¶
type EvidenceCtrl struct {
// contains filtered or unexported fields
}
func NewEvidenceCtrl ¶
func NewEvidenceCtrl(store model.EvidenceStore) *EvidenceCtrl
func (EvidenceCtrl) Delete ¶
func (ctrl EvidenceCtrl) Delete(c echo.Context) error
func (EvidenceCtrl) Download ¶
func (ctrl EvidenceCtrl) Download(c echo.Context) error
func (EvidenceCtrl) Edit ¶
func (ctrl EvidenceCtrl) Edit(c echo.Context) error
func (EvidenceCtrl) Export ¶
func (ctrl EvidenceCtrl) Export(c echo.Context) error
func (EvidenceCtrl) Import ¶
func (ctrl EvidenceCtrl) Import(c echo.Context) error
func (EvidenceCtrl) List ¶
func (ctrl EvidenceCtrl) List(c echo.Context) error
func (EvidenceCtrl) Save ¶
func (ctrl EvidenceCtrl) Save(c echo.Context) error
type IndicatorCtrl ¶
type IndicatorCtrl struct {
// contains filtered or unexported fields
}
func NewIndicatorCtrl ¶
func NewIndicatorCtrl(store model.IndicatorStore) *IndicatorCtrl
func (IndicatorCtrl) Delete ¶
func (ctrl IndicatorCtrl) Delete(c echo.Context) error
func (IndicatorCtrl) Edit ¶
func (ctrl IndicatorCtrl) Edit(c echo.Context) error
func (IndicatorCtrl) Export ¶
func (ctrl IndicatorCtrl) Export(c echo.Context) error
func (IndicatorCtrl) Import ¶
func (ctrl IndicatorCtrl) Import(c echo.Context) error
func (IndicatorCtrl) List ¶
func (ctrl IndicatorCtrl) List(c echo.Context) error
func (IndicatorCtrl) Save ¶
func (ctrl IndicatorCtrl) Save(c echo.Context) error
type MalwareCtrl ¶
type MalwareCtrl struct {
// contains filtered or unexported fields
}
func NewMalwareCtrl ¶
func NewMalwareCtrl(store model.MalwareStore) *MalwareCtrl
func (MalwareCtrl) Delete ¶
func (ctrl MalwareCtrl) Delete(c echo.Context) error
func (MalwareCtrl) Export ¶
func (ctrl MalwareCtrl) Export(c echo.Context) error
func (MalwareCtrl) Import ¶
func (ctrl MalwareCtrl) Import(c echo.Context) error
func (MalwareCtrl) List ¶
func (ctrl MalwareCtrl) List(c echo.Context) error
func (MalwareCtrl) Save ¶
func (ctrl MalwareCtrl) Save(c echo.Context) error
func (MalwareCtrl) View ¶
func (ctrl MalwareCtrl) View(c echo.Context) error
type NoteCtrl ¶
type NoteCtrl struct {
// contains filtered or unexported fields
}
func NewNoteCtrl ¶
type OpenIDConfig ¶
type OpenIDConfig struct { ClientId string //id from the authorization service (OIDC provider) ClientSecret string //secret from the authorization service (OIDC provider) ClientUrl url.URL //your website's/service's URL for example: "http://localhost:8081/" or "https://mydomain.com/ Issuer url.URL //the URL identifier for the authorization service. for example: "https://accounts.google.com" - try adding "/.well-known/openid-configuration" to the path to make sure it's correct Scopes []string //OAuth scopes. If you're unsure go with: []string{oidc.ScopeOpenID, "profile", "email"} Identifier string // name of the openid claim used to securely identify a user (e.g. "sub"). PostLogoutUrl url.URL //user will be redirected to this URL after he logs out (i.e. accesses the '/logout' endpoint added in 'Init()') SessionName string }
type ReportCtrl ¶
type ReportCtrl struct {
// contains filtered or unexported fields
}
func NewReportCtrl ¶
func NewReportCtrl(store model.CaseStore) *ReportCtrl
func (ReportCtrl) Generate ¶
func (ctrl ReportCtrl) Generate(c echo.Context) error
func (ReportCtrl) List ¶
func (ctrl ReportCtrl) List(c echo.Context) error
type TaskCtrl ¶
type TaskCtrl struct {
// contains filtered or unexported fields
}
func NewTaskCtrl ¶
type UserCtrl ¶
type UserCtrl struct {
// contains filtered or unexported fields
}
func NewUserCtrl ¶
func NewUserCtrl(store model.UserStore, cfg OpenIDConfig) *UserCtrl
Click to show internal directories.
Click to hide internal directories.