generichttp

package
v0.0.0-...-bf86773 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 NewHttpCase(srv *server.Server) *HttpCase

func (*HttpCase) Init

func (somodule *HttpCase) Init(cfg module.ModuleConfig) error

func (*HttpCase) IsRunning

func (somodule *HttpCase) IsRunning() bool

func (*HttpCase) PrerequisiteModules

func (somodule *HttpCase) PrerequisiteModules() []string

func (*HttpCase) Start

func (somodule *HttpCase) Start() error

func (*HttpCase) Stop

func (somodule *HttpCase) Stop() error

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) Create

func (store *HttpCasestore) Create(ctx context.Context, socCase *model.Case) (*model.Case, error)

func (*HttpCasestore) CreateArtifact

func (store *HttpCasestore) CreateArtifact(ctx context.Context, attachment *model.Artifact) (*model.Artifact, error)

func (*HttpCasestore) CreateArtifactStream

func (store *HttpCasestore) CreateArtifactStream(ctx context.Context, artifactstream *model.ArtifactStream) (string, error)

func (*HttpCasestore) CreateComment

func (store *HttpCasestore) CreateComment(ctx context.Context, comment *model.Comment) (*model.Comment, error)

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 (store *HttpCasestore) GetArtifact(ctx context.Context, id string) (*model.Artifact, error)

func (*HttpCasestore) GetArtifactStream

func (store *HttpCasestore) GetArtifactStream(ctx context.Context, id string) (*model.ArtifactStream, error)

func (*HttpCasestore) GetArtifacts

func (store *HttpCasestore) GetArtifacts(ctx context.Context, caseId string, groupType string, groupId string) ([]*model.Artifact, error)

func (*HttpCasestore) GetCase

func (store *HttpCasestore) GetCase(ctx context.Context, caseId string) (*model.Case, error)

func (*HttpCasestore) GetCaseHistory

func (store *HttpCasestore) GetCaseHistory(ctx context.Context, caseId string) ([]interface{}, error)

func (*HttpCasestore) GetComment

func (store *HttpCasestore) GetComment(ctx context.Context, commentId string) (*model.Comment, error)

func (*HttpCasestore) GetComments

func (store *HttpCasestore) GetComments(ctx context.Context, commentId string) ([]*model.Comment, error)

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) Update

func (store *HttpCasestore) Update(ctx context.Context, socCase *model.Case) (*model.Case, error)

func (*HttpCasestore) UpdateArtifact

func (store *HttpCasestore) UpdateArtifact(ctx context.Context, artifact *model.Artifact) (*model.Artifact, error)

func (*HttpCasestore) UpdateComment

func (store *HttpCasestore) UpdateComment(ctx context.Context, comment *model.Comment) (*model.Comment, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL