Documentation
¶
Index ¶
- Variables
- func CompareSeverityCounts(a model.SeverityCounts, b model.SeverityCounts) int
- func ExecuteGqlQuery[T any](client *graphql.Client, req *graphql.Request) (T, error)
- func ExecuteGqlQueryFromFile[T any](port string, queryFilePath string, vars map[string]any) (T, error)
- func ExecuteGqlQueryFromFileWithHeaders[T any](port string, queryFilePath string, vars map[string]any, ...) (T, error)
- func ExpectNonSystemUserCount(n, expectedN int)
- func ExpectNonSystemUserNames(v, expectedV []*string)
- func ExpectNonSystemUserUniqueUserIds(v, expectedV []*string)
- func NewRunningServer(cfg util.Config) *server.Server
- func QueryCreateIssue(port string, issue Issue) *model.Issue
- func QueryCreateUser(port string, user User) *model.User
- func QueryDeleteIssue(port string, iid string) string
- func QueryGetIssue(port string, issuePrimaryName string) *model.IssueConnection
- func QueryGetIssueWithReqVars(port string, vars map[string]interface{}) *model.IssueConnection
- func QueryGetIssuesFilteringByState(port string, stateFilter []string) *model.IssueConnection
- func QueryGetIssuesWithoutFiltering(port string) *model.IssueConnection
- func QueryGetUser(port string, uniqueUserId string) *model.UserConnection
- func QueryUpdateIssue(port string, issue Issue, iid string) *model.Issue
- func QueryUpdateUser(port string, user User, uid string) *model.User
- func ServerTeardown(s *server.Server)
- func SubtractSystemUserId(v []int64) []int64
- func SubtractSystemUserName(v []*string) []*string
- func SubtractSystemUserNameFromValueItems(v []*model.ValueItem) []*model.ValueItem
- func SubtractSystemUserNameVL(v []string) []string
- func SubtractSystemUserUniqueUserId(v []*string) []*string
- func SubtractSystemUserUniqueUserIdVL(v []string) []string
- func SubtractSystemUsers[T Number](n T) T
- func SubtractSystemUsersEntity(v []entity.User) []entity.User
- type Issue
- type Number
- type PausableProxy
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var GqlStandardHeaders map[string]string = map[string]string{
"Cache-Control": "no-cache",
}
Functions ¶
func CompareSeverityCounts ¶ added in v1.18.0
func CompareSeverityCounts(a model.SeverityCounts, b model.SeverityCounts) int
CompareSeverityCounts compares two SeverityCounts structs. It returns 1 if a > b, -1 if a < b, and 0 if they are equal. The comparison is done in the order of Critical, High, Medium, Low, None.
func ExecuteGqlQuery ¶ added in v1.43.0
func ExecuteGqlQueryFromFile ¶ added in v1.26.0
func ExecuteGqlQueryFromFileWithHeaders ¶ added in v1.31.0
func ExpectNonSystemUserCount ¶
func ExpectNonSystemUserCount(n, expectedN int)
func ExpectNonSystemUserNames ¶
func ExpectNonSystemUserNames(v, expectedV []*string)
func ExpectNonSystemUserUniqueUserIds ¶
func ExpectNonSystemUserUniqueUserIds(v, expectedV []*string)
func QueryDeleteIssue ¶
func QueryGetIssue ¶
func QueryGetIssue(port string, issuePrimaryName string) *model.IssueConnection
func QueryGetIssueWithReqVars ¶
func QueryGetIssueWithReqVars(port string, vars map[string]interface{}) *model.IssueConnection
func QueryGetIssuesFilteringByState ¶
func QueryGetIssuesFilteringByState(port string, stateFilter []string) *model.IssueConnection
func QueryGetIssuesWithoutFiltering ¶
func QueryGetIssuesWithoutFiltering(port string) *model.IssueConnection
func QueryGetUser ¶
func QueryGetUser(port string, uniqueUserId string) *model.UserConnection
func ServerTeardown ¶ added in v1.28.1
func SubtractSystemUserId ¶
func SubtractSystemUserName ¶
func SubtractSystemUsers ¶
func SubtractSystemUsers[T Number](n T) T
Types ¶
type PausableProxy ¶ added in v1.6.0
type PausableProxy struct {
// contains filtered or unexported fields
}
func NewPausableProxy ¶ added in v1.6.0
func NewPausableProxy(listenAddr, targetAddr string) *PausableProxy
func (*PausableProxy) DoNotHoldNewIncomingConnections ¶ added in v1.6.0
func (p *PausableProxy) DoNotHoldNewIncomingConnections()
func (*PausableProxy) HoldNewIncomingConnections ¶ added in v1.6.0
func (p *PausableProxy) HoldNewIncomingConnections()
func (*PausableProxy) ResumeHeldConnections ¶ added in v1.6.0
func (p *PausableProxy) ResumeHeldConnections()
func (*PausableProxy) Start ¶ added in v1.6.0
func (p *PausableProxy) Start() error
func (*PausableProxy) Stop ¶ added in v1.6.0
func (p *PausableProxy) Stop()
Click to show internal directories.
Click to hide internal directories.