Documentation ¶
Index ¶
- Constants
- type Activity
- type ActivityList
- type ActivityOptions
- type Client
- func (c *Client) Authenticate() error
- func (c *Client) CheckActivity() (int, error)
- func (c *Client) DiscordFormatActivity(a Activity) (string, error)
- func (c *Client) DiscordSend(ctx context.Context, message string) error
- func (c *Client) GetActivities(ctx context.Context) (*ActivityList, error)
- func (c *Client) GetClosedState(state int) string
- func (c *Client) GetEndpointTier(tierId int) string
- func (c *Client) GetEndpointType(typeId int) string
- func (c *Client) GetProgramContentDiff(a Activity, field string) string
- func (c *Client) GetProgramDomainsDiff(a Activity) string
- func (c *Client) GetProgramRulesDiff(a Activity) string
- func (c *Client) GetProgramState(program int) string
- func (c *Client) GetSeverity(severity int) string
- func (c *Client) GetSubmissionState(state int) string
- func (c *Client) SlackFormatActivity(a Activity) (string, error)
- func (c *Client) SlackSend(message string) error
- type Program
- type ProgramChanges
- type ProgramChangesContent
- type ProgramChangesContentContent
- type ProgramDomains
- type ProgramDomainsContent
- type ProgramRulesChanges
- type ProgramRulesChangesContent
- type ResponsePayout
- type ResponseState
- type ResponseUser
Constants ¶
View Source
const ( ApiURL = "https://app.intigriti.com/api" AppURL = "https://app.intigriti.com" LoginURL = "https://login.intigriti.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { Discriminator int `json:"discriminator"` Newstatusid int `json:"newStatusId"` Oldstatusid int `json:"oldStatusId"` Trigger int `json:"trigger"` Title string `json:"title"` Description string `json:"description"` Newstate ResponseState `json:"newState"` User ResponseUser `json:"user"` UserName string `json:"username"` Newseverityid int `json:"newSeverityId"` NewPayoutAmount ResponsePayout `json:"newPayoutAmount"` NewPayoutType int `json:"newPayoutType"` Submissioncode string `json:"submissionCode"` Submissiontitle string `json:"submissionTitle"` CreatedAt int64 `json:"createdAt"` Programid string `json:"programId"` Programlogoid string `json:"programLogoId"` Programname string `json:"programName"` Programhandle string `json:"programHandle"` Companyhandle string `json:"companyHandle"` Newendpoint string `json:"newEndpointVulnerableComponent"` }
type ActivityList ¶
type ActivityOptions ¶
type Client ¶
type Client struct { ApiURL string AppURL string LoginURL string Authenticated bool LastViewed int64 WebhookURL string Ratelimiter *rate.Limiter HTTPClient *http.Client HttpCtx context.Context // contains filtered or unexported fields }
func (*Client) Authenticate ¶
func (*Client) CheckActivity ¶
func (*Client) DiscordFormatActivity ¶
func (*Client) DiscordSend ¶
func (*Client) GetActivities ¶
func (c *Client) GetActivities(ctx context.Context) (*ActivityList, error)
func (*Client) GetClosedState ¶
func (*Client) GetEndpointTier ¶ added in v0.6.0
func (*Client) GetEndpointType ¶ added in v0.6.0
func (*Client) GetProgramContentDiff ¶ added in v0.6.0
func (*Client) GetProgramDomainsDiff ¶ added in v0.6.0
func (*Client) GetProgramRulesDiff ¶ added in v0.6.0
func (*Client) GetProgramState ¶
func (*Client) GetSeverity ¶
func (*Client) GetSubmissionState ¶
func (*Client) SlackFormatActivity ¶
type Program ¶
type Program struct { ProgramId string `json:"programId"` Status int `json:"status"` ConfidentialityLevel int `json:"confidentialityLevel"` CompanyHandle string `json:"companyHandle"` CompanyName string `json:"companyName"` CompanySustainable bool `json:"companySustainable"` Handle string `json:"handle"` Name string `json:"name"` Description string `json:"description"` MinBounty string `json:"minBounty"` MaxBounty string `json:"maxBounty"` LogoId string `json:"logoId"` IdentityCheckedRequired bool `json:"identityCheckedRequired"` AwardRep bool `json:"awardRep"` SkipTriage bool `json:"skipTriage"` View int `json:"view"` OutScopes []ProgramChanges `json:"outOfScopes"` InScopes []ProgramChanges `json:"inScopes"` RulesOfEngagement []ProgramRulesChanges `json:"rulesOfEngagements"` Faqs []ProgramChanges `json:"faqs"` SeverityAssessments []ProgramChanges `json:"severityAssessments"` Domains []ProgramDomains `json:"domains"` }
type ProgramChanges ¶ added in v0.6.0
type ProgramChanges struct { CreatedAt int64 `json:"createdAt"` Content ProgramChangesContent `json:"content"` }
type ProgramChangesContent ¶ added in v0.6.0
type ProgramChangesContent struct {
Content string `json:"content"`
}
type ProgramChangesContentContent ¶ added in v0.6.0
type ProgramChangesContentContent struct {
Description string `json:"description"`
}
type ProgramDomains ¶ added in v0.6.0
type ProgramDomains struct { CreatedAt int64 `json:"createdAt"` Content []ProgramDomainsContent `json:"content"` }
type ProgramDomainsContent ¶ added in v0.6.0
type ProgramRulesChanges ¶ added in v0.6.0
type ProgramRulesChanges struct { CreatedAt int64 `json:"createdAt"` Content ProgramRulesChangesContent `json:"content"` }
type ProgramRulesChangesContent ¶ added in v0.6.0
type ProgramRulesChangesContent struct {
Content ProgramChangesContentContent `json:"content"`
}
type ResponsePayout ¶ added in v0.3.0
type ResponseState ¶
Click to show internal directories.
Click to hide internal directories.