Documentation ¶
Index ¶
- Constants
- type TheHive
- type TheHiveCase
- type TheHiveCasestore
- func (store *TheHiveCasestore) Authorize(request *http.Request) error
- func (store *TheHiveCasestore) Create(ctx context.Context, socCase *model.Case) (*model.Case, error)
- func (store *TheHiveCasestore) CreateArtifact(ctx context.Context, attachment *model.Artifact) (*model.Artifact, error)
- func (store *TheHiveCasestore) CreateArtifactStream(ctx context.Context, artifactstream *model.ArtifactStream) (string, error)
- func (store *TheHiveCasestore) CreateComment(ctx context.Context, comment *model.Comment) (*model.Comment, error)
- func (store *TheHiveCasestore) CreateRelatedEvent(ctx context.Context, event *model.RelatedEvent) (*model.RelatedEvent, error)
- func (store *TheHiveCasestore) DeleteArtifact(ctx context.Context, id string) error
- func (store *TheHiveCasestore) DeleteArtifactStream(ctx context.Context, id string) error
- func (store *TheHiveCasestore) DeleteComment(ctx context.Context, id string) error
- func (store *TheHiveCasestore) DeleteRelatedEvent(ctx context.Context, id string) error
- func (store *TheHiveCasestore) GetArtifact(ctx context.Context, id string) (*model.Artifact, error)
- func (store *TheHiveCasestore) GetArtifactStream(ctx context.Context, id string) (*model.ArtifactStream, error)
- func (store *TheHiveCasestore) GetArtifacts(ctx context.Context, caseId string, groupType string, groupId string) ([]*model.Artifact, error)
- func (store *TheHiveCasestore) GetCase(ctx context.Context, caseId string) (*model.Case, error)
- func (store *TheHiveCasestore) GetCaseHistory(ctx context.Context, caseId string) ([]interface{}, error)
- func (store *TheHiveCasestore) GetComment(ctx context.Context, commentId string) (*model.Comment, error)
- func (store *TheHiveCasestore) GetComments(ctx context.Context, commentId string) ([]*model.Comment, error)
- func (store *TheHiveCasestore) GetRelatedEvent(ctx context.Context, id string) (*model.RelatedEvent, error)
- func (store *TheHiveCasestore) GetRelatedEvents(ctx context.Context, caseId string) ([]*model.RelatedEvent, error)
- func (store *TheHiveCasestore) Init(hostUrl string, key string, verifyCert bool) error
- func (store *TheHiveCasestore) Update(ctx context.Context, socCase *model.Case) (*model.Case, error)
- func (store *TheHiveCasestore) UpdateArtifact(ctx context.Context, artifact *model.Artifact) (*model.Artifact, error)
- func (store *TheHiveCasestore) UpdateComment(ctx context.Context, comment *model.Comment) (*model.Comment, error)
Constants ¶
View Source
const CASE_SEVERITY_HIGH = 3
View Source
const CASE_SEVERITY_LOW = 1
View Source
const CASE_SEVERITY_MEDIUM = 2
View Source
const CASE_STATUS_DELETED = "Deleted"
View Source
const CASE_STATUS_OPEN = "Open"
View Source
const CASE_STATUS_RESOLVED = "Resolved"
View Source
const CASE_TLP_AMBER = 2
View Source
const CASE_TLP_GREN = 1
View Source
const CASE_TLP_RED = 3
View Source
const CASE_TLP_WHITE = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TheHive ¶
type TheHive struct {
// contains filtered or unexported fields
}
func NewTheHive ¶
func (*TheHive) PrerequisiteModules ¶
type TheHiveCase ¶
type TheHiveCase struct { Id int `json:"caseId,omitempty"` CreateDate int64 `json:"createdAt,omitempty"` StartDate int64 `json:"startDate,omitempty"` EndDate int64 `json:"endDate,omitempty"` Title string `json:"title"` Description string `json:"description"` Severity int `json:"severity"` Status string `json:"status,omitempty"` Tags []string `json:"tags"` Tlp int `json:"tlp"` Flag bool `json:"flag"` Template string `json:"template"` }
func NewTheHiveCase ¶
func NewTheHiveCase() *TheHiveCase
type TheHiveCasestore ¶
type TheHiveCasestore struct {
// contains filtered or unexported fields
}
func NewTheHiveCasestore ¶
func NewTheHiveCasestore(srv *server.Server) *TheHiveCasestore
func (*TheHiveCasestore) Authorize ¶
func (store *TheHiveCasestore) Authorize(request *http.Request) error
func (*TheHiveCasestore) CreateArtifact ¶
func (*TheHiveCasestore) CreateArtifactStream ¶
func (store *TheHiveCasestore) CreateArtifactStream(ctx context.Context, artifactstream *model.ArtifactStream) (string, error)
func (*TheHiveCasestore) CreateComment ¶
func (*TheHiveCasestore) CreateRelatedEvent ¶
func (store *TheHiveCasestore) CreateRelatedEvent(ctx context.Context, event *model.RelatedEvent) (*model.RelatedEvent, error)
func (*TheHiveCasestore) DeleteArtifact ¶
func (store *TheHiveCasestore) DeleteArtifact(ctx context.Context, id string) error
func (*TheHiveCasestore) DeleteArtifactStream ¶
func (store *TheHiveCasestore) DeleteArtifactStream(ctx context.Context, id string) error
func (*TheHiveCasestore) DeleteComment ¶
func (store *TheHiveCasestore) DeleteComment(ctx context.Context, id string) error
func (*TheHiveCasestore) DeleteRelatedEvent ¶
func (store *TheHiveCasestore) DeleteRelatedEvent(ctx context.Context, id string) error
func (*TheHiveCasestore) GetArtifact ¶
func (*TheHiveCasestore) GetArtifactStream ¶
func (store *TheHiveCasestore) GetArtifactStream(ctx context.Context, id string) (*model.ArtifactStream, error)
func (*TheHiveCasestore) GetArtifacts ¶
func (*TheHiveCasestore) GetCaseHistory ¶
func (store *TheHiveCasestore) GetCaseHistory(ctx context.Context, caseId string) ([]interface{}, error)
func (*TheHiveCasestore) GetComment ¶
func (*TheHiveCasestore) GetComments ¶
func (*TheHiveCasestore) GetRelatedEvent ¶
func (store *TheHiveCasestore) GetRelatedEvent(ctx context.Context, id string) (*model.RelatedEvent, error)
func (*TheHiveCasestore) GetRelatedEvents ¶
func (store *TheHiveCasestore) GetRelatedEvents(ctx context.Context, caseId string) ([]*model.RelatedEvent, error)
func (*TheHiveCasestore) Init ¶
func (store *TheHiveCasestore) Init(hostUrl string, key string, verifyCert bool) error
func (*TheHiveCasestore) UpdateArtifact ¶
func (*TheHiveCasestore) UpdateComment ¶
Click to show internal directories.
Click to hide internal directories.