Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion pkg/api/escape/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func ListAssets(ctx context.Context, next string, filters *ListAssetsFilters) ([
}

// GetAsset gets an asset by ID
func GetAsset(ctx context.Context, id string) (*v3.AssetDetailed, error) {
func GetAsset(ctx context.Context, id string) (*v3.GetAsset200Response, error) {
client, err := newAPIV3Client()
if err != nil {
return nil, fmt.Errorf("unable to init client: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/escape/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type ListIssuesFilters struct {
}

// GetIssue gets an issue by ID
func GetIssue(ctx context.Context, issueID string) (*v3.IssueDetailed, error) {
func GetIssue(ctx context.Context, issueID string) (*v3.GetIssue200Response, error) {
client, err := newAPIV3Client()
if err != nil {
return nil, fmt.Errorf("unable to init client: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/escape/locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func ListLocations(ctx context.Context, next string, filters *ListLocationsFilte
}

// GetLocation gets a location by ID
func GetLocation(ctx context.Context, id string) (*v3.LocationDetailed, error) {
func GetLocation(ctx context.Context, id string) (*v3.CreateLocation200Response, error) {
client, err := newAPIV3Client()
if err != nil {
return nil, fmt.Errorf("unable to init client: %w", err)
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/escape/scan_watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ const (
)

// WatchScan watches scans status and logs
func WatchScan(ctx context.Context, scanID string) (chan *v3.ScanDetailed1, error) {
func WatchScan(ctx context.Context, scanID string) (chan *v3.StartScan200Response, error) {
client, err := newAPIV3Client()
if err != nil {
return nil, fmt.Errorf("unable to init client: %w", err)
}
ch := make(chan *v3.ScanDetailed1)
ch := make(chan *v3.StartScan200Response)
go func() {
defer close(ch)
tries := 0
Expand Down
6 changes: 3 additions & 3 deletions pkg/api/escape/scans.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type ListScansFilters struct {
}

// ListScans lists all scans for an application
func ListScans(ctx context.Context, next string, filters *ListScansFilters) ([]v3.ScanSummarized1, *string, error) {
func ListScans(ctx context.Context, next string, filters *ListScansFilters) ([]v3.ScanSummarized2, *string, error) {
client, err := newAPIV3Client()
if err != nil {
return nil, nil, fmt.Errorf("unable to init client: %w", err)
Expand Down Expand Up @@ -66,7 +66,7 @@ func ListScans(ctx context.Context, next string, filters *ListScansFilters) ([]v
}

// GetScan returns a scan by its ID
func GetScan(ctx context.Context, scanID string) (*v3.ScanDetailed1, error) {
func GetScan(ctx context.Context, scanID string) (*v3.StartScan200Response, error) {
client, err := newAPIV3Client()
if err != nil {
return nil, fmt.Errorf("unable to init client: %w", err)
Expand Down Expand Up @@ -110,7 +110,7 @@ func StartScan(
configurationOverride map[string]interface{},
additionalProperties map[string]interface{},
initiator v3.ENUMPROPERTIESDATAITEMSPROPERTIESINITIATORSITEMS,
) (*v3.ScanDetailed1, error) {
) (*v3.StartScan200Response, error) {
client, err := newAPIV3Client()
if err != nil {
return nil, fmt.Errorf("unable to init client: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/escape/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func ListTags(ctx context.Context) ([]v3.TagDetail, error) {
}

// CreateTag creates a tag
func CreateTag(ctx context.Context, name string, color string) (*v3.TagDetail, error) {
func CreateTag(ctx context.Context, name string, color string) (*v3.CreateTag200Response, error) {
client, err := newAPIV3Client()
if err != nil {
return nil, fmt.Errorf("unable to init client: %w", err)
Expand Down
Loading