Categorygithub.com/ocibuilder/gofeas
repositorypackage
1.0.0
Repository: https://github.com/ocibuilder/gofeas.git
Documentation: pkg.go.dev

# README

Go API client for Grafeas

This is a heavily modified and working fork of the generated Swagger go client, adapted to follow the OpenApi specification as recorded here. It also provides the client as a mockable interface and removes unnecessary complexity of the original.

This is a client library for the Grafeas API in Go, generated by Swagger Codegen.

Overview

  • API version: v1beta1
  • Package version: 0.1.0
  • Build package: io.swagger.codegen.languages.GoClientCodegen

Installation

go get github.com/ocibuilder/gofeas

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
GrafeasV1Beta1ApiBatchCreateNotesPost /v1beta1/{parent=projects/*}/notes:batchCreateCreates new notes in batch.
GrafeasV1Beta1ApiBatchCreateOccurrencesPost /v1beta1/{parent=projects/*}/occurrences:batchCreateCreates new occurrences in batch.
GrafeasV1Beta1ApiCreateNotePost /v1beta1/{parent=projects/*}/notesCreates a new note.
GrafeasV1Beta1ApiCreateOccurrencePost /v1beta1/{parent=projects/*}/occurrencesCreates a new occurrence.
GrafeasV1Beta1ApiDeleteNoteDelete /v1beta1/{name=projects//notes/}Deletes the specified note.
GrafeasV1Beta1ApiDeleteOccurrenceDelete /v1beta1/{name=projects//occurrences/}Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.
GrafeasV1Beta1ApiGetNoteGet /v1beta1/{name=projects//notes/}Gets the specified note.
GrafeasV1Beta1ApiGetOccurrenceGet /v1beta1/{name=projects//occurrences/}Gets the specified occurrence.
GrafeasV1Beta1ApiGetOccurrenceNoteGet /v1beta1/{name=projects//occurrences/}/notesGets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
GrafeasV1Beta1ApiGetVulnerabilityOccurrencesSummaryGet /v1beta1/{parent=projects/*}/occurrences:vulnerabilitySummaryGets a summary of the number and severity of occurrences.
GrafeasV1Beta1ApiListNoteOccurrencesGet /v1beta1/{name=projects//notes/}/occurrencesLists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.
GrafeasV1Beta1ApiListNotesGet /v1beta1/{parent=projects/*}/notesLists notes for the specified project.
GrafeasV1Beta1ApiListOccurrencesGet /v1beta1/{parent=projects/*}/occurrencesLists occurrences for the specified project.
GrafeasV1Beta1ApiUpdateNotePatch /v1beta1/{name=projects//notes/}Updates the specified note.
GrafeasV1Beta1ApiUpdateOccurrencePatch /v1beta1/{name=projects//occurrences/}Updates the specified occurrence.

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Grafeas authors.