package
0.0.0-20231012143342-a98e7bc7e75b
Repository: https://github.com/grafeas/client-go.git
Documentation: pkg.go.dev
# README
Go API client for grafeas
An API to insert and retrieve annotations on cloud artifacts.
Overview
This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.
- API version: v1alpha1
- Package version: v1alpha1
- Build package: io.swagger.codegen.languages.GoClientCodegen
Installation
Put the package under your project folder and add the following in import:
import "./grafeas"
Documentation for API Endpoints
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
GrafeasApi | CreateNote | Post /v1alpha1/{parent}/notes | Creates a new `Note`. |
GrafeasApi | CreateOccurrence | Post /v1alpha1/{parent}/occurrences | Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource. |
GrafeasApi | CreateOperation | Post /v1alpha1/{parent}/operations | Creates a new `Operation`. |
GrafeasApi | GetOccurrenceNote | Get /v1alpha1/{name}/notes | Gets the `Note` attached to the given `Occurrence`. |
GrafeasApi | ListNoteOccurrences | Get /v1alpha1/{name}/occurrences | Lists `Occurrences` referencing the specified `Note`. Use this method to get all occurrences referencing your `Note` across all your customer projects. |
GrafeasApi | ListNotes | Get /v1alpha1/{parent}/notes | Lists all `Notes` for a given project. |
GrafeasApi | ListOccurrences | Get /v1alpha1/{parent}/occurrences | Lists active `Occurrences` for a given project matching the filters. |
GrafeasApi | UpdateNote | Patch /v1alpha1/{name} | Updates an existing `Note`. |
GrafeasProjectsApi | CreateProject | Post /v1alpha1/projects | Creates a new `Project`. |
GrafeasProjectsApi | DeleteProject | Delete /v1alpha1/{name} | Deletes the given `Project` from the system. |
GrafeasProjectsApi | GetProject | Get /v1alpha1/{name} | Returns the requested `Project`. |
GrafeasProjectsApi | ListProjects | Get /v1alpha1/projects | Lists `Projects` |
Documentation For Models
- ApiAliasContext
- ApiAliasContextKind
- ApiArtifact
- ApiBuildDetails
- ApiBuildProvenance
- ApiBuildSignature
- ApiBuildType
- ApiCloudRepoSourceContext
- ApiCommand
- ApiCreateOperationRequest
- ApiDeployable
- ApiDiscovery
- ApiFileHashes
- ApiGerritSourceContext
- ApiGitSourceContext
- ApiHash
- ApiListNoteOccurrencesResponse
- ApiListNotesResponse
- ApiListOccurrencesResponse
- ApiListProjectsResponse
- ApiNote
- ApiNoteKind
- ApiOccurrence
- ApiPackageManagerLocation
- ApiPgpSignedAttestation
- ApiProject
- ApiProjectRepoId
- ApiRepoId
- ApiRepoSource
- ApiSource
- ApiSourceContext
- ApiStorageSource
- ApiUpdateOperationRequest
- ApiVulnerabilityType
- AttestationAuthorityAttestationDetails
- BuildSignatureKeyType
- DeployableDeploymentDetails
- DeploymentDetailsPlatform
- DiscoveryDiscoveredDetails
- DockerImageBasis
- DockerImageDerivedDetails
- DockerImageFingerprint
- DockerImageLayer
- HashHashType
- LayerDirective
- LongrunningOperation
- NoteRelatedUrl
- PackageManagerArchitecture
- PackageManagerDistribution
- PackageManagerInstallationDetails
- PackageManagerPackage
- PgpSignedAttestationContentType
- ProtobufAny
- ProtobufEmpty
- ProtobufFieldMask
- RpcStatus
- VersionVersionKind
- VulnerabilityTypeDetail
- VulnerabilityTypePackageIssue
- VulnerabilityTypeSeverity
- VulnerabilityTypeVersion
- VulnerabilityTypeVulnerabilityDetails
- VulnerabilityTypeVulnerabilityLocation
Documentation For Authorization
Endpoints do not require authorization.