Documentation ¶
Index ¶
- type GenericHttpParams
- type HttpCase
- type HttpCasestore
- func (store *HttpCasestore) Authorize(request *http.Request) error
- func (store *HttpCasestore) Create(ctx context.Context, socCase *model.Case) (*model.Case, error)
- func (store *HttpCasestore) CreateArtifact(ctx context.Context, attachment *model.Artifact) (*model.Artifact, error)
- func (store *HttpCasestore) CreateArtifactStream(ctx context.Context, artifactstream *model.ArtifactStream) (string, error)
- func (store *HttpCasestore) CreateComment(ctx context.Context, comment *model.Comment) (*model.Comment, error)
- func (store *HttpCasestore) CreateRelatedEvent(ctx context.Context, event *model.RelatedEvent) (*model.RelatedEvent, error)
- func (store *HttpCasestore) DeleteArtifact(ctx context.Context, id string) error
- func (store *HttpCasestore) DeleteArtifactStream(ctx context.Context, id string) error
- func (store *HttpCasestore) DeleteComment(ctx context.Context, id string) error
- func (store *HttpCasestore) DeleteRelatedEvent(ctx context.Context, id string) error
- func (store *HttpCasestore) GetArtifact(ctx context.Context, id string) (*model.Artifact, error)
- func (store *HttpCasestore) GetArtifactStream(ctx context.Context, id string) (*model.ArtifactStream, error)
- func (store *HttpCasestore) GetArtifacts(ctx context.Context, caseId string, groupType string, groupId string) ([]*model.Artifact, error)
- func (store *HttpCasestore) GetCase(ctx context.Context, caseId string) (*model.Case, error)
- func (store *HttpCasestore) GetCaseHistory(ctx context.Context, caseId string) ([]interface{}, error)
- func (store *HttpCasestore) GetComment(ctx context.Context, commentId string) (*model.Comment, error)
- func (store *HttpCasestore) GetComments(ctx context.Context, commentId string) ([]*model.Comment, error)
- func (store *HttpCasestore) GetRelatedEvent(ctx context.Context, id string) (*model.RelatedEvent, error)
- func (store *HttpCasestore) GetRelatedEvents(ctx context.Context, caseId string) ([]*model.RelatedEvent, error)
- func (store *HttpCasestore) Init(hostUrl string, verifyCert bool, headers []string, ...) error
- func (store *HttpCasestore) Update(ctx context.Context, socCase *model.Case) (*model.Case, error)
- func (store *HttpCasestore) UpdateArtifact(ctx context.Context, artifact *model.Artifact) (*model.Artifact, error)
- func (store *HttpCasestore) UpdateComment(ctx context.Context, comment *model.Comment) (*model.Comment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericHttpParams ¶
type GenericHttpParams struct { ContentType string Method string Path string Body string SuccessStatusCode int }
func NewGenericHttpParams ¶
func NewGenericHttpParams(cfg module.ModuleConfig, prefix string) *GenericHttpParams
type HttpCase ¶
type HttpCase struct {
// contains filtered or unexported fields
}
func NewHttpCase ¶
func (*HttpCase) PrerequisiteModules ¶
type HttpCasestore ¶
type HttpCasestore struct {
// contains filtered or unexported fields
}
func NewHttpCasestore ¶
func NewHttpCasestore(srv *server.Server) *HttpCasestore
func (*HttpCasestore) Authorize ¶
func (store *HttpCasestore) Authorize(request *http.Request) error
func (*HttpCasestore) CreateArtifact ¶
func (*HttpCasestore) CreateArtifactStream ¶
func (store *HttpCasestore) CreateArtifactStream(ctx context.Context, artifactstream *model.ArtifactStream) (string, error)
func (*HttpCasestore) CreateComment ¶
func (*HttpCasestore) CreateRelatedEvent ¶
func (store *HttpCasestore) CreateRelatedEvent(ctx context.Context, event *model.RelatedEvent) (*model.RelatedEvent, error)
func (*HttpCasestore) DeleteArtifact ¶
func (store *HttpCasestore) DeleteArtifact(ctx context.Context, id string) error
func (*HttpCasestore) DeleteArtifactStream ¶
func (store *HttpCasestore) DeleteArtifactStream(ctx context.Context, id string) error
func (*HttpCasestore) DeleteComment ¶
func (store *HttpCasestore) DeleteComment(ctx context.Context, id string) error
func (*HttpCasestore) DeleteRelatedEvent ¶
func (store *HttpCasestore) DeleteRelatedEvent(ctx context.Context, id string) error
func (*HttpCasestore) GetArtifact ¶
func (*HttpCasestore) GetArtifactStream ¶
func (store *HttpCasestore) GetArtifactStream(ctx context.Context, id string) (*model.ArtifactStream, error)
func (*HttpCasestore) GetArtifacts ¶
func (*HttpCasestore) GetCaseHistory ¶
func (store *HttpCasestore) GetCaseHistory(ctx context.Context, caseId string) ([]interface{}, error)
func (*HttpCasestore) GetComment ¶
func (*HttpCasestore) GetComments ¶
func (*HttpCasestore) GetRelatedEvent ¶
func (store *HttpCasestore) GetRelatedEvent(ctx context.Context, id string) (*model.RelatedEvent, error)
func (*HttpCasestore) GetRelatedEvents ¶
func (store *HttpCasestore) GetRelatedEvents(ctx context.Context, caseId string) ([]*model.RelatedEvent, error)
func (*HttpCasestore) Init ¶
func (store *HttpCasestore) Init(hostUrl string, verifyCert bool, headers []string, createParams *GenericHttpParams) error
func (*HttpCasestore) UpdateArtifact ¶
func (*HttpCasestore) UpdateComment ¶
Click to show internal directories.
Click to hide internal directories.