/go-anchore

Go API for anchore-engine, created by Swagger

Primary LanguageGo

Go API client for swagger

This is the Anchore Engine API. Provides the primary external API for users of the service.

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: 0.1.5
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.GoClientCodegen

Installation

Put the package under your project folder and add the following in import:

    "./swagger"

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
CatalogApi AddRepository Post /repositories Add repository to watch
CatalogApi GetSystemFeeds Get /system/feeds list feeds operations and information
CatalogApi GetSystemPruneCandidates Get /system/prune/{resourcetype} Get list of candidates for pruning
CatalogApi GetSystemPruneResourcetypes Get /system/prune Get list of resources that can be pruned
CatalogApi PostSystemFeeds Post /system/feeds trigger feeds operations
CatalogApi PostSystemPruneCandidates Post /system/prune/{resourcetype} Perform pruning on input resource name
DefaultApi Ping Get /
ImageContentApi GetImageContentByType Get /images/{imageDigest}/content/{ctype} Get the content of an image by type
ImageContentApi GetImageContentByTypeImageId Get /images/by_id/{imageId}/content/{ctype} Get the content of an image by type
ImageContentApi ListImageContent Get /images/{imageDigest}/content List image content types
ImageContentApi ListImageContentByImageid Get /images/by_id/{imageId}/content List image content types
ImageTagsApi ListImagetags Get /summaries/imagetags List all visible image digests and tags
ImagesApi AddImage Post /images Submit a new image for analysis by the engine
ImagesApi DeleteImage Delete /images/{imageDigest} Delete an image analysis
ImagesApi DeleteImageByImageId Delete /images/by_id/{imageId} Delete image by docker imageId
ImagesApi GetImage Get /images/{imageDigest} Get image metadata
ImagesApi GetImageByImageId Get /images/by_id/{imageId} Lookup image by docker imageId
ImagesApi GetImageContentByType Get /images/{imageDigest}/content/{ctype} Get the content of an image by type
ImagesApi GetImageContentByTypeImageId Get /images/by_id/{imageId}/content/{ctype} Get the content of an image by type
ImagesApi GetImagePolicyCheck Get /images/{imageDigest}/check Check policy evaluation status for image
ImagesApi GetImagePolicyCheckByImageId Get /images/by_id/{imageId}/check Check policy evaluation status for image
ImagesApi GetImageVulnerabilitiesByType Get /images/{imageDigest}/vuln/{vtype} Get vulnerabilities by type
ImagesApi GetImageVulnerabilitiesByTypeImageId Get /images/by_id/{imageId}/vuln/{vtype} Get vulnerabilities by type
ImagesApi GetImageVulnerabilityTypes Get /images/{imageDigest}/vuln Get vulnerability types
ImagesApi GetImageVulnerabilityTypesByImageId Get /images/by_id/{imageId}/vuln Get vulnerability types
ImagesApi ImportImage Post /imageimport Import and image analysis directly
ImagesApi ListImageContent Get /images/{imageDigest}/content List image content types
ImagesApi ListImageContentByImageid Get /images/by_id/{imageId}/content List image content types
ImagesApi ListImages Get /images List all visible images
PoliciesApi AddPolicy Post /policies Add a new policy
PoliciesApi DeletePolicy Delete /policies/{policyId} Delete policy
PoliciesApi GetPolicy Get /policies/{policyId} Get specific policy
PoliciesApi ListPolicies Get /policies List policies
PoliciesApi UpdatePolicy Put /policies/{policyId} Update policy
PolicyApi DescribePolicy Get /system/policy_spec Describe the policy language spec implemented by this service.
PolicyEvaluationApi GetImagePolicyCheck Get /images/{imageDigest}/check Check policy evaluation status for image
PolicyEvaluationApi GetImagePolicyCheckByImageId Get /images/by_id/{imageId}/check Check policy evaluation status for image
RegistriesApi CreateRegistry Post /registries Add a new registry
RegistriesApi DeleteRegistry Delete /registries/{registry} Delete a registry configuration
RegistriesApi GetRegistry Get /registries/{registry} Get a specific registry configuration
RegistriesApi ListRegistries Get /registries List configured registries
RegistriesApi UpdateRegistry Put /registries/{registry} Update/replace a registry configuration
ServicesApi DeleteService Delete /system/services/{servicename}/{hostid} Delete the service config
ServicesApi GetServicesByName Get /system/services/{servicename} Get a service configuration and state
ServicesApi GetServicesByNameAndHost Get /system/services/{servicename}/{hostid} Get service config for a specific host
ServicesApi ListServices Get /system/services List system services
SubscriptionsApi AddSubscription Post /subscriptions Add a subscription of a specific type
SubscriptionsApi DeleteSubscription Delete /subscriptions/{subscriptionId} Delete subscriptions of a specific type
SubscriptionsApi GetSubscription Get /subscriptions/{subscriptionId} Get a specific subscription set
SubscriptionsApi ListSubscriptions Get /subscriptions List all subscriptions
SubscriptionsApi UpdateSubscription Put /subscriptions/{subscriptionId} Update an existing and specific subscription
SystemApi DeleteService Delete /system/services/{servicename}/{hostid} Delete the service config
SystemApi DescribePolicy Get /system/policy_spec Describe the policy language spec implemented by this service.
SystemApi GetServiceDetail Get /system System status
SystemApi GetServicesByName Get /system/services/{servicename} Get a service configuration and state
SystemApi GetServicesByNameAndHost Get /system/services/{servicename}/{hostid} Get service config for a specific host
SystemApi GetStatus Get /status Service status
SystemApi ListServices Get /system/services List system services
VulnerabilitiesApi GetImageVulnerabilitiesByType Get /images/{imageDigest}/vuln/{vtype} Get vulnerabilities by type
VulnerabilitiesApi GetImageVulnerabilitiesByTypeImageId Get /images/by_id/{imageId}/vuln/{vtype} Get vulnerabilities by type
VulnerabilitiesApi GetImageVulnerabilityTypes Get /images/{imageDigest}/vuln Get vulnerability types
VulnerabilitiesApi GetImageVulnerabilityTypesByImageId Get /images/by_id/{imageId}/vuln Get vulnerability types

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

Example

	auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
		UserName: "username",
		Password: "password",
	})
    r, err := client.Service.Operation(auth, args)

Author

nurmi@anchore.com