Documentation ¶
Index ¶
- func BuildCreateTargetPayload(targetsCreateTargetBody string) (*targets.CreateTargetPayload, error)
- func BuildDeleteTargetTeamPayload(targetsDeleteTargetTeamTargetID string, targetsDeleteTargetTeamTeam string, ...) (*targets.DeleteTargetTeamPayload, error)
- func BuildDeleteTeamPayload(targetsDeleteTeamTeam string, targetsDeleteTeamAuth string) (*targets.DeleteTeamPayload, error)
- func BuildGetFindingByTargetIssueAndAffectedResourcePayload(targetsGetFindingByTargetIssueAndAffectedResourceTargetID string, ...) (*targets.GetFindingByTargetIssueAndAffectedResourcePayload, error)
- func BuildGetTargetMTTRPayload(targetsGetTargetMTTRID string) (*targets.GetTargetMTTRPayload, error)
- func BuildGetTargetPayload(targetsGetTargetID string) (*targets.GetTargetPayload, error)
- func BuildListFindingsByTargetPayload(targetsListFindingsByTargetID string, targetsListFindingsByTargetStatus string, ...) (*targets.ListFindingsByTargetPayload, error)
- func BuildListTargetsPayload(targetsListTargetsTeam string, targetsListTargetsTeams string, ...) (*targets.ListTargetsPayload, error)
- func BuildTargetsSummaryPayload(targetsTargetsSummaryTeam string, targetsTargetsSummaryTeams string, ...) (*targets.TargetsSummaryPayload, error)
- func CreateTargetTargetsPath() string
- func DecodeCreateTargetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeDeleteTargetTeamResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeDeleteTeamResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeGetFindingByTargetIssueAndAffectedResourceResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeGetTargetMTTRResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeGetTargetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeListFindingsByTargetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeListTargetsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeTargetsSummaryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DeleteTargetTeamTargetsPath(targetID string, team string) string
- func DeleteTeamTargetsPath(team string) string
- func EncodeCreateTargetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeDeleteTargetTeamRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeDeleteTeamRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeListFindingsByTargetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeListTargetsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeTargetsSummaryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func GetFindingByTargetIssueAndAffectedResourceTargetsPath(targetID string, issueID string, resource string) string
- func GetTargetMTTRTargetsPath(id string) string
- func GetTargetTargetsPath(id string) string
- func ListFindingsByTargetTargetsPath(id string) string
- func ListTargetsTargetsPath() string
- func NewCreateTargetTargetCreated(body *CreateTargetResponseBody) *targetsviews.TargetView
- func NewGetFindingByTargetIssueAndAffectedResourceFindingOK(body *GetFindingByTargetIssueAndAffectedResourceResponseBody) *targetsviews.FindingView
- func NewGetTargetTargetOK(body *GetTargetResponseBody) *targetsviews.TargetView
- func NewListFindingsByTargetFindingCollectionOK(body ListFindingsByTargetResponseBody) targetsviews.FindingCollectionView
- func NewListTargetsTargetCollectionOK(body ListTargetsResponseBody) targetsviews.TargetCollectionView
- func NewTargetsSummaryTargetSummaryCollectionOK(body TargetsSummaryResponseBody) targetsviews.TargetSummaryCollectionView
- func TargetsSummaryTargetsPath() string
- type Client
- func (c *Client) BuildCreateTargetRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildDeleteTargetTeamRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildDeleteTeamRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildGetFindingByTargetIssueAndAffectedResourceRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildGetTargetMTTRRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildGetTargetRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildListFindingsByTargetRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildListTargetsRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildTargetsSummaryRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) CreateTarget() goa.Endpoint
- func (c *Client) DeleteTargetTeam() goa.Endpoint
- func (c *Client) DeleteTeam() goa.Endpoint
- func (c *Client) GetFindingByTargetIssueAndAffectedResource() goa.Endpoint
- func (c *Client) GetTarget() goa.Endpoint
- func (c *Client) GetTargetMTTR() goa.Endpoint
- func (c *Client) ListFindingsByTarget() goa.Endpoint
- func (c *Client) ListTargets() goa.Endpoint
- func (c *Client) TargetsSummary() goa.Endpoint
- type CreateTargetRequestBody
- type CreateTargetResponseBody
- type FindingResponse
- type GetFindingByTargetIssueAndAffectedResourceResponseBody
- type GetTargetResponseBody
- type IssueResponse
- type IssueResponseBody
- type ListFindingsByTargetResponseBody
- type ListTargetsResponseBody
- type ResourceGroupResponse
- type ResourceGroupResponseBody
- type SourcewithnotargetResponse
- type SourcewithnotargetResponseBody
- type TargetResponse
- type TargetResponseBody
- type TargetSummaryResponse
- type TargetsSummaryResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCreateTargetPayload ¶
func BuildCreateTargetPayload(targetsCreateTargetBody string) (*targets.CreateTargetPayload, error)
BuildCreateTargetPayload builds the payload for the targets Create target endpoint from CLI flags.
func BuildDeleteTargetTeamPayload ¶ added in v1.1.0
func BuildDeleteTargetTeamPayload(targetsDeleteTargetTeamTargetID string, targetsDeleteTargetTeamTeam string, targetsDeleteTargetTeamAuth string) (*targets.DeleteTargetTeamPayload, error)
BuildDeleteTargetTeamPayload builds the payload for the targets Delete target team endpoint from CLI flags.
func BuildDeleteTeamPayload ¶ added in v1.1.0
func BuildDeleteTeamPayload(targetsDeleteTeamTeam string, targetsDeleteTeamAuth string) (*targets.DeleteTeamPayload, error)
BuildDeleteTeamPayload builds the payload for the targets Delete team endpoint from CLI flags.
func BuildGetFindingByTargetIssueAndAffectedResourcePayload ¶
func BuildGetFindingByTargetIssueAndAffectedResourcePayload(targetsGetFindingByTargetIssueAndAffectedResourceTargetID string, targetsGetFindingByTargetIssueAndAffectedResourceIssueID string, targetsGetFindingByTargetIssueAndAffectedResourceResource string) (*targets.GetFindingByTargetIssueAndAffectedResourcePayload, error)
BuildGetFindingByTargetIssueAndAffectedResourcePayload builds the payload for the targets Get finding by target, issue and affected resource endpoint from CLI flags.
func BuildGetTargetMTTRPayload ¶
func BuildGetTargetMTTRPayload(targetsGetTargetMTTRID string) (*targets.GetTargetMTTRPayload, error)
BuildGetTargetMTTRPayload builds the payload for the targets Get target MTTR endpoint from CLI flags.
func BuildGetTargetPayload ¶
func BuildGetTargetPayload(targetsGetTargetID string) (*targets.GetTargetPayload, error)
BuildGetTargetPayload builds the payload for the targets Get target endpoint from CLI flags.
func BuildListFindingsByTargetPayload ¶
func BuildListFindingsByTargetPayload(targetsListFindingsByTargetID string, targetsListFindingsByTargetStatus string, targetsListFindingsByTargetSortBy string, targetsListFindingsByTargetPage string, targetsListFindingsByTargetSize string, targetsListFindingsByTargetLabels string) (*targets.ListFindingsByTargetPayload, error)
BuildListFindingsByTargetPayload builds the payload for the targets List findings by target endpoint from CLI flags.
func BuildListTargetsPayload ¶
func BuildListTargetsPayload(targetsListTargetsTeam string, targetsListTargetsTeams string, targetsListTargetsIdentifier string, targetsListTargetsPage string, targetsListTargetsSize string, targetsListTargetsIdentifiermatch string, targetsListTargetsIdentifiers string) (*targets.ListTargetsPayload, error)
BuildListTargetsPayload builds the payload for the targets List targets endpoint from CLI flags.
func BuildTargetsSummaryPayload ¶
func BuildTargetsSummaryPayload(targetsTargetsSummaryTeam string, targetsTargetsSummaryTeams string, targetsTargetsSummaryStatus string, targetsTargetsSummarySortBy string, targetsTargetsSummaryPage string, targetsTargetsSummarySize string, targetsTargetsSummaryIdentifiers string, targetsTargetsSummaryLabels string) (*targets.TargetsSummaryPayload, error)
BuildTargetsSummaryPayload builds the payload for the targets Targets summary endpoint from CLI flags.
func CreateTargetTargetsPath ¶
func CreateTargetTargetsPath() string
CreateTargetTargetsPath returns the URL path to the targets service Create target HTTP endpoint.
func DecodeCreateTargetResponse ¶
func DecodeCreateTargetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeCreateTargetResponse returns a decoder for responses returned by the targets Create target endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeDeleteTargetTeamResponse ¶ added in v1.1.0
func DecodeDeleteTargetTeamResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDeleteTargetTeamResponse returns a decoder for responses returned by the targets Delete target team endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeDeleteTeamResponse ¶ added in v1.1.0
func DecodeDeleteTeamResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDeleteTeamResponse returns a decoder for responses returned by the targets Delete team endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeGetFindingByTargetIssueAndAffectedResourceResponse ¶
func DecodeGetFindingByTargetIssueAndAffectedResourceResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetFindingByTargetIssueAndAffectedResourceResponse returns a decoder for responses returned by the targets Get finding by target, issue and affected resource endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeGetTargetMTTRResponse ¶
func DecodeGetTargetMTTRResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetTargetMTTRResponse returns a decoder for responses returned by the targets Get target MTTR endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeGetTargetResponse ¶
func DecodeGetTargetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeGetTargetResponse returns a decoder for responses returned by the targets Get target endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeListFindingsByTargetResponse ¶
func DecodeListFindingsByTargetResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeListFindingsByTargetResponse returns a decoder for responses returned by the targets List findings by target endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeListTargetsResponse ¶
func DecodeListTargetsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeListTargetsResponse returns a decoder for responses returned by the targets List targets endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeTargetsSummaryResponse ¶
func DecodeTargetsSummaryResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeTargetsSummaryResponse returns a decoder for responses returned by the targets Targets summary endpoint. restoreBody controls whether the response body should be restored after having been read.
func DeleteTargetTeamTargetsPath ¶ added in v1.1.0
DeleteTargetTeamTargetsPath returns the URL path to the targets service Delete target team HTTP endpoint.
func DeleteTeamTargetsPath ¶ added in v1.1.0
DeleteTeamTargetsPath returns the URL path to the targets service Delete team HTTP endpoint.
func EncodeCreateTargetRequest ¶
func EncodeCreateTargetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeCreateTargetRequest returns an encoder for requests sent to the targets Create target server.
func EncodeDeleteTargetTeamRequest ¶ added in v1.1.0
func EncodeDeleteTargetTeamRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDeleteTargetTeamRequest returns an encoder for requests sent to the targets Delete target team server.
func EncodeDeleteTeamRequest ¶ added in v1.1.0
func EncodeDeleteTeamRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDeleteTeamRequest returns an encoder for requests sent to the targets Delete team server.
func EncodeListFindingsByTargetRequest ¶
func EncodeListFindingsByTargetRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeListFindingsByTargetRequest returns an encoder for requests sent to the targets List findings by target server.
func EncodeListTargetsRequest ¶
func EncodeListTargetsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeListTargetsRequest returns an encoder for requests sent to the targets List targets server.
func EncodeTargetsSummaryRequest ¶
func EncodeTargetsSummaryRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeTargetsSummaryRequest returns an encoder for requests sent to the targets Targets summary server.
func GetFindingByTargetIssueAndAffectedResourceTargetsPath ¶
func GetFindingByTargetIssueAndAffectedResourceTargetsPath(targetID string, issueID string, resource string) string
GetFindingByTargetIssueAndAffectedResourceTargetsPath returns the URL path to the targets service Get finding by target, issue and affected resource HTTP endpoint.
func GetTargetMTTRTargetsPath ¶
GetTargetMTTRTargetsPath returns the URL path to the targets service Get target MTTR HTTP endpoint.
func GetTargetTargetsPath ¶
GetTargetTargetsPath returns the URL path to the targets service Get target HTTP endpoint.
func ListFindingsByTargetTargetsPath ¶
ListFindingsByTargetTargetsPath returns the URL path to the targets service List findings by target HTTP endpoint.
func ListTargetsTargetsPath ¶
func ListTargetsTargetsPath() string
ListTargetsTargetsPath returns the URL path to the targets service List targets HTTP endpoint.
func NewCreateTargetTargetCreated ¶
func NewCreateTargetTargetCreated(body *CreateTargetResponseBody) *targetsviews.TargetView
NewCreateTargetTargetCreated builds a "targets" service "Create target" endpoint result from a HTTP "Created" response.
func NewGetFindingByTargetIssueAndAffectedResourceFindingOK ¶
func NewGetFindingByTargetIssueAndAffectedResourceFindingOK(body *GetFindingByTargetIssueAndAffectedResourceResponseBody) *targetsviews.FindingView
NewGetFindingByTargetIssueAndAffectedResourceFindingOK builds a "targets" service "Get finding by target, issue and affected resource" endpoint result from a HTTP "OK" response.
func NewGetTargetTargetOK ¶
func NewGetTargetTargetOK(body *GetTargetResponseBody) *targetsviews.TargetView
NewGetTargetTargetOK builds a "targets" service "Get target" endpoint result from a HTTP "OK" response.
func NewListFindingsByTargetFindingCollectionOK ¶
func NewListFindingsByTargetFindingCollectionOK(body ListFindingsByTargetResponseBody) targetsviews.FindingCollectionView
NewListFindingsByTargetFindingCollectionOK builds a "targets" service "List findings by target" endpoint result from a HTTP "OK" response.
func NewListTargetsTargetCollectionOK ¶
func NewListTargetsTargetCollectionOK(body ListTargetsResponseBody) targetsviews.TargetCollectionView
NewListTargetsTargetCollectionOK builds a "targets" service "List targets" endpoint result from a HTTP "OK" response.
func NewTargetsSummaryTargetSummaryCollectionOK ¶
func NewTargetsSummaryTargetSummaryCollectionOK(body TargetsSummaryResponseBody) targetsviews.TargetSummaryCollectionView
NewTargetsSummaryTargetSummaryCollectionOK builds a "targets" service "Targets summary" endpoint result from a HTTP "OK" response.
func TargetsSummaryTargetsPath ¶
func TargetsSummaryTargetsPath() string
TargetsSummaryTargetsPath returns the URL path to the targets service Targets summary HTTP endpoint.
Types ¶
type Client ¶
type Client struct { // ListTargets Doer is the HTTP client used to make requests to the List // targets endpoint. ListTargetsDoer goahttp.Doer // TargetsSummary Doer is the HTTP client used to make requests to the Targets // summary endpoint. TargetsSummaryDoer goahttp.Doer // GetTarget Doer is the HTTP client used to make requests to the Get target // endpoint. GetTargetDoer goahttp.Doer // CreateTarget Doer is the HTTP client used to make requests to the Create // target endpoint. CreateTargetDoer goahttp.Doer // ListFindingsByTarget Doer is the HTTP client used to make requests to the // List findings by target endpoint. ListFindingsByTargetDoer goahttp.Doer // GetFindingByTargetIssueAndAffectedResource Doer is the HTTP client used to // make requests to the Get finding by target, issue and affected resource // endpoint. GetFindingByTargetIssueAndAffectedResourceDoer goahttp.Doer // GetTargetMTTR Doer is the HTTP client used to make requests to the Get // target MTTR endpoint. GetTargetMTTRDoer goahttp.Doer // DeleteTargetTeam Doer is the HTTP client used to make requests to the Delete // target team endpoint. DeleteTargetTeamDoer goahttp.Doer // DeleteTeam Doer is the HTTP client used to make requests to the Delete team // endpoint. DeleteTeamDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the targets service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the targets service servers.
func (*Client) BuildCreateTargetRequest ¶
func (c *Client) BuildCreateTargetRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildCreateTargetRequest instantiates a HTTP request object with method and path set to call the "targets" service "Create target" endpoint
func (*Client) BuildDeleteTargetTeamRequest ¶ added in v1.1.0
func (c *Client) BuildDeleteTargetTeamRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildDeleteTargetTeamRequest instantiates a HTTP request object with method and path set to call the "targets" service "Delete target team" endpoint
func (*Client) BuildDeleteTeamRequest ¶ added in v1.1.0
BuildDeleteTeamRequest instantiates a HTTP request object with method and path set to call the "targets" service "Delete team" endpoint
func (*Client) BuildGetFindingByTargetIssueAndAffectedResourceRequest ¶
func (c *Client) BuildGetFindingByTargetIssueAndAffectedResourceRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildGetFindingByTargetIssueAndAffectedResourceRequest instantiates a HTTP request object with method and path set to call the "targets" service "Get finding by target, issue and affected resource" endpoint
func (*Client) BuildGetTargetMTTRRequest ¶
func (c *Client) BuildGetTargetMTTRRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildGetTargetMTTRRequest instantiates a HTTP request object with method and path set to call the "targets" service "Get target MTTR" endpoint
func (*Client) BuildGetTargetRequest ¶
BuildGetTargetRequest instantiates a HTTP request object with method and path set to call the "targets" service "Get target" endpoint
func (*Client) BuildListFindingsByTargetRequest ¶
func (c *Client) BuildListFindingsByTargetRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildListFindingsByTargetRequest instantiates a HTTP request object with method and path set to call the "targets" service "List findings by target" endpoint
func (*Client) BuildListTargetsRequest ¶
BuildListTargetsRequest instantiates a HTTP request object with method and path set to call the "targets" service "List targets" endpoint
func (*Client) BuildTargetsSummaryRequest ¶
func (c *Client) BuildTargetsSummaryRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildTargetsSummaryRequest instantiates a HTTP request object with method and path set to call the "targets" service "Targets summary" endpoint
func (*Client) CreateTarget ¶
CreateTarget returns an endpoint that makes HTTP requests to the targets service Create target server.
func (*Client) DeleteTargetTeam ¶ added in v1.1.0
DeleteTargetTeam returns an endpoint that makes HTTP requests to the targets service Delete target team server.
func (*Client) DeleteTeam ¶ added in v1.1.0
DeleteTeam returns an endpoint that makes HTTP requests to the targets service Delete team server.
func (*Client) GetFindingByTargetIssueAndAffectedResource ¶
GetFindingByTargetIssueAndAffectedResource returns an endpoint that makes HTTP requests to the targets service Get finding by target, issue and affected resource server.
func (*Client) GetTarget ¶
GetTarget returns an endpoint that makes HTTP requests to the targets service Get target server.
func (*Client) GetTargetMTTR ¶
GetTargetMTTR returns an endpoint that makes HTTP requests to the targets service Get target MTTR server.
func (*Client) ListFindingsByTarget ¶
ListFindingsByTarget returns an endpoint that makes HTTP requests to the targets service List findings by target server.
func (*Client) ListTargets ¶
ListTargets returns an endpoint that makes HTTP requests to the targets service List targets server.
func (*Client) TargetsSummary ¶
TargetsSummary returns an endpoint that makes HTTP requests to the targets service Targets summary server.
type CreateTargetRequestBody ¶
type CreateTargetRequestBody struct { // Target Identifier Identifier *string `form:"identifier,omitempty" json:"identifier,omitempty" xml:"identifier,omitempty"` // Target Teams Teams []string `form:"teams,omitempty" json:"teams,omitempty" xml:"teams,omitempty"` }
CreateTargetRequestBody is the type of the "targets" service "Create target" endpoint HTTP request body.
func NewCreateTargetRequestBody ¶
func NewCreateTargetRequestBody(p *targets.CreateTargetPayload) *CreateTargetRequestBody
NewCreateTargetRequestBody builds the HTTP request body from the payload of the "Create target" endpoint of the "targets" service.
type CreateTargetResponseBody ¶
type CreateTargetResponseBody struct { // Target ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Target identifier Identifier *string `form:"identifier,omitempty" json:"identifier,omitempty" xml:"identifier,omitempty"` // List of teams associated with target Teams []string `form:"teams,omitempty" json:"teams,omitempty" xml:"teams,omitempty"` }
CreateTargetResponseBody is the type of the "targets" service "Create target" endpoint HTTP response body.
type FindingResponse ¶
type FindingResponse struct { // Finding ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Issue Issue *IssueResponse `form:"issue,omitempty" json:"issue,omitempty" xml:"issue,omitempty"` // Target Target *TargetResponse `form:"target,omitempty" json:"target,omitempty" xml:"target,omitempty"` // Source Source *SourcewithnotargetResponse `form:"source,omitempty" json:"source,omitempty" xml:"source,omitempty"` // Finding details Details *string `form:"details,omitempty" json:"details,omitempty" xml:"details,omitempty"` // Finding impact details ImpactDetails *string `form:"impact_details,omitempty" json:"impact_details,omitempty" xml:"impact_details,omitempty"` // Finding status. Can be 'OPEN' or 'FIXED'. Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` // Finding severity score Score *float32 `form:"score,omitempty" json:"score,omitempty" xml:"score,omitempty"` // Other resources associated with the finding Resources []*ResourceGroupResponse `form:"resources,omitempty" json:"resources,omitempty" xml:"resources,omitempty"` }
FindingResponse is used to define fields on response body types.
type GetFindingByTargetIssueAndAffectedResourceResponseBody ¶
type GetFindingByTargetIssueAndAffectedResourceResponseBody struct { // Finding ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Issue Issue *IssueResponseBody `form:"issue,omitempty" json:"issue,omitempty" xml:"issue,omitempty"` // Target Target *TargetResponseBody `form:"target,omitempty" json:"target,omitempty" xml:"target,omitempty"` // Source Source *SourcewithnotargetResponseBody `form:"source,omitempty" json:"source,omitempty" xml:"source,omitempty"` // Finding details Details *string `form:"details,omitempty" json:"details,omitempty" xml:"details,omitempty"` // Finding impact details ImpactDetails *string `form:"impact_details,omitempty" json:"impact_details,omitempty" xml:"impact_details,omitempty"` // Finding status. Can be 'OPEN' or 'FIXED'. Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` // Finding severity score Score *float32 `form:"score,omitempty" json:"score,omitempty" xml:"score,omitempty"` // Other resources associated with the finding Resources []*ResourceGroupResponseBody `form:"resources,omitempty" json:"resources,omitempty" xml:"resources,omitempty"` }
GetFindingByTargetIssueAndAffectedResourceResponseBody is the type of the "targets" service "Get finding by target, issue and affected resource" endpoint HTTP response body.
type GetTargetResponseBody ¶
type GetTargetResponseBody struct { // Target ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Target identifier Identifier *string `form:"identifier,omitempty" json:"identifier,omitempty" xml:"identifier,omitempty"` // List of teams associated with target Teams []string `form:"teams,omitempty" json:"teams,omitempty" xml:"teams,omitempty"` }
GetTargetResponseBody is the type of the "targets" service "Get target" endpoint HTTP response body.
type IssueResponse ¶
type IssueResponse struct { // Issue ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Issue summary Summary *string `form:"summary,omitempty" json:"summary,omitempty" xml:"summary,omitempty"` // Common Weakness Enumeration ID CweID *int `form:"cwe_id,omitempty" json:"cwe_id,omitempty" xml:"cwe_id,omitempty"` // Issue description Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` // Recommendations to fix the issue Recommendations []string `form:"recommendations,omitempty" json:"recommendations,omitempty" xml:"recommendations,omitempty"` // Documentation reference for the issue ReferenceLinks []string `form:"reference_links,omitempty" json:"reference_links,omitempty" xml:"reference_links,omitempty"` // Labels associated with the issue Labels []string `form:"labels,omitempty" json:"labels,omitempty" xml:"labels,omitempty"` }
IssueResponse is used to define fields on response body types.
type IssueResponseBody ¶
type IssueResponseBody struct { // Issue ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Issue summary Summary *string `form:"summary,omitempty" json:"summary,omitempty" xml:"summary,omitempty"` // Common Weakness Enumeration ID CweID *int `form:"cwe_id,omitempty" json:"cwe_id,omitempty" xml:"cwe_id,omitempty"` // Issue description Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` // Recommendations to fix the issue Recommendations []string `form:"recommendations,omitempty" json:"recommendations,omitempty" xml:"recommendations,omitempty"` // Documentation reference for the issue ReferenceLinks []string `form:"reference_links,omitempty" json:"reference_links,omitempty" xml:"reference_links,omitempty"` // Labels associated with the issue Labels []string `form:"labels,omitempty" json:"labels,omitempty" xml:"labels,omitempty"` }
IssueResponseBody is used to define fields on response body types.
type ListFindingsByTargetResponseBody ¶
type ListFindingsByTargetResponseBody []*FindingResponse
ListFindingsByTargetResponseBody is the type of the "targets" service "List findings by target" endpoint HTTP response body.
type ListTargetsResponseBody ¶
type ListTargetsResponseBody []*TargetResponse
ListTargetsResponseBody is the type of the "targets" service "List targets" endpoint HTTP response body.
type ResourceGroupResponse ¶
type ResourceGroupResponse struct { // Name of the resource group Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Column names of the resource group in the order that should be rendered Attributes []string `form:"attributes,omitempty" json:"attributes,omitempty" xml:"attributes,omitempty"` // List containing the resource rows as hashmap Resources []map[string]string `form:"resources,omitempty" json:"resources,omitempty" xml:"resources,omitempty"` }
ResourceGroupResponse is used to define fields on response body types.
type ResourceGroupResponseBody ¶
type ResourceGroupResponseBody struct { // Name of the resource group Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Column names of the resource group in the order that should be rendered Attributes []string `form:"attributes,omitempty" json:"attributes,omitempty" xml:"attributes,omitempty"` // List containing the resource rows as hashmap Resources []map[string]string `form:"resources,omitempty" json:"resources,omitempty" xml:"resources,omitempty"` }
ResourceGroupResponseBody is used to define fields on response body types.
type SourcewithnotargetResponse ¶
type SourcewithnotargetResponse struct { // Source ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Source name Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Source component Component *string `form:"component,omitempty" json:"component,omitempty" xml:"component,omitempty"` // Source instance Instance *string `form:"instance,omitempty" json:"instance,omitempty" xml:"instance,omitempty"` // Source options Options *string `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"` // Time on which the source scanned the target Time *string `form:"time,omitempty" json:"time,omitempty" xml:"time,omitempty"` }
SourcewithnotargetResponse is used to define fields on response body types.
type SourcewithnotargetResponseBody ¶
type SourcewithnotargetResponseBody struct { // Source ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Source name Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Source component Component *string `form:"component,omitempty" json:"component,omitempty" xml:"component,omitempty"` // Source instance Instance *string `form:"instance,omitempty" json:"instance,omitempty" xml:"instance,omitempty"` // Source options Options *string `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"` // Time on which the source scanned the target Time *string `form:"time,omitempty" json:"time,omitempty" xml:"time,omitempty"` }
SourcewithnotargetResponseBody is used to define fields on response body types.
type TargetResponse ¶
type TargetResponse struct { // Target ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Target identifier Identifier *string `form:"identifier,omitempty" json:"identifier,omitempty" xml:"identifier,omitempty"` // List of teams associated with target Teams []string `form:"teams,omitempty" json:"teams,omitempty" xml:"teams,omitempty"` }
TargetResponse is used to define fields on response body types.
type TargetResponseBody ¶
type TargetResponseBody struct { // Target ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Target identifier Identifier *string `form:"identifier,omitempty" json:"identifier,omitempty" xml:"identifier,omitempty"` // List of teams associated with target Teams []string `form:"teams,omitempty" json:"teams,omitempty" xml:"teams,omitempty"` }
TargetResponseBody is used to define fields on response body types.
type TargetSummaryResponse ¶
type TargetSummaryResponse struct { // Target ID TargetID *string `form:"target_id,omitempty" json:"target_id,omitempty" xml:"target_id,omitempty"` // Target identifier Identifier *string `form:"identifier,omitempty" json:"identifier,omitempty" xml:"identifier,omitempty"` // Number of findings for target FindingsCount *int `form:"findings_count,omitempty" json:"findings_count,omitempty" xml:"findings_count,omitempty"` // Number of issues for target IssuesCount *int `form:"issues_count,omitempty" json:"issues_count,omitempty" xml:"issues_count,omitempty"` // Max score for target MaxScore *float32 `form:"max_score,omitempty" json:"max_score,omitempty" xml:"max_score,omitempty"` }
TargetSummaryResponse is used to define fields on response body types.
type TargetsSummaryResponseBody ¶
type TargetsSummaryResponseBody []*TargetSummaryResponse
TargetsSummaryResponseBody is the type of the "targets" service "Targets summary" endpoint HTTP response body.