Skip to content

Latest commit

 

History

History
247 lines (136 loc) · 6.23 KB

DefaultApi.md

File metadata and controls

247 lines (136 loc) · 6.23 KB

\DefaultApi

All URIs are relative to http://localhost

Method HTTP request Description
GetOauthToken Post /oauth/token
HealthCheck Get /health
ListFileContentSearchResults Get /images/{imageDigest}/artifacts/file_content_search Return a list of analyzer artifacts of the specified type
ListRetrievedFiles Get /images/{imageDigest}/artifacts/retrieved_files Return a list of analyzer artifacts of the specified type
ListSecretSearchResults Get /images/{imageDigest}/artifacts/secret_search Return a list of analyzer artifacts of the specified type
Ping Get /
VersionCheck Get /version

GetOauthToken

TokenResponse GetOauthToken(ctx, optional)

Request a jwt token for subsequent operations, this request is authenticated with normal HTTP auth

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *GetOauthTokenOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GetOauthTokenOpts struct

Name Type Description Notes
grantType optional.String OAuth Grant type for token [default to password]
username optional.String User to assign OAuth token to
password optional.String Password for corresponding user
clientId optional.String The type of client used for the OAuth token [default to anonymous]

Return type

TokenResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

HealthCheck

HealthCheck(ctx, )

Health check, returns 200 and no body if service is running

Required Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListFileContentSearchResults

[]FileContentSearchResult ListFileContentSearchResults(ctx, imageDigest)

Return a list of analyzer artifacts of the specified type

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
imageDigest string

Return type

[]FileContentSearchResult

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListRetrievedFiles

[]RetrievedFile ListRetrievedFiles(ctx, imageDigest)

Return a list of analyzer artifacts of the specified type

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
imageDigest string

Return type

[]RetrievedFile

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListSecretSearchResults

[]SecretSearchResult ListSecretSearchResults(ctx, imageDigest)

Return a list of analyzer artifacts of the specified type

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
imageDigest string

Return type

[]SecretSearchResult

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

Ping

string Ping(ctx, )

Simple status check

Required Parameters

This endpoint does not need any parameter.

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

VersionCheck

ServiceVersion VersionCheck(ctx, )

Returns the version object for the service, including db schema version info

Required Parameters

This endpoint does not need any parameter.

Return type

ServiceVersion

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]