Documentation ¶
Index ¶
- type Authorizer
- type CaseHandler
- type Casestore
- type Datastore
- type EventHandler
- type Eventstore
- type FakeAuthorizer
- type FakeEventstore
- func (store *FakeEventstore) Acknowledge(context context.Context, criteria *model.EventAckCriteria) (*model.EventUpdateResults, error)
- func (store *FakeEventstore) Delete(context context.Context, index string, id string) error
- func (store *FakeEventstore) Index(context context.Context, index string, document map[string]interface{}, ...) (*model.EventIndexResults, error)
- func (store *FakeEventstore) Search(context context.Context, criteria *model.EventSearchCriteria) (*model.EventSearchResults, error)
- func (store *FakeEventstore) Update(context context.Context, criteria *model.EventUpdateCriteria) (*model.EventUpdateResults, error)
- type FakeRolestore
- type GridHandler
- type InfoHandler
- type JobHandler
- type JobsHandler
- type Metrics
- type NodeHandler
- type PacketHandler
- type QueryHandler
- type RolesHandler
- type Rolestore
- type Server
- type StreamHandler
- type UserHandler
- type UsersHandler
- type Userstore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type CaseHandler ¶
type CaseHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewCaseHandler ¶
func NewCaseHandler(srv *Server) *CaseHandler
type Casestore ¶
type Casestore interface { Create(ctx context.Context, newCase *model.Case) (*model.Case, error) Update(ctx context.Context, socCase *model.Case) (*model.Case, error) GetCase(ctx context.Context, caseId string) (*model.Case, error) GetCaseHistory(ctx context.Context, caseId string) ([]interface{}, error) CreateComment(ctx context.Context, newComment *model.Comment) (*model.Comment, error) GetComment(ctx context.Context, commentId string) (*model.Comment, error) GetComments(ctx context.Context, caseId string) ([]*model.Comment, error) UpdateComment(ctx context.Context, comment *model.Comment) (*model.Comment, error) DeleteComment(ctx context.Context, id string) error CreateRelatedEvent(ctx context.Context, event *model.RelatedEvent) (*model.RelatedEvent, error) GetRelatedEvent(ctx context.Context, id string) (*model.RelatedEvent, error) GetRelatedEvents(ctx context.Context, caseId string) ([]*model.RelatedEvent, error) DeleteRelatedEvent(ctx context.Context, id string) error CreateArtifact(ctx context.Context, artifact *model.Artifact) (*model.Artifact, error) GetArtifact(ctx context.Context, id string) (*model.Artifact, error) GetArtifacts(ctx context.Context, caseId string, groupType string, groupId string) ([]*model.Artifact, error) DeleteArtifact(ctx context.Context, id string) error UpdateArtifact(ctx context.Context, artifact *model.Artifact) (*model.Artifact, error) CreateArtifactStream(ctx context.Context, artifactstream *model.ArtifactStream) (string, error) GetArtifactStream(ctx context.Context, id string) (*model.ArtifactStream, error) DeleteArtifactStream(ctx context.Context, id string) error }
type Datastore ¶
type Datastore interface { CreateNode(ctx context.Context, id string) *model.Node GetNodes(ctx context.Context) []*model.Node AddNode(ctx context.Context, node *model.Node) error UpdateNode(ctx context.Context, newNode *model.Node) (*model.Node, error) GetNextJob(ctx context.Context, nodeId string) *model.Job CreateJob(ctx context.Context) *model.Job GetJob(ctx context.Context, jobId int) *model.Job GetJobs(ctx context.Context, kind string, parameters map[string]interface{}) []*model.Job AddJob(ctx context.Context, job *model.Job) error AddPivotJob(ctx context.Context, job *model.Job) error UpdateJob(ctx context.Context, job *model.Job) error DeleteJob(ctx context.Context, jobId int) (*model.Job, error) GetPackets(ctx context.Context, jobId int, offset int, count int, unwrap bool) ([]*model.Packet, error) SavePacketStream(ctx context.Context, jobId int, reader io.ReadCloser) error GetPacketStream(ctx context.Context, jobId int, unwrap bool) (io.ReadCloser, string, int64, error) }
type EventHandler ¶
type EventHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewEventHandler ¶
func NewEventHandler(srv *Server) *EventHandler
type Eventstore ¶
type Eventstore interface { Search(context context.Context, criteria *model.EventSearchCriteria) (*model.EventSearchResults, error) Index(ctx context.Context, index string, document map[string]interface{}, id string) (*model.EventIndexResults, error) Update(context context.Context, criteria *model.EventUpdateCriteria) (*model.EventUpdateResults, error) Delete(context context.Context, index string, id string) error Acknowledge(context context.Context, criteria *model.EventAckCriteria) (*model.EventUpdateResults, error) }
type FakeAuthorizer ¶
type FakeAuthorizer struct {
// contains filtered or unexported fields
}
func (FakeAuthorizer) CheckContextOperationAuthorized ¶
type FakeEventstore ¶
type FakeEventstore struct { InputDocuments []map[string]interface{} InputContexts []context.Context InputIndexes []string InputIds []string InputSearchCriterias []*model.EventSearchCriteria InputUpdateCriterias []*model.EventUpdateCriteria InputAckCriterias []*model.EventAckCriteria Err error SearchResults []*model.EventSearchResults IndexResults []*model.EventIndexResults UpdateResults []*model.EventUpdateResults // contains filtered or unexported fields }
func NewFakeEventstore ¶
func NewFakeEventstore() *FakeEventstore
func (*FakeEventstore) Acknowledge ¶
func (store *FakeEventstore) Acknowledge(context context.Context, criteria *model.EventAckCriteria) (*model.EventUpdateResults, error)
func (*FakeEventstore) Index ¶
func (store *FakeEventstore) Index(context context.Context, index string, document map[string]interface{}, id string) (*model.EventIndexResults, error)
func (*FakeEventstore) Search ¶
func (store *FakeEventstore) Search(context context.Context, criteria *model.EventSearchCriteria) (*model.EventSearchResults, error)
func (*FakeEventstore) Update ¶
func (store *FakeEventstore) Update(context context.Context, criteria *model.EventUpdateCriteria) (*model.EventUpdateResults, error)
type FakeRolestore ¶
type FakeRolestore struct {
// contains filtered or unexported fields
}
func (*FakeRolestore) GetAssignments ¶
func (*FakeRolestore) PopulateUserRoles ¶
type GridHandler ¶
type GridHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewGridHandler ¶
func NewGridHandler(srv *Server) *GridHandler
type InfoHandler ¶
type InfoHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewInfoHandler ¶
func NewInfoHandler(srv *Server) *InfoHandler
type JobHandler ¶
type JobHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewJobHandler ¶
func NewJobHandler(srv *Server) *JobHandler
type JobsHandler ¶
type JobsHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewJobsHandler ¶
func NewJobsHandler(srv *Server) *JobsHandler
type NodeHandler ¶
type NodeHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewNodeHandler ¶
func NewNodeHandler(srv *Server) *NodeHandler
type PacketHandler ¶
type PacketHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewPacketHandler ¶
func NewPacketHandler(srv *Server) *PacketHandler
type QueryHandler ¶
type QueryHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewQueryHandler ¶
func NewQueryHandler(srv *Server) *QueryHandler
type RolesHandler ¶
type RolesHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewRolesHandler ¶
func NewRolesHandler(srv *Server) *RolesHandler
type Server ¶
type Server struct { Config *config.ServerConfig Host *web.Host Datastore Datastore Userstore Userstore Rolestore Rolestore Eventstore Eventstore Casestore Casestore Metrics Metrics Authorizer Authorizer Agent *model.User Context context.Context // contains filtered or unexported fields }
func NewFakeAuthorizedServer ¶
func NewFakeUnauthorizedServer ¶
func NewFakeUnauthorizedServer() *Server
func (*Server) CheckAuthorized ¶
func (*Server) GetTimezones ¶
type StreamHandler ¶
type StreamHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewStreamHandler ¶
func NewStreamHandler(srv *Server) *StreamHandler
type UserHandler ¶
type UserHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewUserHandler ¶
func NewUserHandler(srv *Server) *UserHandler
type UsersHandler ¶
type UsersHandler struct { web.BaseHandler // contains filtered or unexported fields }
func NewUsersHandler ¶
func NewUsersHandler(srv *Server) *UsersHandler
Source Files ¶
- casehandler.go
- casestore.go
- datastore.go
- eventhandler.go
- eventstore.go
- eventstore_fake.go
- gridhandler.go
- infohandler.go
- jobhandler.go
- jobshandler.go
- metrics.go
- nodehandler.go
- packethandler.go
- queryhandler.go
- roleshandler.go
- rolestore.go
- server.go
- server_fake.go
- streamhandler.go
- userhandler.go
- usershandler.go
- userstore.go
Click to show internal directories.
Click to hide internal directories.