server

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGetFindingByIssueTargetAndAffectedResourceRequest

func DecodeGetFindingByIssueTargetAndAffectedResourceRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)

DecodeGetFindingByIssueTargetAndAffectedResourceRequest returns a decoder for requests sent to the issues Get finding by issue, target and affected resource endpoint.

func DecodeGetIssueMTTRRequest

func DecodeGetIssueMTTRRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)

DecodeGetIssueMTTRRequest returns a decoder for requests sent to the issues Get issue MTTR endpoint.

func DecodeGetIssueRequest

func DecodeGetIssueRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)

DecodeGetIssueRequest returns a decoder for requests sent to the issues Get issue endpoint.

func DecodeIssuesSummaryRequest

func DecodeIssuesSummaryRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)

DecodeIssuesSummaryRequest returns a decoder for requests sent to the issues Issues summary endpoint.

func DecodeListFindingsByIssueRequest

func DecodeListFindingsByIssueRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)

DecodeListFindingsByIssueRequest returns a decoder for requests sent to the issues List findings by issue endpoint.

func DecodeListIssuesRequest

func DecodeListIssuesRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)

DecodeListIssuesRequest returns a decoder for requests sent to the issues List issues endpoint.

func EncodeGetFindingByIssueTargetAndAffectedResourceResponse

func EncodeGetFindingByIssueTargetAndAffectedResourceResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeGetFindingByIssueTargetAndAffectedResourceResponse returns an encoder for responses returned by the issues Get finding by issue, target and affected resource endpoint.

func EncodeGetIssueMTTRResponse

func EncodeGetIssueMTTRResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeGetIssueMTTRResponse returns an encoder for responses returned by the issues Get issue MTTR endpoint.

func EncodeGetIssueResponse

func EncodeGetIssueResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeGetIssueResponse returns an encoder for responses returned by the issues Get issue endpoint.

func EncodeIssuesSummaryResponse

func EncodeIssuesSummaryResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeIssuesSummaryResponse returns an encoder for responses returned by the issues Issues summary endpoint.

func EncodeListFindingsByIssueResponse

func EncodeListFindingsByIssueResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeListFindingsByIssueResponse returns an encoder for responses returned by the issues List findings by issue endpoint.

func EncodeListIssuesResponse

func EncodeListIssuesResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeListIssuesResponse returns an encoder for responses returned by the issues List issues endpoint.

func GetFindingByIssueTargetAndAffectedResourceIssuesPath

func GetFindingByIssueTargetAndAffectedResourceIssuesPath(issueID string, targetID string, resource string) string

GetFindingByIssueTargetAndAffectedResourceIssuesPath returns the URL path to the issues service Get finding by issue, target and affected resource HTTP endpoint.

func GetIssueIssuesPath

func GetIssueIssuesPath(id string) string

GetIssueIssuesPath returns the URL path to the issues service Get issue HTTP endpoint.

func GetIssueMTTRIssuesPath

func GetIssueMTTRIssuesPath(id string) string

GetIssueMTTRIssuesPath returns the URL path to the issues service Get issue MTTR HTTP endpoint.

func IssuesSummaryIssuesPath

func IssuesSummaryIssuesPath() string

IssuesSummaryIssuesPath returns the URL path to the issues service Issues summary HTTP endpoint.

func ListFindingsByIssueIssuesPath

func ListFindingsByIssueIssuesPath(id string) string

ListFindingsByIssueIssuesPath returns the URL path to the issues service List findings by issue HTTP endpoint.

func ListIssuesIssuesPath

func ListIssuesIssuesPath() string

ListIssuesIssuesPath returns the URL path to the issues service List issues HTTP endpoint.

func Mount

func Mount(mux goahttp.Muxer, h *Server)

Mount configures the mux to serve the issues endpoints.

func MountGetFindingByIssueTargetAndAffectedResourceHandler

func MountGetFindingByIssueTargetAndAffectedResourceHandler(mux goahttp.Muxer, h http.Handler)

MountGetFindingByIssueTargetAndAffectedResourceHandler configures the mux to serve the "issues" service "Get finding by issue, target and affected resource" endpoint.

func MountGetIssueHandler

func MountGetIssueHandler(mux goahttp.Muxer, h http.Handler)

MountGetIssueHandler configures the mux to serve the "issues" service "Get issue" endpoint.

func MountGetIssueMTTRHandler

func MountGetIssueMTTRHandler(mux goahttp.Muxer, h http.Handler)

MountGetIssueMTTRHandler configures the mux to serve the "issues" service "Get issue MTTR" endpoint.

func MountIssuesSummaryHandler

func MountIssuesSummaryHandler(mux goahttp.Muxer, h http.Handler)

MountIssuesSummaryHandler configures the mux to serve the "issues" service "Issues summary" endpoint.

func MountListFindingsByIssueHandler

func MountListFindingsByIssueHandler(mux goahttp.Muxer, h http.Handler)

MountListFindingsByIssueHandler configures the mux to serve the "issues" service "List findings by issue" endpoint.

func MountListIssuesHandler

func MountListIssuesHandler(mux goahttp.Muxer, h http.Handler)

MountListIssuesHandler configures the mux to serve the "issues" service "List issues" endpoint.

func NewGetFindingByIssueTargetAndAffectedResourceHandler

func NewGetFindingByIssueTargetAndAffectedResourceHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewGetFindingByIssueTargetAndAffectedResourceHandler creates a HTTP handler which loads the HTTP request and calls the "issues" service "Get finding by issue, target and affected resource" endpoint.

func NewGetFindingByIssueTargetAndAffectedResourcePayload

func NewGetFindingByIssueTargetAndAffectedResourcePayload(issueID string, targetID string, resource string) *issues.GetFindingByIssueTargetAndAffectedResourcePayload

NewGetFindingByIssueTargetAndAffectedResourcePayload builds a issues service Get finding by issue, target and affected resource endpoint payload.

func NewGetIssueHandler

func NewGetIssueHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewGetIssueHandler creates a HTTP handler which loads the HTTP request and calls the "issues" service "Get issue" endpoint.

func NewGetIssueMTTRHandler

func NewGetIssueMTTRHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewGetIssueMTTRHandler creates a HTTP handler which loads the HTTP request and calls the "issues" service "Get issue MTTR" endpoint.

func NewGetIssueMTTRPayload

func NewGetIssueMTTRPayload(id string) *issues.GetIssueMTTRPayload

NewGetIssueMTTRPayload builds a issues service Get issue MTTR endpoint payload.

func NewGetIssuePayload

func NewGetIssuePayload(id string) *issues.GetIssuePayload

NewGetIssuePayload builds a issues service Get issue endpoint payload.

func NewIssuesSummaryHandler

func NewIssuesSummaryHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewIssuesSummaryHandler creates a HTTP handler which loads the HTTP request and calls the "issues" service "Issues summary" endpoint.

func NewIssuesSummaryPayload

func NewIssuesSummaryPayload(team *string, teams *string, status *string, sortBy *string, page *int, size *int, identifiers *string, labels *string) *issues.IssuesSummaryPayload

NewIssuesSummaryPayload builds a issues service Issues summary endpoint payload.

func NewListFindingsByIssueHandler

func NewListFindingsByIssueHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewListFindingsByIssueHandler creates a HTTP handler which loads the HTTP request and calls the "issues" service "List findings by issue" endpoint.

func NewListFindingsByIssuePayload

func NewListFindingsByIssuePayload(id string, status *string, sortBy *string, page *int, size *int, identifiers *string, labels *string) *issues.ListFindingsByIssuePayload

NewListFindingsByIssuePayload builds a issues service List findings by issue endpoint payload.

func NewListIssuesHandler

func NewListIssuesHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewListIssuesHandler creates a HTTP handler which loads the HTTP request and calls the "issues" service "List issues" endpoint.

func NewListIssuesPayload

func NewListIssuesPayload(page *int, size *int) *issues.ListIssuesPayload

NewListIssuesPayload builds a issues service List issues endpoint payload.

Types

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 FindingResponseCollection

type FindingResponseCollection []*FindingResponse

FindingResponseCollection is the type of the "issues" service "List findings by issue" endpoint HTTP response body.

func NewFindingResponseCollection

func NewFindingResponseCollection(res issuesviews.FindingCollectionView) FindingResponseCollection

NewFindingResponseCollection builds the HTTP response body from the result of the "List findings by issue" endpoint of the "issues" service.

type GetFindingByIssueTargetAndAffectedResourceResponseBody

type GetFindingByIssueTargetAndAffectedResourceResponseBody 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"`
}

GetFindingByIssueTargetAndAffectedResourceResponseBody is the type of the "issues" service "Get finding by issue, target and affected resource" endpoint HTTP response body.

func NewGetFindingByIssueTargetAndAffectedResourceResponseBody

func NewGetFindingByIssueTargetAndAffectedResourceResponseBody(res *issuesviews.FindingView) *GetFindingByIssueTargetAndAffectedResourceResponseBody

NewGetFindingByIssueTargetAndAffectedResourceResponseBody builds the HTTP response body from the result of the "Get finding by issue, target and affected resource" endpoint of the "issues" service.

type GetIssueResponseBody

type GetIssueResponseBody 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"`
}

GetIssueResponseBody is the type of the "issues" service "Get issue" endpoint HTTP response body.

func NewGetIssueResponseBody

func NewGetIssueResponseBody(res *issuesviews.IssueView) *GetIssueResponseBody

NewGetIssueResponseBody builds the HTTP response body from the result of the "Get issue" endpoint of the "issues" service.

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 IssueResponseCollection

type IssueResponseCollection []*IssueResponse

IssueResponseCollection is the type of the "issues" service "List issues" endpoint HTTP response body.

func NewIssueResponseCollection

func NewIssueResponseCollection(res issuesviews.IssueCollectionView) IssueResponseCollection

NewIssueResponseCollection builds the HTTP response body from the result of the "List issues" endpoint of the "issues" service.

type IssueSummaryResponse

type IssueSummaryResponse struct {
	// Issue ID
	IssueID *string `form:"issue_id,omitempty" json:"issue_id,omitempty" xml:"issue_id,omitempty"`
	// Issue summary
	Summary *string `form:"summary,omitempty" json:"summary,omitempty" xml:"summary,omitempty"`
	// Number of affected targets for issue
	TargetsCount *int `form:"targets_count,omitempty" json:"targets_count,omitempty" xml:"targets_count,omitempty"`
	// Number of affected resources for issue
	ResourcesCount *int `form:"resources_count,omitempty" json:"resources_count,omitempty" xml:"resources_count,omitempty"`
	// Max score for issue
	MaxScore *float32 `form:"max_score,omitempty" json:"max_score,omitempty" xml:"max_score,omitempty"`
}

IssueSummaryResponse is used to define fields on response body types.

type IssueSummaryResponseCollection

type IssueSummaryResponseCollection []*IssueSummaryResponse

IssueSummaryResponseCollection is the type of the "issues" service "Issues summary" endpoint HTTP response body.

func NewIssueSummaryResponseCollection

func NewIssueSummaryResponseCollection(res issuesviews.IssueSummaryCollectionView) IssueSummaryResponseCollection

NewIssueSummaryResponseCollection builds the HTTP response body from the result of the "Issues summary" endpoint of the "issues" service.

type MountPoint

type MountPoint struct {
	// Method is the name of the service method served by the mounted HTTP handler.
	Method string
	// Verb is the HTTP method used to match requests to the mounted handler.
	Verb string
	// Pattern is the HTTP request path pattern used to match requests to the
	// mounted handler.
	Pattern string
}

MountPoint holds information about the mounted endpoints.

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 Server

type Server struct {
	Mounts                                     []*MountPoint
	ListIssues                                 http.Handler
	IssuesSummary                              http.Handler
	GetIssue                                   http.Handler
	ListFindingsByIssue                        http.Handler
	GetFindingByIssueTargetAndAffectedResource http.Handler
	GetIssueMTTR                               http.Handler
}

Server lists the issues service endpoint HTTP handlers.

func New

func New(
	e *issues.Endpoints,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) *Server

New instantiates HTTP handlers for all the issues service endpoints using the provided encoder and decoder. The handlers are mounted on the given mux using the HTTP verb and path defined in the design. errhandler is called whenever a response fails to be encoded. formatter is used to format errors returned by the service methods prior to encoding. Both errhandler and formatter are optional and can be nil.

func (*Server) MethodNames added in v1.1.14

func (s *Server) MethodNames() []string

MethodNames returns the methods served.

func (*Server) Mount added in v1.1.14

func (s *Server) Mount(mux goahttp.Muxer)

Mount configures the mux to serve the issues endpoints.

func (*Server) Service

func (s *Server) Service() string

Service returns the name of the service served.

func (*Server) Use

func (s *Server) Use(m func(http.Handler) http.Handler)

Use wraps the server handlers with the given middleware.

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.

Jump to

Keyboard shortcuts

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