Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AccessCredential
- type Account
- type AccountCreationRequest
- type AccountStatus
- type AddImageOpts
- type AddPolicyOpts
- type AddRepositoryOpts
- type AddSubscriptionOpts
- type AnalysisArchiveAddResult
- type AnalysisArchiveRulesSummary
- type AnalysisArchiveSource
- type AnalysisArchiveSummary
- type AnalysisArchiveTransitionHistory
- type AnalysisArchiveTransitionRule
- type AnalysisArchiveTransitionRuleExclude
- type AnalysisUpdateEval
- type AnalysisUpdateNotification
- type AnalysisUpdateNotificationAllOf
- type AnalysisUpdateNotificationData
- type AnalysisUpdateNotificationDataAllOf
- type AnalysisUpdateNotificationPayload
- type AnalysisUpdateNotificationPayloadAllOf
- type AnchoreErrorCode
- type AnchoreImage
- type AnchoreImageTagSummary
- type ApiErrorResponse
- type ArchiveSummary
- type ArchivedAnalysis
- type ArchivesApiService
- func (a *ArchivesApiService) ArchiveImageAnalysis(ctx _context.Context, imageReferences []string) ([]AnalysisArchiveAddResult, *_nethttp.Response, error)
- func (a *ArchivesApiService) CreateAnalysisArchiveRule(ctx _context.Context, rule AnalysisArchiveTransitionRule) (AnalysisArchiveTransitionRule, *_nethttp.Response, error)
- func (a *ArchivesApiService) DeleteAnalysisArchiveRule(ctx _context.Context, ruleId string) (AnalysisArchiveTransitionRule, *_nethttp.Response, error)
- func (a *ArchivesApiService) DeleteArchivedAnalysis(ctx _context.Context, imageDigest string, ...) (ArchivedAnalysis, *_nethttp.Response, error)
- func (a *ArchivesApiService) GetAnalysisArchiveRule(ctx _context.Context, ruleId string) (AnalysisArchiveTransitionRule, *_nethttp.Response, error)
- func (a *ArchivesApiService) GetArchivedAnalysis(ctx _context.Context, imageDigest string) (ArchivedAnalysis, *_nethttp.Response, error)
- func (a *ArchivesApiService) ListAnalysisArchive(ctx _context.Context) ([]ArchivedAnalysis, *_nethttp.Response, error)
- func (a *ArchivesApiService) ListAnalysisArchiveRules(ctx _context.Context, localVarOptionals *ListAnalysisArchiveRulesOpts) ([]AnalysisArchiveTransitionRule, *_nethttp.Response, error)
- func (a *ArchivesApiService) ListArchives(ctx _context.Context) (ArchiveSummary, *_nethttp.Response, error)
- type BaseNotificationData
- type BasicAuth
- type Configuration
- type ContentFilesResponse
- type ContentFilesResponseContent
- type ContentJavaPackageResponse
- type ContentJavaPackageResponseContent
- type ContentMalwareResponse
- type ContentPackageResponse
- type ContentPackageResponseContent
- type ContentResponse
- type CreateRegistryOpts
- type Cvssv2Scores
- type Cvssv3Scores
- type DefaultApiService
- func (a *DefaultApiService) GetOauthToken(ctx _context.Context, localVarOptionals *GetOauthTokenOpts) (TokenResponse, *_nethttp.Response, error)
- func (a *DefaultApiService) HealthCheck(ctx _context.Context) (*_nethttp.Response, error)
- func (a *DefaultApiService) ListFileContentSearchResults(ctx _context.Context, imageDigest string) ([]FileContentSearchResult, *_nethttp.Response, error)
- func (a *DefaultApiService) ListRetrievedFiles(ctx _context.Context, imageDigest string) ([]RetrievedFile, *_nethttp.Response, error)
- func (a *DefaultApiService) ListSecretSearchResults(ctx _context.Context, imageDigest string) ([]SecretSearchResult, *_nethttp.Response, error)
- func (a *DefaultApiService) Ping(ctx _context.Context) (string, *_nethttp.Response, error)
- func (a *DefaultApiService) VersionCheck(ctx _context.Context) (ServiceVersion, *_nethttp.Response, error)
- type DeleteArchivedAnalysisOpts
- type DeleteEventOpts
- type DeleteEventsOpts
- type DeleteImageByImageIdOpts
- type DeleteImageOpts
- type DeleteImageResponse
- type DeleteImagesAsyncOpts
- type DeletePolicyOpts
- type DeleteRegistryOpts
- type DeleteSubscriptionOpts
- type EventCategory
- type EventDescription
- type EventResponse
- type EventResponseEvent
- type EventResponseEventResource
- type EventResponseEventSource
- type EventSubcategory
- type EventsApiService
- func (a *EventsApiService) DeleteEvent(ctx _context.Context, eventId string, localVarOptionals *DeleteEventOpts) (*_nethttp.Response, error)
- func (a *EventsApiService) DeleteEvents(ctx _context.Context, localVarOptionals *DeleteEventsOpts) ([]string, *_nethttp.Response, error)
- func (a *EventsApiService) GetEvent(ctx _context.Context, eventId string, localVarOptionals *GetEventOpts) (EventResponse, *_nethttp.Response, error)
- func (a *EventsApiService) ListEventTypes(ctx _context.Context) ([]EventCategory, *_nethttp.Response, error)
- func (a *EventsApiService) ListEvents(ctx _context.Context, localVarOptionals *ListEventsOpts) (EventsList, *_nethttp.Response, error)
- type EventsList
- type FeedGroupMetadata
- type FeedMetadata
- type FeedSyncResult
- type FileContentSearchResult
- type GateSpec
- type GenericNotificationPayload
- type GenericOpenAPIError
- type GetEventOpts
- type GetImageByImageIdOpts
- type GetImageContentByTypeFilesOpts
- type GetImageContentByTypeImageIdFilesOpts
- type GetImageContentByTypeImageIdJavapackageOpts
- type GetImageContentByTypeImageIdOpts
- type GetImageContentByTypeJavapackageOpts
- type GetImageContentByTypeMalwareOpts
- type GetImageContentByTypeOpts
- type GetImageMetadataByTypeOpts
- type GetImageOpts
- type GetImagePolicyCheckByImageIdOpts
- type GetImagePolicyCheckOpts
- type GetImageVulnerabilitiesByTypeImageIdOpts
- type GetImageVulnerabilitiesByTypeOpts
- type GetImageVulnerabilityTypesByImageIdOpts
- type GetImageVulnerabilityTypesOpts
- type GetOauthTokenOpts
- type GetPolicyOpts
- type GetRegistryOpts
- type GetSubscriptionOpts
- type GroupSyncResult
- type IdentityApiService
- func (a *IdentityApiService) AddCredential(ctx _context.Context, credential AccessCredential) (User, *_nethttp.Response, error)
- func (a *IdentityApiService) GetCredentials(ctx _context.Context) ([]AccessCredential, *_nethttp.Response, error)
- func (a *IdentityApiService) GetUser(ctx _context.Context) (User, *_nethttp.Response, error)
- func (a *IdentityApiService) GetUsersAccount(ctx _context.Context) (Account, *_nethttp.Response, error)
- type ImageAnalysisRequest
- type ImageDetail
- type ImageFilter
- type ImageImportContentResponse
- type ImageImportManifest
- type ImageImportOperation
- type ImagePackageManifest
- type ImageRef
- type ImageReference
- type ImageSelectionRule
- type ImageSelector
- type ImageSource
- type ImageWithPackages
- type ImagesApiService
- func (a *ImagesApiService) AddImage(ctx _context.Context, image ImageAnalysisRequest, ...) ([]AnchoreImage, *_nethttp.Response, error)
- func (a *ImagesApiService) DeleteImage(ctx _context.Context, imageDigest string, localVarOptionals *DeleteImageOpts) (DeleteImageResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) DeleteImageByImageId(ctx _context.Context, imageId string, ...) (DeleteImageResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) DeleteImagesAsync(ctx _context.Context, imageDigests []string, ...) ([]DeleteImageResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImage(ctx _context.Context, imageDigest string, localVarOptionals *GetImageOpts) ([]AnchoreImage, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageByImageId(ctx _context.Context, imageId string, localVarOptionals *GetImageByImageIdOpts) ([]AnchoreImage, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageContentByType(ctx _context.Context, imageDigest string, ctype string, ...) (ContentPackageResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageContentByTypeFiles(ctx _context.Context, imageDigest string, ...) (ContentFilesResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageContentByTypeImageId(ctx _context.Context, imageId string, ctype string, ...) (ContentPackageResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageContentByTypeImageIdFiles(ctx _context.Context, imageId string, ...) (ContentFilesResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageContentByTypeImageIdJavapackage(ctx _context.Context, imageId string, ...) (ContentJavaPackageResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageContentByTypeJavapackage(ctx _context.Context, imageDigest string, ...) (ContentJavaPackageResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageContentByTypeMalware(ctx _context.Context, imageDigest string, ...) (ContentMalwareResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageMetadataByType(ctx _context.Context, imageDigest string, mtype string, ...) (MetadataResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImagePolicyCheck(ctx _context.Context, imageDigest string, tag string, ...) ([]interface{}, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImagePolicyCheckByImageId(ctx _context.Context, imageId string, tag string, ...) ([]interface{}, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageVulnerabilitiesByType(ctx _context.Context, imageDigest string, vtype string, ...) (VulnerabilityResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageVulnerabilitiesByTypeImageId(ctx _context.Context, imageId string, vtype string, ...) (VulnerabilityResponse, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageVulnerabilityTypes(ctx _context.Context, imageDigest string, ...) ([]string, *_nethttp.Response, error)
- func (a *ImagesApiService) GetImageVulnerabilityTypesByImageId(ctx _context.Context, imageId string, ...) ([]string, *_nethttp.Response, error)
- func (a *ImagesApiService) ListImageContent(ctx _context.Context, imageDigest string, ...) ([]string, *_nethttp.Response, error)
- func (a *ImagesApiService) ListImageContentByImageid(ctx _context.Context, imageId string, ...) ([]string, *_nethttp.Response, error)
- func (a *ImagesApiService) ListImageMetadata(ctx _context.Context, imageDigest string, ...) ([]string, *_nethttp.Response, error)
- func (a *ImagesApiService) ListImages(ctx _context.Context, localVarOptionals *ListImagesOpts) ([]AnchoreImage, *_nethttp.Response, error)
- type ImportApiService
- type ImportContentDigests
- type ImportDescriptor
- type ImportDistribution
- type ImportPackage
- type ImportPackageLocation
- type ImportPackageRelationship
- type ImportSchema
- type ImportSource
- type ImportsApiService
- func (a *ImportsApiService) CreateOperation(ctx _context.Context) (ImageImportOperation, *_nethttp.Response, error)
- func (a *ImportsApiService) GetOperation(ctx _context.Context, operationId string) (ImageImportOperation, *_nethttp.Response, error)
- func (a *ImportsApiService) ImportImageConfig(ctx _context.Context, operationId string, contents interface{}) (ImageImportContentResponse, *_nethttp.Response, error)
- func (a *ImportsApiService) ImportImageDockerfile(ctx _context.Context, operationId string, contents string) (ImageImportContentResponse, *_nethttp.Response, error)
- func (a *ImportsApiService) ImportImageManifest(ctx _context.Context, operationId string, contents interface{}) (ImageImportContentResponse, *_nethttp.Response, error)
- func (a *ImportsApiService) ImportImagePackages(ctx _context.Context, operationId string, sbom ImagePackageManifest) (ImageImportContentResponse, *_nethttp.Response, error)
- func (a *ImportsApiService) ImportImageParentManifest(ctx _context.Context, operationId string, contents interface{}) (ImageImportContentResponse, *_nethttp.Response, error)
- func (a *ImportsApiService) InvalidateOperation(ctx _context.Context, operationId string) (ImageImportOperation, *_nethttp.Response, error)
- func (a *ImportsApiService) ListImportDockerfiles(ctx _context.Context, operationId string) ([]string, *_nethttp.Response, error)
- func (a *ImportsApiService) ListImportImageConfigs(ctx _context.Context, operationId string) ([]string, *_nethttp.Response, error)
- func (a *ImportsApiService) ListImportImageManifests(ctx _context.Context, operationId string) ([]string, *_nethttp.Response, error)
- func (a *ImportsApiService) ListImportPackages(ctx _context.Context, operationId string) ([]string, *_nethttp.Response, error)
- func (a *ImportsApiService) ListImportParentManifests(ctx _context.Context, operationId string) ([]string, *_nethttp.Response, error)
- func (a *ImportsApiService) ListOperations(ctx _context.Context) ([]ImageImportOperation, *_nethttp.Response, error)
- type ListAccountsOpts
- type ListAnalysisArchiveRulesOpts
- type ListEventsOpts
- type ListImageContentByImageidOpts
- type ListImageContentOpts
- type ListImageMetadataOpts
- type ListImagesOpts
- type ListImagetagsOpts
- type ListPoliciesOpts
- type ListRegistriesOpts
- type ListSubscriptionsOpts
- type LocalAnalysisSource
- type MalwareScan
- type MalwareScanFindings
- type MappingRule
- type MetadataResponse
- type NotificationBase
- type NvdDataObject
- type PackageReference
- type PaginatedImageList
- type PaginatedImageListAllOf
- type PaginatedVulnerabilityList
- type PaginatedVulnerabilityListAllOf
- type PaginatedVulnerableImageList
- type PaginatedVulnerableImageListAllOf
- type PaginationProperties
- type PoliciesApiService
- func (a *PoliciesApiService) AddPolicy(ctx _context.Context, bundle PolicyBundle, localVarOptionals *AddPolicyOpts) (PolicyBundleRecord, *_nethttp.Response, error)
- func (a *PoliciesApiService) DeletePolicy(ctx _context.Context, policyId string, localVarOptionals *DeletePolicyOpts) (*_nethttp.Response, error)
- func (a *PoliciesApiService) GetPolicy(ctx _context.Context, policyId string, localVarOptionals *GetPolicyOpts) ([]PolicyBundleRecord, *_nethttp.Response, error)
- func (a *PoliciesApiService) ListPolicies(ctx _context.Context, localVarOptionals *ListPoliciesOpts) ([]PolicyBundleRecord, *_nethttp.Response, error)
- func (a *PoliciesApiService) UpdatePolicy(ctx _context.Context, policyId string, bundle PolicyBundleRecord, ...) ([]PolicyBundleRecord, *_nethttp.Response, error)
- type Policy
- type PolicyBundle
- type PolicyBundleRecord
- type PolicyEvalNotification
- type PolicyEvalNotificationAllOf
- type PolicyEvalNotificationData
- type PolicyEvalNotificationDataAllOf
- type PolicyEvalNotificationPayload
- type PolicyEvalNotificationPayloadAllOf
- type PolicyRule
- type PolicyRuleParams
- type PostSystemFeedsOpts
- type QueryApiService
- func (a *QueryApiService) QueryImagesByPackage(ctx _context.Context, name string, localVarOptionals *QueryImagesByPackageOpts) (PaginatedImageList, *_nethttp.Response, error)
- func (a *QueryApiService) QueryImagesByVulnerability(ctx _context.Context, vulnerabilityId string, ...) (PaginatedVulnerableImageList, *_nethttp.Response, error)
- func (a *QueryApiService) QueryVulnerabilities(ctx _context.Context, id []string, localVarOptionals *QueryVulnerabilitiesOpts) (PaginatedVulnerabilityList, *_nethttp.Response, error)
- type QueryImagesByPackageOpts
- type QueryImagesByVulnerabilityOpts
- type QueryVulnerabilitiesOpts
- type RegexContentMatch
- type RegistriesApiService
- func (a *RegistriesApiService) CreateRegistry(ctx _context.Context, registrydata RegistryConfigurationRequest, ...) ([]RegistryConfiguration, *_nethttp.Response, error)
- func (a *RegistriesApiService) DeleteRegistry(ctx _context.Context, registry string, localVarOptionals *DeleteRegistryOpts) (*_nethttp.Response, error)
- func (a *RegistriesApiService) GetRegistry(ctx _context.Context, registry string, localVarOptionals *GetRegistryOpts) ([]RegistryConfiguration, *_nethttp.Response, error)
- func (a *RegistriesApiService) ListRegistries(ctx _context.Context, localVarOptionals *ListRegistriesOpts) ([]RegistryConfiguration, *_nethttp.Response, error)
- func (a *RegistriesApiService) UpdateRegistry(ctx _context.Context, registry string, ...) ([]RegistryConfiguration, *_nethttp.Response, error)
- type RegistryConfiguration
- type RegistryConfigurationRequest
- type RegistryDigestSource
- type RegistryTagSource
- type RepositoryCredentialsApiService
- type RetrievedFile
- type SecretSearchResult
- type ServerConfiguration
- type ServerVariable
- type Service
- type ServiceVersion
- type ServiceVersionApi
- type ServiceVersionDb
- type ServiceVersionService
- type StandaloneVulnerability
- type StatusResponse
- type Subscription
- type SubscriptionRequest
- type SubscriptionUpdate
- type SubscriptionsApiService
- func (a *SubscriptionsApiService) AddSubscription(ctx _context.Context, subscription SubscriptionRequest, ...) ([]Subscription, *_nethttp.Response, error)
- func (a *SubscriptionsApiService) DeleteSubscription(ctx _context.Context, subscriptionId string, ...) (*_nethttp.Response, error)
- func (a *SubscriptionsApiService) GetSubscription(ctx _context.Context, subscriptionId string, ...) ([]Subscription, *_nethttp.Response, error)
- func (a *SubscriptionsApiService) ListSubscriptions(ctx _context.Context, localVarOptionals *ListSubscriptionsOpts) ([]Subscription, *_nethttp.Response, error)
- func (a *SubscriptionsApiService) UpdateSubscription(ctx _context.Context, subscriptionId string, subscription SubscriptionUpdate, ...) ([]Subscription, *_nethttp.Response, error)
- type SummariesApiService
- type SystemApiService
- func (a *SystemApiService) DeleteFeed(ctx _context.Context, feed string) (*_nethttp.Response, error)
- func (a *SystemApiService) DeleteFeedGroup(ctx _context.Context, feed string, group string) (*_nethttp.Response, error)
- func (a *SystemApiService) DeleteService(ctx _context.Context, servicename string, hostid string) (*_nethttp.Response, error)
- func (a *SystemApiService) DescribeErrorCodes(ctx _context.Context) ([]AnchoreErrorCode, *_nethttp.Response, error)
- func (a *SystemApiService) DescribePolicy(ctx _context.Context) ([]GateSpec, *_nethttp.Response, error)
- func (a *SystemApiService) GetServiceDetail(ctx _context.Context) (SystemStatusResponse, *_nethttp.Response, error)
- func (a *SystemApiService) GetServicesByName(ctx _context.Context, servicename string) ([]Service, *_nethttp.Response, error)
- func (a *SystemApiService) GetServicesByNameAndHost(ctx _context.Context, servicename string, hostid string) ([]Service, *_nethttp.Response, error)
- func (a *SystemApiService) GetStatus(ctx _context.Context) (StatusResponse, *_nethttp.Response, error)
- func (a *SystemApiService) GetSystemFeeds(ctx _context.Context) ([]FeedMetadata, *_nethttp.Response, error)
- func (a *SystemApiService) ListServices(ctx _context.Context) ([]Service, *_nethttp.Response, error)
- func (a *SystemApiService) PostSystemFeeds(ctx _context.Context, localVarOptionals *PostSystemFeedsOpts) ([]FeedSyncResult, *_nethttp.Response, error)
- func (a *SystemApiService) TestWebhook(ctx _context.Context, webhookType string, localVarOptionals *TestWebhookOpts) (*_nethttp.Response, error)
- func (a *SystemApiService) ToggleFeedEnabled(ctx _context.Context, feed string, enabled bool) (FeedMetadata, *_nethttp.Response, error)
- func (a *SystemApiService) ToggleGroupEnabled(ctx _context.Context, feed string, group string, enabled bool) ([]FeedMetadata, *_nethttp.Response, error)
- type SystemStatusResponse
- type TagEntry
- type TagUpdateNotification
- type TagUpdateNotificationAllOf
- type TagUpdateNotificationData
- type TagUpdateNotificationDataAllOf
- type TagUpdateNotificationPayload
- type TagUpdateNotificationPayloadAllOf
- type TestWebhookOpts
- type TokenResponse
- type TriggerParamSpec
- type TriggerSpec
- type UpdatePolicyOpts
- type UpdateRegistryOpts
- type UpdateSubscriptionOpts
- type User
- type UserCreationRequest
- type UserManagementApiService
- func (a *UserManagementApiService) CreateAccount(ctx _context.Context, account AccountCreationRequest) (Account, *_nethttp.Response, error)
- func (a *UserManagementApiService) CreateUser(ctx _context.Context, accountname string, user UserCreationRequest) (User, *_nethttp.Response, error)
- func (a *UserManagementApiService) CreateUserCredential(ctx _context.Context, accountname string, username string, ...) (User, *_nethttp.Response, error)
- func (a *UserManagementApiService) DeleteAccount(ctx _context.Context, accountname string) (*_nethttp.Response, error)
- func (a *UserManagementApiService) DeleteUser(ctx _context.Context, accountname string, username string) (*_nethttp.Response, error)
- func (a *UserManagementApiService) DeleteUserCredential(ctx _context.Context, accountname string, username string, ...) (*_nethttp.Response, error)
- func (a *UserManagementApiService) GetAccount(ctx _context.Context, accountname string) (Account, *_nethttp.Response, error)
- func (a *UserManagementApiService) GetAccountUser(ctx _context.Context, accountname string, username string) (User, *_nethttp.Response, error)
- func (a *UserManagementApiService) ListAccounts(ctx _context.Context, localVarOptionals *ListAccountsOpts) ([]Account, *_nethttp.Response, error)
- func (a *UserManagementApiService) ListUserCredentials(ctx _context.Context, accountname string, username string) ([]AccessCredential, *_nethttp.Response, error)
- func (a *UserManagementApiService) ListUsers(ctx _context.Context, accountname string) ([]User, *_nethttp.Response, error)
- func (a *UserManagementApiService) UpdateAccountState(ctx _context.Context, accountname string, desiredState AccountStatus) (AccountStatus, *_nethttp.Response, error)
- type VendorDataObject
- type VulnDiffResult
- type VulnUpdateNotification
- type VulnUpdateNotificationAllOf
- type VulnUpdateNotificationData
- type VulnUpdateNotificationDataAllOf
- type VulnUpdateNotificationPayload
- type VulnUpdateNotificationPayloadAllOf
- type Vulnerability
- type VulnerabilityReference
- type VulnerabilityResponse
- type VulnerableImage
- type VulnerablePackageReference
- type Whitelist
- type WhitelistItem
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct { ArchivesApi *ArchivesApiService DefaultApi *DefaultApiService EventsApi *EventsApiService IdentityApi *IdentityApiService ImagesApi *ImagesApiService ImportApi *ImportApiService ImportsApi *ImportsApiService PoliciesApi *PoliciesApiService QueryApi *QueryApiService RegistriesApi *RegistriesApiService RepositoryCredentialsApi *RepositoryCredentialsApiService SubscriptionsApi *SubscriptionsApiService SummariesApi *SummariesApiService SystemApi *SystemApiService UserManagementApi *UserManagementApiService // contains filtered or unexported fields }
APIClient manages communication with the Anchore Engine API Server API v0.1.16 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
ChangeBasePath changes base path to allow switching to mocks
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResonse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type AccessCredential ¶
type AccessCredential struct { // The type of credential Type string `json:"type"` // The credential value (e.g. the password) Value string `json:"value"` // The timestamp of creation of the credential CreatedAt string `json:"created_at,omitempty"` }
AccessCredential A login credential mapped to a user identity. For password credentials, the username to present for Basic auth is the user's username from the user record
type Account ¶
type Account struct { // The account identifier, not updatable after creation Name string `json:"name"` // The user type (admin vs user). If not specified in a POST request, 'user' is default Type string `json:"type,omitempty"` // State of the account. Disabled accounts prevent member users from logging in, deleting accounts are disabled and pending deletion and will be removed once all owned resources are garbage collected by the system State string `json:"state,omitempty"` // Optional email address associated with the account Email string `json:"email,omitempty"` // The timestamp when the account was created CreatedAt time.Time `json:"created_at,omitempty"` // The timestamp of the last update to the account metadata itself (not users or creds) LastUpdated time.Time `json:"last_updated,omitempty"` }
Account Account information
type AccountCreationRequest ¶
type AccountCreationRequest struct { // The account name to use. This will identify the account and must be globally unique in the system. Name string `json:"name"` // An optional email to associate with the account for contact purposes Email string `json:"email,omitempty"` }
AccountCreationRequest An account to create/add to the system. If already exists will return 400.
type AccountStatus ¶
type AccountStatus struct { // The status of the account State string `json:"state,omitempty"` }
AccountStatus A summary of account status
type AddImageOpts ¶
type AddImageOpts struct { Force optional.Bool Autosubscribe optional.Bool XAnchoreAccount optional.String }
AddImageOpts Optional parameters for the method 'AddImage'
type AddPolicyOpts ¶
AddPolicyOpts Optional parameters for the method 'AddPolicy'
type AddRepositoryOpts ¶
type AddRepositoryOpts struct { Autosubscribe optional.Bool Lookuptag optional.String Dryrun optional.Bool XAnchoreAccount optional.String }
AddRepositoryOpts Optional parameters for the method 'AddRepository'
type AddSubscriptionOpts ¶
AddSubscriptionOpts Optional parameters for the method 'AddSubscription'
type AnalysisArchiveAddResult ¶
type AnalysisArchiveAddResult struct { // The image digest requested to be added Digest string `json:"digest,omitempty"` // The status of the archive add operation. Typically either 'archived' or 'error' Status string `json:"status,omitempty"` // Details on the status, e.g. the error message Detail string `json:"detail,omitempty"` }
AnalysisArchiveAddResult The result of adding a single digest to the archive
type AnalysisArchiveRulesSummary ¶
type AnalysisArchiveRulesSummary struct { // The number of rules for this account Count int32 `json:"count,omitempty"` // The newest last_updated timestamp from the set of rules LastUpdated time.Time `json:"last_updated,omitempty"` }
AnalysisArchiveRulesSummary Summary of the transition rule set
type AnalysisArchiveSource ¶
type AnalysisArchiveSource struct { // The image digest identify the analysis. Archived analyses are based on digest, tag records are restored as analysis is restored. Digest string `json:"digest"` }
AnalysisArchiveSource An image reference in the analysis archive for the purposes of loading analysis from the archive into th working set
type AnalysisArchiveSummary ¶
type AnalysisArchiveSummary struct { // The number of unique images (digests) in the archive TotalImageCount int32 `json:"total_image_count,omitempty"` // The number of tag records (registry/repo:tag pull strings) in the archive. This may include repeated tags but will always have a unique tag->digest mapping per record. TotalTagCount int32 `json:"total_tag_count,omitempty"` // The total sum of all the bytes stored to the backing storage. Accounts for anchore-applied compression, but not compression by the underlying storage system. TotalDataBytes int32 `json:"total_data_bytes,omitempty"` // The timestamp of the most recent archived image LastUpdated time.Time `json:"last_updated,omitempty"` }
AnalysisArchiveSummary A summarization of the analysis archive, including size, counts, etc. This archive stores image analysis only, never the actual image content or layers.
type AnalysisArchiveTransitionHistory ¶
type AnalysisArchiveTransitionHistory struct { // The task that created & updated this entry TransitionTaskId string `json:"transition_task_id,omitempty"` RuleId string `json:"rule_id,omitempty"` ImageDigest string `json:"imageDigest,omitempty"` Transition string `json:"transition,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` LastUpdated time.Time `json:"last_updated,omitempty"` }
AnalysisArchiveTransitionHistory A rule for auto-archiving image analysis by time and/or tag-history
type AnalysisArchiveTransitionRule ¶
type AnalysisArchiveTransitionRule struct { Selector ImageSelector `json:"selector,omitempty"` // Number of images mapped to the tag that are newer TagVersionsNewer int32 `json:"tag_versions_newer,omitempty"` // Matches if the analysis is strictly older than this number of days AnalysisAgeDays int32 `json:"analysis_age_days,omitempty"` // The type of transition to make. If \"archive\", then archive an image from the working set and remove it from the working set. If \"delete\", then match against archived images and delete from the archive if match. Transition string `json:"transition"` // True if the rule applies to all accounts in the system. This is only available to admin users to update/modify, but all users with permission to list rules can see them SystemGlobal bool `json:"system_global,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` LastUpdated time.Time `json:"last_updated,omitempty"` Exclude AnalysisArchiveTransitionRuleExclude `json:"exclude,omitempty"` // This is the maximum number of image analyses an account can have. Can only be set on system_global rules MaxImagesPerAccount int32 `json:"max_images_per_account,omitempty"` }
AnalysisArchiveTransitionRule A rule for auto-archiving image analysis by time and/or tag-history
type AnalysisArchiveTransitionRuleExclude ¶
type AnalysisArchiveTransitionRuleExclude struct { Selector ImageSelector `json:"selector,omitempty"` // How long the image selected will be excluded from the archive transition ExpirationDays int32 `json:"expiration_days,omitempty"` }
AnalysisArchiveTransitionRuleExclude Which Images to exclude from auto-archiving logic
type AnalysisUpdateEval ¶
type AnalysisUpdateEval struct { AnalysisStatus string `json:"analysis_status,omitempty"` Annotations interface{} `json:"annotations,omitempty"` ImageDigest string `json:"image_digest,omitempty"` }
AnalysisUpdateEval Evaluation Results for an entity (current or last)
type AnalysisUpdateNotification ¶
type AnalysisUpdateNotification struct { QueueId string `json:"queueId,omitempty"` UserId string `json:"userId,omitempty"` DataId string `json:"dataId,omitempty"` CreatedAt int32 `json:"created_at,omitempty"` LastUpdated int32 `json:"last_updated,omitempty"` RecordStateKey string `json:"record_state_key,omitempty"` RecordStateVal *string `json:"record_state_val,omitempty"` Tries int32 `json:"tries,omitempty"` MaxTries int32 `json:"max_tries,omitempty"` Data AnalysisUpdateNotificationData `json:"data,omitempty"` }
AnalysisUpdateNotification struct for AnalysisUpdateNotification
type AnalysisUpdateNotificationAllOf ¶
type AnalysisUpdateNotificationAllOf struct {
Data AnalysisUpdateNotificationData `json:"data,omitempty"`
}
AnalysisUpdateNotificationAllOf The Notification Object definition for Tag Update Notifications
type AnalysisUpdateNotificationData ¶
type AnalysisUpdateNotificationData struct { NotificationUser string `json:"notification_user,omitempty"` NotificationUserEmail string `json:"notification_user_email,omitempty"` NotificationType string `json:"notification_type,omitempty"` NotificationPayload AnalysisUpdateNotificationPayload `json:"notification_payload,omitempty"` }
AnalysisUpdateNotificationData struct for AnalysisUpdateNotificationData
type AnalysisUpdateNotificationDataAllOf ¶
type AnalysisUpdateNotificationDataAllOf struct {
NotificationPayload AnalysisUpdateNotificationPayload `json:"notification_payload,omitempty"`
}
AnalysisUpdateNotificationDataAllOf struct for AnalysisUpdateNotificationDataAllOf
type AnalysisUpdateNotificationPayload ¶
type AnalysisUpdateNotificationPayload struct { UserId string `json:"userId,omitempty"` SubscriptionKey string `json:"subscription_key,omitempty"` SubscriptionType string `json:"subscription_type,omitempty"` NotificationId string `json:"notificationId,omitempty"` CurrEval AnalysisUpdateEval `json:"curr_eval,omitempty"` LastEval AnalysisUpdateEval `json:"last_eval,omitempty"` // List of Corresponding Image Annotations Annotations *interface{} `json:"annotations,omitempty"` }
AnalysisUpdateNotificationPayload struct for AnalysisUpdateNotificationPayload
type AnalysisUpdateNotificationPayloadAllOf ¶
type AnalysisUpdateNotificationPayloadAllOf struct { CurrEval AnalysisUpdateEval `json:"curr_eval,omitempty"` LastEval AnalysisUpdateEval `json:"last_eval,omitempty"` // List of Corresponding Image Annotations Annotations *interface{} `json:"annotations,omitempty"` }
AnalysisUpdateNotificationPayloadAllOf struct for AnalysisUpdateNotificationPayloadAllOf
type AnchoreErrorCode ¶
type AnchoreErrorCode struct { // Error code name Name string `json:"name,omitempty"` // Description of the error code Description string `json:"description,omitempty"` }
AnchoreErrorCode A description of an anchore error code (name, description)
type AnchoreImage ¶
type AnchoreImage struct { // A metadata content record for a specific image, containing different content type entries ImageContent interface{} `json:"image_content,omitempty"` // Details specific to an image reference and type such as tag and image source ImageDetail []ImageDetail `json:"image_detail,omitempty"` LastUpdated time.Time `json:"last_updated,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` ImageDigest string `json:"imageDigest,omitempty"` UserId string `json:"userId,omitempty"` Annotations interface{} `json:"annotations,omitempty"` // State of the image ImageStatus string `json:"image_status,omitempty"` // A state value for the current status of the analysis progress of the image AnalysisStatus string `json:"analysis_status,omitempty"` }
AnchoreImage A unique image in the engine. May have multiple tags or references. Unique to an image content across registries or repositories.
type AnchoreImageTagSummary ¶
type AnchoreImageTagSummary struct { ImageDigest string `json:"imageDigest,omitempty"` ParentDigest string `json:"parentDigest,omitempty"` ImageId string `json:"imageId,omitempty"` AnalysisStatus string `json:"analysis_status,omitempty"` Fulltag string `json:"fulltag,omitempty"` CreatedAt int32 `json:"created_at,omitempty"` AnalyzedAt int32 `json:"analyzed_at,omitempty"` TagDetectedAt int32 `json:"tag_detected_at,omitempty"` ImageStatus string `json:"image_status,omitempty"` }
AnchoreImageTagSummary A unique image in the engine.
type ApiErrorResponse ¶
type ApiErrorResponse struct { Code int32 `json:"code,omitempty"` ErrorType string `json:"error_type,omitempty"` Message string `json:"message,omitempty"` // Details structure for additional information about the error if available. Content and structure will be error specific. Detail interface{} `json:"detail,omitempty"` }
ApiErrorResponse Generic HTTP API error response
type ArchiveSummary ¶
type ArchiveSummary struct { Images AnalysisArchiveSummary `json:"images,omitempty"` Rules AnalysisArchiveRulesSummary `json:"rules,omitempty"` }
ArchiveSummary A summarization of the available archives, a place to for long-term storage of audit, analysis, or other data to remove it from the system's working set but keep it available.
type ArchivedAnalysis ¶
type ArchivedAnalysis struct { // The image digest (digest of the manifest describing the image, per docker spec) ImageDigest string `json:"imageDigest,omitempty"` // The digest of a parent manifest (for manifest-list images) ParentDigest string `json:"parentDigest,omitempty"` // User provided annotations as key-value pairs Annotations interface{} `json:"annotations,omitempty"` // The archival status Status string `json:"status,omitempty"` // List of tags associated with the image digest ImageDetail []TagEntry `json:"image_detail,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` LastUpdated time.Time `json:"last_updated,omitempty"` AnalyzedAt time.Time `json:"analyzed_at,omitempty"` // The size, in bytes, of the analysis archive file ArchiveSizeBytes int32 `json:"archive_size_bytes,omitempty"` }
ArchivedAnalysis struct for ArchivedAnalysis
type ArchivesApiService ¶
type ArchivesApiService service
ArchivesApiService ArchivesApi service
func (*ArchivesApiService) ArchiveImageAnalysis ¶
func (a *ArchivesApiService) ArchiveImageAnalysis(ctx _context.Context, imageReferences []string) ([]AnalysisArchiveAddResult, *_nethttp.Response, error)
ArchiveImageAnalysis Method for ArchiveImageAnalysis
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageReferences
@return []AnalysisArchiveAddResult
func (*ArchivesApiService) CreateAnalysisArchiveRule ¶
func (a *ArchivesApiService) CreateAnalysisArchiveRule(ctx _context.Context, rule AnalysisArchiveTransitionRule) (AnalysisArchiveTransitionRule, *_nethttp.Response, error)
CreateAnalysisArchiveRule Method for CreateAnalysisArchiveRule
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param rule
@return AnalysisArchiveTransitionRule
func (*ArchivesApiService) DeleteAnalysisArchiveRule ¶
func (a *ArchivesApiService) DeleteAnalysisArchiveRule(ctx _context.Context, ruleId string) (AnalysisArchiveTransitionRule, *_nethttp.Response, error)
DeleteAnalysisArchiveRule Method for DeleteAnalysisArchiveRule
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param ruleId
@return AnalysisArchiveTransitionRule
func (*ArchivesApiService) DeleteArchivedAnalysis ¶
func (a *ArchivesApiService) DeleteArchivedAnalysis(ctx _context.Context, imageDigest string, localVarOptionals *DeleteArchivedAnalysisOpts) (ArchivedAnalysis, *_nethttp.Response, error)
DeleteArchivedAnalysis Method for DeleteArchivedAnalysis Performs a synchronous archive deletion
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param optional nil or *DeleteArchivedAnalysisOpts - Optional Parameters:
- @param "Force" (optional.Bool) -
@return ArchivedAnalysis
func (*ArchivesApiService) GetAnalysisArchiveRule ¶
func (a *ArchivesApiService) GetAnalysisArchiveRule(ctx _context.Context, ruleId string) (AnalysisArchiveTransitionRule, *_nethttp.Response, error)
GetAnalysisArchiveRule Method for GetAnalysisArchiveRule
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param ruleId
@return AnalysisArchiveTransitionRule
func (*ArchivesApiService) GetArchivedAnalysis ¶
func (a *ArchivesApiService) GetArchivedAnalysis(ctx _context.Context, imageDigest string) (ArchivedAnalysis, *_nethttp.Response, error)
GetArchivedAnalysis Method for GetArchivedAnalysis Returns the archive metadata record identifying the image and tags for the analysis in the archive.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest The image digest to identify the image analysis
@return ArchivedAnalysis
func (*ArchivesApiService) ListAnalysisArchive ¶
func (a *ArchivesApiService) ListAnalysisArchive(ctx _context.Context) ([]ArchivedAnalysis, *_nethttp.Response, error)
ListAnalysisArchive Method for ListAnalysisArchive
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []ArchivedAnalysis
func (*ArchivesApiService) ListAnalysisArchiveRules ¶
func (a *ArchivesApiService) ListAnalysisArchiveRules(ctx _context.Context, localVarOptionals *ListAnalysisArchiveRulesOpts) ([]AnalysisArchiveTransitionRule, *_nethttp.Response, error)
ListAnalysisArchiveRules Method for ListAnalysisArchiveRules
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *ListAnalysisArchiveRulesOpts - Optional Parameters:
- @param "SystemGlobal" (optional.Bool) - If true include system global rules (owned by admin) even for non-admin users. Defaults to true if not set. Can be set to false to exclude globals
@return []AnalysisArchiveTransitionRule
func (*ArchivesApiService) ListArchives ¶
func (a *ArchivesApiService) ListArchives(ctx _context.Context) (ArchiveSummary, *_nethttp.Response, error)
ListArchives Method for ListArchives
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ArchiveSummary
type BaseNotificationData ¶
type BaseNotificationData struct { NotificationUser string `json:"notification_user,omitempty"` NotificationUserEmail string `json:"notification_user_email,omitempty"` NotificationType string `json:"notification_type,omitempty"` }
BaseNotificationData Every notification has a payload, which follows this basic structure
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers []ServerConfiguration HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
type ContentFilesResponse ¶
type ContentFilesResponse struct { ImageDigest string `json:"imageDigest,omitempty"` ContentType string `json:"content_type,omitempty"` Content []ContentFilesResponseContent `json:"content,omitempty"` }
ContentFilesResponse File content listings from images
type ContentFilesResponseContent ¶
type ContentFilesResponseContent struct { Filename string `json:"filename,omitempty"` Gid int32 `json:"gid,omitempty"` Linkdest *string `json:"linkdest,omitempty"` Mode string `json:"mode,omitempty"` Sha256 *string `json:"sha256,omitempty"` Size int32 `json:"size,omitempty"` Type string `json:"type,omitempty"` Uid int32 `json:"uid,omitempty"` }
ContentFilesResponseContent struct for ContentFilesResponseContent
type ContentJavaPackageResponse ¶
type ContentJavaPackageResponse struct { ImageDigest string `json:"imageDigest,omitempty"` ContentType string `json:"content_type,omitempty"` Content []ContentJavaPackageResponseContent `json:"content,omitempty"` }
ContentJavaPackageResponse Java package content listings from images
type ContentJavaPackageResponseContent ¶
type ContentJavaPackageResponseContent struct { Package string `json:"package,omitempty"` ImplementationVersion string `json:"implementation-version,omitempty"` SpecificationVersion string `json:"specification-version,omitempty"` MavenVersion string `json:"maven-version,omitempty"` Location string `json:"location,omitempty"` Type string `json:"type,omitempty"` Origin string `json:"origin,omitempty"` }
ContentJavaPackageResponseContent struct for ContentJavaPackageResponseContent
type ContentMalwareResponse ¶
type ContentMalwareResponse struct { ImageDigest string `json:"imageDigest,omitempty"` ContentType string `json:"content_type,omitempty"` // List of malware scan results, one per scanner configured to run Content []MalwareScan `json:"content,omitempty"` }
ContentMalwareResponse Malware listing response
type ContentPackageResponse ¶
type ContentPackageResponse struct { ImageDigest string `json:"imageDigest,omitempty"` ContentType string `json:"content_type,omitempty"` Content []ContentPackageResponseContent `json:"content,omitempty"` }
ContentPackageResponse Package content listings from images
type ContentPackageResponseContent ¶
type ContentPackageResponseContent struct { Package string `json:"package,omitempty"` Version string `json:"version,omitempty"` Size string `json:"size,omitempty"` Type string `json:"type,omitempty"` Origin string `json:"origin,omitempty"` // Deprecated in favor of the 'licenses' field\" License string `json:"license,omitempty"` Licenses []string `json:"licenses,omitempty"` Location string `json:"location,omitempty"` }
ContentPackageResponseContent struct for ContentPackageResponseContent
type ContentResponse ¶
type ContentResponse struct { ImageDigest string `json:"imageDigest,omitempty"` ContentType string `json:"content_type,omitempty"` Content []interface{} `json:"content,omitempty"` }
ContentResponse Generic wrapper for content listings from images
type CreateRegistryOpts ¶
CreateRegistryOpts Optional parameters for the method 'CreateRegistry'
type Cvssv2Scores ¶
type Cvssv2Scores struct { BaseScore *float32 `json:"base_score,omitempty"` ExploitabilityScore *float32 `json:"exploitability_score,omitempty"` ImpactScore *float32 `json:"impact_score,omitempty"` }
Cvssv2Scores struct for Cvssv2Scores
type Cvssv3Scores ¶
type Cvssv3Scores struct { BaseScore *float32 `json:"base_score,omitempty"` ExploitabilityScore *float32 `json:"exploitability_score,omitempty"` ImpactScore *float32 `json:"impact_score,omitempty"` }
Cvssv3Scores struct for Cvssv3Scores
type DefaultApiService ¶
type DefaultApiService service
DefaultApiService DefaultApi service
func (*DefaultApiService) GetOauthToken ¶
func (a *DefaultApiService) GetOauthToken(ctx _context.Context, localVarOptionals *GetOauthTokenOpts) (TokenResponse, *_nethttp.Response, error)
GetOauthToken Method for GetOauthToken Request a jwt token for subsequent operations, this request is authenticated with normal HTTP auth
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetOauthTokenOpts - Optional Parameters:
- @param "GrantType" (optional.String) - OAuth Grant type for token
- @param "Username" (optional.String) - User to assign OAuth token to
- @param "Password" (optional.String) - Password for corresponding user
- @param "ClientId" (optional.String) - The type of client used for the OAuth token
@return TokenResponse
func (*DefaultApiService) HealthCheck ¶
HealthCheck Method for HealthCheck Health check, returns 200 and no body if service is running
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
func (*DefaultApiService) ListFileContentSearchResults ¶
func (a *DefaultApiService) ListFileContentSearchResults(ctx _context.Context, imageDigest string) ([]FileContentSearchResult, *_nethttp.Response, error)
ListFileContentSearchResults Return a list of analyzer artifacts of the specified type
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
@return []FileContentSearchResult
func (*DefaultApiService) ListRetrievedFiles ¶
func (a *DefaultApiService) ListRetrievedFiles(ctx _context.Context, imageDigest string) ([]RetrievedFile, *_nethttp.Response, error)
ListRetrievedFiles Return a list of analyzer artifacts of the specified type
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
@return []RetrievedFile
func (*DefaultApiService) ListSecretSearchResults ¶
func (a *DefaultApiService) ListSecretSearchResults(ctx _context.Context, imageDigest string) ([]SecretSearchResult, *_nethttp.Response, error)
ListSecretSearchResults Return a list of analyzer artifacts of the specified type
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
@return []SecretSearchResult
func (*DefaultApiService) Ping ¶
Ping Method for Ping Simple status check
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return string
func (*DefaultApiService) VersionCheck ¶
func (a *DefaultApiService) VersionCheck(ctx _context.Context) (ServiceVersion, *_nethttp.Response, error)
VersionCheck Method for VersionCheck Returns the version object for the service, including db schema version info
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ServiceVersion
type DeleteArchivedAnalysisOpts ¶
DeleteArchivedAnalysisOpts Optional parameters for the method 'DeleteArchivedAnalysis'
type DeleteEventOpts ¶
DeleteEventOpts Optional parameters for the method 'DeleteEvent'
type DeleteEventsOpts ¶
type DeleteEventsOpts struct { Before optional.String Since optional.String Level optional.String XAnchoreAccount optional.String }
DeleteEventsOpts Optional parameters for the method 'DeleteEvents'
type DeleteImageByImageIdOpts ¶
DeleteImageByImageIdOpts Optional parameters for the method 'DeleteImageByImageId'
type DeleteImageOpts ¶
DeleteImageOpts Optional parameters for the method 'DeleteImage'
type DeleteImageResponse ¶
type DeleteImageResponse struct { Digest string `json:"digest"` // Current status of the image deletion Status string `json:"status"` Detail string `json:"detail,omitempty"` }
DeleteImageResponse Image deletion response containing status and details
type DeleteImagesAsyncOpts ¶
DeleteImagesAsyncOpts Optional parameters for the method 'DeleteImagesAsync'
type DeletePolicyOpts ¶
DeletePolicyOpts Optional parameters for the method 'DeletePolicy'
type DeleteRegistryOpts ¶
DeleteRegistryOpts Optional parameters for the method 'DeleteRegistry'
type DeleteSubscriptionOpts ¶
DeleteSubscriptionOpts Optional parameters for the method 'DeleteSubscription'
type EventCategory ¶
type EventCategory struct { Category string `json:"category,omitempty"` Description string `json:"description,omitempty"` Subcategories []EventSubcategory `json:"subcategories,omitempty"` }
EventCategory A collection of event subcategories
type EventDescription ¶
type EventDescription struct { // The event type. The last component of the fully-qualified event_type (category.subcategory.event) Name string `json:"name,omitempty"` // The fully qualified event type as would be seen in the event payload Type string `json:"type,omitempty"` // The message associated with the event type Message string `json:"message,omitempty"` // The type of resource this event is generated from ResourceType string `json:"resource_type,omitempty"` }
EventDescription A description of an event type
type EventResponse ¶
type EventResponse struct { GeneratedUuid string `json:"generated_uuid,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Event EventResponseEvent `json:"event,omitempty"` }
EventResponse A record of occurance of an asynchronous event triggered either by system or by user activity
type EventResponseEvent ¶
type EventResponseEvent struct { Source EventResponseEventSource `json:"source,omitempty"` Resource EventResponseEventResource `json:"resource,omitempty"` Type string `json:"type,omitempty"` Category string `json:"category,omitempty"` Level string `json:"level,omitempty"` Message string `json:"message,omitempty"` Details interface{} `json:"details,omitempty"` Timestamp time.Time `json:"timestamp,omitempty"` }
EventResponseEvent struct for EventResponseEvent
type EventResponseEventResource ¶
type EventResponseEventResource struct { UserId string `json:"user_id,omitempty"` Id string `json:"id,omitempty"` Type string `json:"type,omitempty"` }
EventResponseEventResource struct for EventResponseEventResource
type EventResponseEventSource ¶
type EventResponseEventSource struct { Servicename string `json:"servicename,omitempty"` Hostid string `json:"hostid,omitempty"` BaseUrl string `json:"base_url,omitempty"` RequestId string `json:"request_id,omitempty"` }
EventResponseEventSource struct for EventResponseEventSource
type EventSubcategory ¶
type EventSubcategory struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Events []EventDescription `json:"events,omitempty"` }
EventSubcategory A collection of events related to each other
type EventsApiService ¶
type EventsApiService service
EventsApiService EventsApi service
func (*EventsApiService) DeleteEvent ¶
func (a *EventsApiService) DeleteEvent(ctx _context.Context, eventId string, localVarOptionals *DeleteEventOpts) (*_nethttp.Response, error)
DeleteEvent Delete Event Delete an event by its event ID
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param eventId Event ID of the event to be deleted
- @param optional nil or *DeleteEventOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
func (*EventsApiService) DeleteEvents ¶
func (a *EventsApiService) DeleteEvents(ctx _context.Context, localVarOptionals *DeleteEventsOpts) ([]string, *_nethttp.Response, error)
DeleteEvents Delete Events Delete all or a subset of events filtered using the optional query parameters
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *DeleteEventsOpts - Optional Parameters:
- @param "Before" (optional.String) - Delete events that occurred before the timestamp
- @param "Since" (optional.String) - Delete events that occurred after the timestamp
- @param "Level" (optional.String) - Delete events that match the level - INFO or ERROR
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []string
func (*EventsApiService) GetEvent ¶
func (a *EventsApiService) GetEvent(ctx _context.Context, eventId string, localVarOptionals *GetEventOpts) (EventResponse, *_nethttp.Response, error)
GetEvent Get Event Lookup an event by its event ID
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param eventId Event ID of the event for lookup
- @param optional nil or *GetEventOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return EventResponse
func (*EventsApiService) ListEventTypes ¶
func (a *EventsApiService) ListEventTypes(ctx _context.Context) ([]EventCategory, *_nethttp.Response, error)
ListEventTypes List Event Types Returns list of event types in the category hierarchy
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []EventCategory
func (*EventsApiService) ListEvents ¶
func (a *EventsApiService) ListEvents(ctx _context.Context, localVarOptionals *ListEventsOpts) (EventsList, *_nethttp.Response, error)
ListEvents List Events Returns a paginated list of events in the descending order of their occurrence. Optional query parameters may be used for filtering results
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *ListEventsOpts - Optional Parameters:
- @param "SourceServicename" (optional.String) - Filter events by the originating service
- @param "SourceHostid" (optional.String) - Filter events by the originating host ID
- @param "EventType" (optional.String) - Filter events by a prefix match on the event type (e.g. \"user.image.\")
- @param "ResourceType" (optional.String) - Filter events by the type of resource - tag, imageDigest, repository etc
- @param "ResourceId" (optional.String) - Filter events by the id of the resource
- @param "Level" (optional.String) - Filter events by the level - INFO or ERROR
- @param "Since" (optional.String) - Return events that occurred after the timestamp
- @param "Before" (optional.String) - Return events that occurred before the timestamp
- @param "Page" (optional.Int32) - Pagination controls - return the nth page of results. Defaults to first page if left empty
- @param "Limit" (optional.Int32) - Number of events in the result set. Defaults to 100 if left empty
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return EventsList
type EventsList ¶
type EventsList struct { // List of events Results []EventResponse `json:"results,omitempty"` // Boolean flag, True indicates there are more events and False otherwise NextPage bool `json:"next_page,omitempty"` // Number of events in this page ItemCount int32 `json:"item_count,omitempty"` // Page number of this result set Page int32 `json:"page,omitempty"` }
EventsList Response envelope for paginated listing of events
type FeedGroupMetadata ¶
type FeedGroupMetadata struct { Name string `json:"name,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` LastSync time.Time `json:"last_sync,omitempty"` RecordCount int32 `json:"record_count,omitempty"` }
FeedGroupMetadata struct for FeedGroupMetadata
type FeedMetadata ¶
type FeedMetadata struct { // name of the feed Name string `json:"name,omitempty"` // Date the metadata record was created in engine (first seen on source) CreatedAt time.Time `json:"created_at,omitempty"` // Date the metadata was last updated UpdatedAt time.Time `json:"updated_at,omitempty"` Groups []FeedGroupMetadata `json:"groups,omitempty"` LastFullSync time.Time `json:"last_full_sync,omitempty"` }
FeedMetadata Metadata on a single feed based on what the engine finds from querying the endpoints
type FeedSyncResult ¶
type FeedSyncResult struct { // The name of the feed synced Feed string `json:"feed,omitempty"` // The result of the sync operations, either co Status string `json:"status,omitempty"` // The duratin, in seconds, of the sync of the feed, the sum of all the group syncs TotalTimeSeconds float32 `json:"total_time_seconds,omitempty"` // Array of group sync results Groups []GroupSyncResult `json:"groups,omitempty"` }
FeedSyncResult The result of a sync of a single feed
type FileContentSearchResult ¶
type FileContentSearchResult struct { Path string `json:"path,omitempty"` Matches []RegexContentMatch `json:"matches,omitempty"` }
FileContentSearchResult The retrieved file entry including content (b64 encoded)
type GateSpec ¶
type GateSpec struct { // Gate name, as it would appear in a policy document Name string `json:"name,omitempty"` // Description of the gate Description string `json:"description,omitempty"` // State of the gate and transitively all triggers it contains if not 'active' State string `json:"state,omitempty"` // The name of another trigger that supercedes this on functionally if this is deprecated SupercededBy *string `json:"superceded_by,omitempty"` // List of the triggers that can fire for this Gate Triggers []TriggerSpec `json:"triggers,omitempty"` }
GateSpec A description of the set of gates available in this engine and the triggers and parameters supported
type GenericNotificationPayload ¶
type GenericNotificationPayload struct { UserId string `json:"userId,omitempty"` SubscriptionKey string `json:"subscription_key,omitempty"` SubscriptionType string `json:"subscription_type,omitempty"` NotificationId string `json:"notificationId,omitempty"` }
GenericNotificationPayload Parent class for Notification Payloads
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type GetEventOpts ¶
GetEventOpts Optional parameters for the method 'GetEvent'
type GetImageByImageIdOpts ¶
GetImageByImageIdOpts Optional parameters for the method 'GetImageByImageId'
type GetImageContentByTypeFilesOpts ¶
GetImageContentByTypeFilesOpts Optional parameters for the method 'GetImageContentByTypeFiles'
type GetImageContentByTypeImageIdFilesOpts ¶
GetImageContentByTypeImageIdFilesOpts Optional parameters for the method 'GetImageContentByTypeImageIdFiles'
type GetImageContentByTypeImageIdJavapackageOpts ¶
GetImageContentByTypeImageIdJavapackageOpts Optional parameters for the method 'GetImageContentByTypeImageIdJavapackage'
type GetImageContentByTypeImageIdOpts ¶
GetImageContentByTypeImageIdOpts Optional parameters for the method 'GetImageContentByTypeImageId'
type GetImageContentByTypeJavapackageOpts ¶
GetImageContentByTypeJavapackageOpts Optional parameters for the method 'GetImageContentByTypeJavapackage'
type GetImageContentByTypeMalwareOpts ¶
GetImageContentByTypeMalwareOpts Optional parameters for the method 'GetImageContentByTypeMalware'
type GetImageContentByTypeOpts ¶
GetImageContentByTypeOpts Optional parameters for the method 'GetImageContentByType'
type GetImageMetadataByTypeOpts ¶
GetImageMetadataByTypeOpts Optional parameters for the method 'GetImageMetadataByType'
type GetImageOpts ¶
GetImageOpts Optional parameters for the method 'GetImage'
type GetImagePolicyCheckByImageIdOpts ¶
type GetImagePolicyCheckByImageIdOpts struct { PolicyId optional.String Detail optional.Bool History optional.Bool XAnchoreAccount optional.String }
GetImagePolicyCheckByImageIdOpts Optional parameters for the method 'GetImagePolicyCheckByImageId'
type GetImagePolicyCheckOpts ¶
type GetImagePolicyCheckOpts struct { PolicyId optional.String Detail optional.Bool History optional.Bool Interactive optional.Bool XAnchoreAccount optional.String }
GetImagePolicyCheckOpts Optional parameters for the method 'GetImagePolicyCheck'
type GetImageVulnerabilitiesByTypeImageIdOpts ¶
GetImageVulnerabilitiesByTypeImageIdOpts Optional parameters for the method 'GetImageVulnerabilitiesByTypeImageId'
type GetImageVulnerabilitiesByTypeOpts ¶
type GetImageVulnerabilitiesByTypeOpts struct { ForceRefresh optional.Bool VendorOnly optional.Bool XAnchoreAccount optional.String }
GetImageVulnerabilitiesByTypeOpts Optional parameters for the method 'GetImageVulnerabilitiesByType'
type GetImageVulnerabilityTypesByImageIdOpts ¶
GetImageVulnerabilityTypesByImageIdOpts Optional parameters for the method 'GetImageVulnerabilityTypesByImageId'
type GetImageVulnerabilityTypesOpts ¶
GetImageVulnerabilityTypesOpts Optional parameters for the method 'GetImageVulnerabilityTypes'
type GetOauthTokenOpts ¶
type GetOauthTokenOpts struct { GrantType optional.String Username optional.String Password optional.String ClientId optional.String }
GetOauthTokenOpts Optional parameters for the method 'GetOauthToken'
type GetPolicyOpts ¶
GetPolicyOpts Optional parameters for the method 'GetPolicy'
type GetRegistryOpts ¶
GetRegistryOpts Optional parameters for the method 'GetRegistry'
type GetSubscriptionOpts ¶
GetSubscriptionOpts Optional parameters for the method 'GetSubscription'
type GroupSyncResult ¶
type GroupSyncResult struct { // The name of the group Group string `json:"group,omitempty"` Status string `json:"status,omitempty"` // The number of images updated by the this group sync, across all accounts. This is typically only non-zero for vulnerability feeds which update images' vulnerability results during the sync. UpdatedImageCount int32 `json:"updated_image_count,omitempty"` // The number of feed data records synced down as either updates or new records UpdatedRecordCount int32 `json:"updated_record_count,omitempty"` // The duration of the group sync in seconds TotalTimeSeconds float32 `json:"total_time_seconds,omitempty"` }
GroupSyncResult struct for GroupSyncResult
type IdentityApiService ¶
type IdentityApiService service
IdentityApiService IdentityApi service
func (*IdentityApiService) AddCredential ¶
func (a *IdentityApiService) AddCredential(ctx _context.Context, credential AccessCredential) (User, *_nethttp.Response, error)
AddCredential add/replace credential
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param credential
@return User
func (*IdentityApiService) GetCredentials ¶
func (a *IdentityApiService) GetCredentials(ctx _context.Context) ([]AccessCredential, *_nethttp.Response, error)
GetCredentials Get current credential summary
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []AccessCredential
func (*IdentityApiService) GetUser ¶
GetUser List authenticated user info
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return User
func (*IdentityApiService) GetUsersAccount ¶
func (a *IdentityApiService) GetUsersAccount(ctx _context.Context) (Account, *_nethttp.Response, error)
GetUsersAccount List the account for the authenticated user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return Account
type ImageAnalysisRequest ¶
type ImageAnalysisRequest struct { // Base64 encoded content of the dockerfile for the image, if available. Deprecated in favor of the 'source' field. Dockerfile string `json:"dockerfile,omitempty"` // A digest string for an image, maybe a pull string or just a digest. e.g. nginx@sha256:123 or sha256:abc123. If a pull string, it must have same regisry/repo as the tag field. Deprecated in favor of the 'source' field Digest string `json:"digest,omitempty"` // Full pullable tag reference for image. e.g. docker.io/nginx:latest. Deprecated in favor of the 'source' field Tag string `json:"tag,omitempty"` // Optional override of the image creation time, only honored when both tag and digest are also supplied e.g. 2018-10-17T18:14:00Z. Deprecated in favor of the 'source' field CreatedAt time.Time `json:"created_at,omitempty"` // Optional. The type of image this is adding, defaults to \"docker\". This can be ommitted until multiple image types are supported. ImageType string `json:"image_type,omitempty"` // Annotations to be associated with the added image in key/value form Annotations interface{} `json:"annotations,omitempty"` Source ImageSource `json:"source,omitempty"` }
ImageAnalysisRequest A request to add an image to be watched and analyzed by the engine. Optionally include the dockerfile content. Either source, digest or tag must be present.
type ImageDetail ¶
type ImageDetail struct { CreatedAt time.Time `json:"created_at,omitempty"` LastUpdated time.Time `json:"last_updated,omitempty"` // Full docker-pullable tag string referencing the image Fulltag string `json:"fulltag,omitempty"` // Full docker-pullable digest string including the registry url and repository necessary get the image Fulldigest string `json:"fulldigest,omitempty"` UserId string `json:"userId,omitempty"` ImageId string `json:"imageId,omitempty"` Registry string `json:"registry,omitempty"` Repo string `json:"repo,omitempty"` Dockerfile *string `json:"dockerfile,omitempty"` // The parent Anchore Image record to which this detail maps ImageDigest string `json:"imageDigest,omitempty"` }
ImageDetail A metadata detail record for a specific image. Multiple detail records may map a single catalog image.
type ImageFilter ¶
type ImageFilter struct { Tag string `json:"tag,omitempty"` Digest string `json:"digest,omitempty"` }
ImageFilter Filter for an image list by id, tag, or digest, but not both
type ImageImportContentResponse ¶
type ImageImportContentResponse struct { Digest string `json:"digest,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` }
ImageImportContentResponse struct for ImageImportContentResponse
type ImageImportManifest ¶
type ImageImportManifest struct { Contents ImportContentDigests `json:"contents,omitempty"` Tags []string `json:"tags,omitempty"` Digest string `json:"digest,omitempty"` // The digest of the images's manifest-list parent if it was accessed from a multi-arch tag where the tag pointed to a manifest-list. This allows preservation of that relationship in the data ParentDigest string `json:"parent_digest,omitempty"` // An \"imageId\" as used by Docker if available LocalImageId string `json:"local_image_id,omitempty"` OperationUuid string `json:"operation_uuid,omitempty"` }
ImageImportManifest struct for ImageImportManifest
type ImageImportOperation ¶
type ImageImportOperation struct { Uuid string `json:"uuid,omitempty"` Status string `json:"status,omitempty"` ExpiresAt time.Time `json:"expires_at,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` }
ImageImportOperation An import record, creating a unique identifier for referencing the operation as well as its state
type ImagePackageManifest ¶
type ImagePackageManifest struct { Artifacts []ImportPackage `json:"artifacts"` Source ImportSource `json:"source"` Distro ImportDistribution `json:"distro"` Descriptor ImportDescriptor `json:"descriptor,omitempty"` Schema ImportSchema `json:"schema,omitempty"` ArtifactRelationships []ImportPackageRelationship `json:"artifactRelationships,omitempty"` }
ImagePackageManifest struct for ImagePackageManifest
type ImageReference ¶
type ImageReference struct { // The image digest Digest string `json:"digest,omitempty"` // The image id if available Id string `json:"id,omitempty"` // Timestamp, in rfc3339 format, indicating when the image state became 'analyzed' in Anchore Engine. AnalyzedAt string `json:"analyzed_at,omitempty"` TagHistory []TagEntry `json:"tag_history,omitempty"` }
ImageReference A summary of an image identity, including digest, id (if available), and any tags known to have ever been mapped to the digest
type ImageSelectionRule ¶
type ImageSelectionRule struct { Id string `json:"id,omitempty"` Name string `json:"name"` Registry string `json:"registry"` Repository string `json:"repository"` Image ImageRef `json:"image"` }
ImageSelectionRule struct for ImageSelectionRule
type ImageSelector ¶
type ImageSelector struct { // The registry section of a pull string. e.g. with \"docker.io/anchore/anchore-engine:latest\", this is \"docker.io\" Registry string `json:"registry,omitempty"` // The repository section of a pull string. e.g. with \"docker.io/anchore/anchore-engine:latest\", this is \"anchore/anchore-engine\" Repository string `json:"repository,omitempty"` // The tag-only section of a pull string. e.g. with \"docker.io/anchore/anchore-engine:latest\", this is \"latest\" Tag string `json:"tag,omitempty"` }
ImageSelector A set of selection criteria to match an image by a tagged pullstring based on its components, with regex support in each field
type ImageSource ¶
type ImageSource struct { Tag *RegistryTagSource `json:"tag,omitempty"` Digest *RegistryDigestSource `json:"digest,omitempty"` Archive *AnalysisArchiveSource `json:"archive,omitempty"` Import *ImageImportManifest `json:"import,omitempty"` }
ImageSource A set of analysis source types. Only one may be set in any given request.
type ImageWithPackages ¶
type ImageWithPackages struct { Image ImageReference `json:"image,omitempty"` Packages []PackageReference `json:"packages,omitempty"` }
ImageWithPackages An image record that contains packages
type ImagesApiService ¶
type ImagesApiService service
ImagesApiService ImagesApi service
func (*ImagesApiService) AddImage ¶
func (a *ImagesApiService) AddImage(ctx _context.Context, image ImageAnalysisRequest, localVarOptionals *AddImageOpts) ([]AnchoreImage, *_nethttp.Response, error)
AddImage Submit a new image for analysis by the engine Creates a new analysis task that is executed asynchronously
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param image
- @param optional nil or *AddImageOpts - Optional Parameters:
- @param "Force" (optional.Bool) - Override any existing entry in the system
- @param "Autosubscribe" (optional.Bool) - Instruct engine to automatically begin watching the added tag for updates from registry
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []AnchoreImage
func (*ImagesApiService) DeleteImage ¶
func (a *ImagesApiService) DeleteImage(ctx _context.Context, imageDigest string, localVarOptionals *DeleteImageOpts) (DeleteImageResponse, *_nethttp.Response, error)
DeleteImage Delete an image analysis
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param optional nil or *DeleteImageOpts - Optional Parameters:
- @param "Force" (optional.Bool) -
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return DeleteImageResponse
func (*ImagesApiService) DeleteImageByImageId ¶
func (a *ImagesApiService) DeleteImageByImageId(ctx _context.Context, imageId string, localVarOptionals *DeleteImageByImageIdOpts) (DeleteImageResponse, *_nethttp.Response, error)
DeleteImageByImageId Delete image by docker imageId
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageId
- @param optional nil or *DeleteImageByImageIdOpts - Optional Parameters:
- @param "Force" (optional.Bool) -
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return DeleteImageResponse
func (*ImagesApiService) DeleteImagesAsync ¶
func (a *ImagesApiService) DeleteImagesAsync(ctx _context.Context, imageDigests []string, localVarOptionals *DeleteImagesAsyncOpts) ([]DeleteImageResponse, *_nethttp.Response, error)
DeleteImagesAsync Bulk mark images for deletion Delete analysis for image digests in the list asynchronously
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigests
- @param optional nil or *DeleteImagesAsyncOpts - Optional Parameters:
- @param "Force" (optional.Bool) -
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []DeleteImageResponse
func (*ImagesApiService) GetImage ¶
func (a *ImagesApiService) GetImage(ctx _context.Context, imageDigest string, localVarOptionals *GetImageOpts) ([]AnchoreImage, *_nethttp.Response, error)
GetImage Get image metadata
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param optional nil or *GetImageOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []AnchoreImage
func (*ImagesApiService) GetImageByImageId ¶
func (a *ImagesApiService) GetImageByImageId(ctx _context.Context, imageId string, localVarOptionals *GetImageByImageIdOpts) ([]AnchoreImage, *_nethttp.Response, error)
GetImageByImageId Lookup image by docker imageId
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageId
- @param optional nil or *GetImageByImageIdOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []AnchoreImage
func (*ImagesApiService) GetImageContentByType ¶
func (a *ImagesApiService) GetImageContentByType(ctx _context.Context, imageDigest string, ctype string, localVarOptionals *GetImageContentByTypeOpts) (ContentPackageResponse, *_nethttp.Response, error)
GetImageContentByType Get the content of an image by type
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param ctype
- @param optional nil or *GetImageContentByTypeOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return ContentPackageResponse
func (*ImagesApiService) GetImageContentByTypeFiles ¶
func (a *ImagesApiService) GetImageContentByTypeFiles(ctx _context.Context, imageDigest string, localVarOptionals *GetImageContentByTypeFilesOpts) (ContentFilesResponse, *_nethttp.Response, error)
GetImageContentByTypeFiles Get the content of an image by type files
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param optional nil or *GetImageContentByTypeFilesOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return ContentFilesResponse
func (*ImagesApiService) GetImageContentByTypeImageId ¶
func (a *ImagesApiService) GetImageContentByTypeImageId(ctx _context.Context, imageId string, ctype string, localVarOptionals *GetImageContentByTypeImageIdOpts) (ContentPackageResponse, *_nethttp.Response, error)
GetImageContentByTypeImageId Get the content of an image by type
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageId
- @param ctype
- @param optional nil or *GetImageContentByTypeImageIdOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return ContentPackageResponse
func (*ImagesApiService) GetImageContentByTypeImageIdFiles ¶
func (a *ImagesApiService) GetImageContentByTypeImageIdFiles(ctx _context.Context, imageId string, localVarOptionals *GetImageContentByTypeImageIdFilesOpts) (ContentFilesResponse, *_nethttp.Response, error)
GetImageContentByTypeImageIdFiles Get the content of an image by type files
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageId
- @param optional nil or *GetImageContentByTypeImageIdFilesOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return ContentFilesResponse
func (*ImagesApiService) GetImageContentByTypeImageIdJavapackage ¶
func (a *ImagesApiService) GetImageContentByTypeImageIdJavapackage(ctx _context.Context, imageId string, localVarOptionals *GetImageContentByTypeImageIdJavapackageOpts) (ContentJavaPackageResponse, *_nethttp.Response, error)
GetImageContentByTypeImageIdJavapackage Get the content of an image by type java
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageId
- @param optional nil or *GetImageContentByTypeImageIdJavapackageOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return ContentJavaPackageResponse
func (*ImagesApiService) GetImageContentByTypeJavapackage ¶
func (a *ImagesApiService) GetImageContentByTypeJavapackage(ctx _context.Context, imageDigest string, localVarOptionals *GetImageContentByTypeJavapackageOpts) (ContentJavaPackageResponse, *_nethttp.Response, error)
GetImageContentByTypeJavapackage Get the content of an image by type java
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param optional nil or *GetImageContentByTypeJavapackageOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return ContentJavaPackageResponse
func (*ImagesApiService) GetImageContentByTypeMalware ¶
func (a *ImagesApiService) GetImageContentByTypeMalware(ctx _context.Context, imageDigest string, localVarOptionals *GetImageContentByTypeMalwareOpts) (ContentMalwareResponse, *_nethttp.Response, error)
GetImageContentByTypeMalware Get the content of an image by type malware
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param optional nil or *GetImageContentByTypeMalwareOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return ContentMalwareResponse
func (*ImagesApiService) GetImageMetadataByType ¶
func (a *ImagesApiService) GetImageMetadataByType(ctx _context.Context, imageDigest string, mtype string, localVarOptionals *GetImageMetadataByTypeOpts) (MetadataResponse, *_nethttp.Response, error)
GetImageMetadataByType Get the metadata of an image by type
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param mtype
- @param optional nil or *GetImageMetadataByTypeOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return MetadataResponse
func (*ImagesApiService) GetImagePolicyCheck ¶
func (a *ImagesApiService) GetImagePolicyCheck(ctx _context.Context, imageDigest string, tag string, localVarOptionals *GetImagePolicyCheckOpts) ([]interface{}, *_nethttp.Response, error)
GetImagePolicyCheck Check policy evaluation status for image Get the policy evaluation for the given image
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param tag
- @param optional nil or *GetImagePolicyCheckOpts - Optional Parameters:
- @param "PolicyId" (optional.String) -
- @param "Detail" (optional.Bool) -
- @param "History" (optional.Bool) -
- @param "Interactive" (optional.Bool) -
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []interface{}
func (*ImagesApiService) GetImagePolicyCheckByImageId ¶
func (a *ImagesApiService) GetImagePolicyCheckByImageId(ctx _context.Context, imageId string, tag string, localVarOptionals *GetImagePolicyCheckByImageIdOpts) ([]interface{}, *_nethttp.Response, error)
GetImagePolicyCheckByImageId Check policy evaluation status for image Get the policy evaluation for the given image
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageId
- @param tag
- @param optional nil or *GetImagePolicyCheckByImageIdOpts - Optional Parameters:
- @param "PolicyId" (optional.String) -
- @param "Detail" (optional.Bool) -
- @param "History" (optional.Bool) -
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []interface{}
func (*ImagesApiService) GetImageVulnerabilitiesByType ¶
func (a *ImagesApiService) GetImageVulnerabilitiesByType(ctx _context.Context, imageDigest string, vtype string, localVarOptionals *GetImageVulnerabilitiesByTypeOpts) (VulnerabilityResponse, *_nethttp.Response, error)
GetImageVulnerabilitiesByType Get vulnerabilities by type
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param vtype
- @param optional nil or *GetImageVulnerabilitiesByTypeOpts - Optional Parameters:
- @param "ForceRefresh" (optional.Bool) -
- @param "VendorOnly" (optional.Bool) -
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return VulnerabilityResponse
func (*ImagesApiService) GetImageVulnerabilitiesByTypeImageId ¶
func (a *ImagesApiService) GetImageVulnerabilitiesByTypeImageId(ctx _context.Context, imageId string, vtype string, localVarOptionals *GetImageVulnerabilitiesByTypeImageIdOpts) (VulnerabilityResponse, *_nethttp.Response, error)
GetImageVulnerabilitiesByTypeImageId Get vulnerabilities by type
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageId
- @param vtype
- @param optional nil or *GetImageVulnerabilitiesByTypeImageIdOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return VulnerabilityResponse
func (*ImagesApiService) GetImageVulnerabilityTypes ¶
func (a *ImagesApiService) GetImageVulnerabilityTypes(ctx _context.Context, imageDigest string, localVarOptionals *GetImageVulnerabilityTypesOpts) ([]string, *_nethttp.Response, error)
GetImageVulnerabilityTypes Get vulnerability types
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param optional nil or *GetImageVulnerabilityTypesOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []string
func (*ImagesApiService) GetImageVulnerabilityTypesByImageId ¶
func (a *ImagesApiService) GetImageVulnerabilityTypesByImageId(ctx _context.Context, imageId string, localVarOptionals *GetImageVulnerabilityTypesByImageIdOpts) ([]string, *_nethttp.Response, error)
GetImageVulnerabilityTypesByImageId Get vulnerability types
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageId
- @param optional nil or *GetImageVulnerabilityTypesByImageIdOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []string
func (*ImagesApiService) ListImageContent ¶
func (a *ImagesApiService) ListImageContent(ctx _context.Context, imageDigest string, localVarOptionals *ListImageContentOpts) ([]string, *_nethttp.Response, error)
ListImageContent List image content types
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param optional nil or *ListImageContentOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []string
func (*ImagesApiService) ListImageContentByImageid ¶
func (a *ImagesApiService) ListImageContentByImageid(ctx _context.Context, imageId string, localVarOptionals *ListImageContentByImageidOpts) ([]string, *_nethttp.Response, error)
ListImageContentByImageid List image content types
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageId
- @param optional nil or *ListImageContentByImageidOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []string
func (*ImagesApiService) ListImageMetadata ¶
func (a *ImagesApiService) ListImageMetadata(ctx _context.Context, imageDigest string, localVarOptionals *ListImageMetadataOpts) ([]string, *_nethttp.Response, error)
ListImageMetadata List image metadata types
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param imageDigest
- @param optional nil or *ListImageMetadataOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []string
func (*ImagesApiService) ListImages ¶
func (a *ImagesApiService) ListImages(ctx _context.Context, localVarOptionals *ListImagesOpts) ([]AnchoreImage, *_nethttp.Response, error)
ListImages List all visible images List all images visible to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *ListImagesOpts - Optional Parameters:
- @param "History" (optional.Bool) - Include image history in the response
- @param "Fulltag" (optional.String) - Full docker-pull string to filter results by (e.g. docker.io/library/nginx:latest, or myhost.com:5000/testimages:v1.1.1)
- @param "ImageStatus" (optional.String) - Filter by image_status value on the record. Default if omitted is 'active'.
- @param "AnalysisStatus" (optional.String) - Filter by analysis_status value on the record.
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []AnchoreImage
type ImportApiService ¶
type ImportApiService service
ImportApiService ImportApi service
func (*ImportApiService) ImportImageArchive ¶
func (a *ImportApiService) ImportImageArchive(ctx _context.Context, archiveFile *os.File) ([]AnchoreImage, *_nethttp.Response, error)
ImportImageArchive Import an anchore image tar.gz archive file. This is a deprecated API replaced by the \"/imports/images\" route
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param archiveFile anchore image tar archive.
@return []AnchoreImage
type ImportContentDigests ¶
type ImportContentDigests struct { // Digest to use for the packages content Packages string `json:"packages"` // Digest for reference content for image config ImageConfig string `json:"image_config"` // Digest to reference content for the image manifest Manifest string `json:"manifest"` // Digest for reference content for parent manifest ParentManifest string `json:"parent_manifest,omitempty"` // Digest for reference content for dockerfile Dockerfile string `json:"dockerfile,omitempty"` }
ImportContentDigests Digest of content to use in the final import
type ImportDescriptor ¶
ImportDescriptor struct for ImportDescriptor
type ImportDistribution ¶
type ImportDistribution struct { Name string `json:"name"` Version string `json:"version"` IdLike string `json:"idLike"` }
ImportDistribution struct for ImportDistribution
type ImportPackage ¶
type ImportPackage struct { Id string `json:"id,omitempty"` Name string `json:"name"` Version string `json:"version"` Type string `json:"type"` FoundBy string `json:"foundBy,omitempty"` Locations []ImportPackageLocation `json:"locations"` Licenses []string `json:"licenses"` Language string `json:"language"` Cpes []string `json:"cpes"` Purl string `json:"purl,omitempty"` MetadataType string `json:"metadataType"` Metadata interface{} `json:"metadata,omitempty"` }
ImportPackage struct for ImportPackage
type ImportPackageLocation ¶
type ImportPackageLocation struct { Path string `json:"path"` LayerID string `json:"layerID,omitempty"` }
ImportPackageLocation struct for ImportPackageLocation
type ImportPackageRelationship ¶
type ImportPackageRelationship struct { Parent string `json:"parent"` Child string `json:"child"` Type string `json:"type"` Metadata interface{} `json:"metadata,omitempty"` }
ImportPackageRelationship struct for ImportPackageRelationship
type ImportSchema ¶
ImportSchema struct for ImportSchema
type ImportSource ¶
type ImportSource struct { Type string `json:"type"` Target interface{} `json:"target"` }
ImportSource struct for ImportSource
type ImportsApiService ¶
type ImportsApiService service
ImportsApiService ImportsApi service
func (*ImportsApiService) CreateOperation ¶
func (a *ImportsApiService) CreateOperation(ctx _context.Context) (ImageImportOperation, *_nethttp.Response, error)
CreateOperation Begin the import of an image analyzed by Syft into the system
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ImageImportOperation
func (*ImportsApiService) GetOperation ¶
func (a *ImportsApiService) GetOperation(ctx _context.Context, operationId string) (ImageImportOperation, *_nethttp.Response, error)
GetOperation Get detail on a single import
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
@return ImageImportOperation
func (*ImportsApiService) ImportImageConfig ¶
func (a *ImportsApiService) ImportImageConfig(ctx _context.Context, operationId string, contents interface{}) (ImageImportContentResponse, *_nethttp.Response, error)
ImportImageConfig Import a docker or OCI image config to associate with the image
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
- @param contents
@return ImageImportContentResponse
func (*ImportsApiService) ImportImageDockerfile ¶
func (a *ImportsApiService) ImportImageDockerfile(ctx _context.Context, operationId string, contents string) (ImageImportContentResponse, *_nethttp.Response, error)
ImportImageDockerfile Begin the import of an image analyzed by Syft into the system
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
- @param contents
@return ImageImportContentResponse
func (*ImportsApiService) ImportImageManifest ¶
func (a *ImportsApiService) ImportImageManifest(ctx _context.Context, operationId string, contents interface{}) (ImageImportContentResponse, *_nethttp.Response, error)
ImportImageManifest Import a docker or OCI distribution manifest to associate with the image
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
- @param contents
@return ImageImportContentResponse
func (*ImportsApiService) ImportImagePackages ¶
func (a *ImportsApiService) ImportImagePackages(ctx _context.Context, operationId string, sbom ImagePackageManifest) (ImageImportContentResponse, *_nethttp.Response, error)
ImportImagePackages Begin the import of an image analyzed by Syft into the system
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
- @param sbom
@return ImageImportContentResponse
func (*ImportsApiService) ImportImageParentManifest ¶
func (a *ImportsApiService) ImportImageParentManifest(ctx _context.Context, operationId string, contents interface{}) (ImageImportContentResponse, *_nethttp.Response, error)
ImportImageParentManifest Import a docker or OCI distribution manifest list to associate with the image
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
- @param contents
@return ImageImportContentResponse
func (*ImportsApiService) InvalidateOperation ¶
func (a *ImportsApiService) InvalidateOperation(ctx _context.Context, operationId string) (ImageImportOperation, *_nethttp.Response, error)
InvalidateOperation Invalidate operation ID so it can be garbage collected
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
@return ImageImportOperation
func (*ImportsApiService) ListImportDockerfiles ¶
func (a *ImportsApiService) ListImportDockerfiles(ctx _context.Context, operationId string) ([]string, *_nethttp.Response, error)
ListImportDockerfiles List uploaded dockerfiles
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
@return []string
func (*ImportsApiService) ListImportImageConfigs ¶
func (a *ImportsApiService) ListImportImageConfigs(ctx _context.Context, operationId string) ([]string, *_nethttp.Response, error)
ListImportImageConfigs List uploaded image configs
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
@return []string
func (*ImportsApiService) ListImportImageManifests ¶
func (a *ImportsApiService) ListImportImageManifests(ctx _context.Context, operationId string) ([]string, *_nethttp.Response, error)
ListImportImageManifests List uploaded image manifests
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
@return []string
func (*ImportsApiService) ListImportPackages ¶
func (a *ImportsApiService) ListImportPackages(ctx _context.Context, operationId string) ([]string, *_nethttp.Response, error)
ListImportPackages List uploaded package manifests
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
@return []string
func (*ImportsApiService) ListImportParentManifests ¶
func (a *ImportsApiService) ListImportParentManifests(ctx _context.Context, operationId string) ([]string, *_nethttp.Response, error)
ListImportParentManifests List uploaded parent manifests (manifest lists for a tag)
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param operationId
@return []string
func (*ImportsApiService) ListOperations ¶
func (a *ImportsApiService) ListOperations(ctx _context.Context) ([]ImageImportOperation, *_nethttp.Response, error)
ListOperations Lists in-progress imports
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []ImageImportOperation
type ListAccountsOpts ¶
ListAccountsOpts Optional parameters for the method 'ListAccounts'
type ListAnalysisArchiveRulesOpts ¶
ListAnalysisArchiveRulesOpts Optional parameters for the method 'ListAnalysisArchiveRules'
type ListEventsOpts ¶
type ListEventsOpts struct { SourceServicename optional.String SourceHostid optional.String EventType optional.String ResourceType optional.String ResourceId optional.String Level optional.String Since optional.String Before optional.String Page optional.Int32 Limit optional.Int32 XAnchoreAccount optional.String }
ListEventsOpts Optional parameters for the method 'ListEvents'
type ListImageContentByImageidOpts ¶
ListImageContentByImageidOpts Optional parameters for the method 'ListImageContentByImageid'
type ListImageContentOpts ¶
ListImageContentOpts Optional parameters for the method 'ListImageContent'
type ListImageMetadataOpts ¶
ListImageMetadataOpts Optional parameters for the method 'ListImageMetadata'
type ListImagesOpts ¶
type ListImagesOpts struct { History optional.Bool Fulltag optional.String ImageStatus optional.String AnalysisStatus optional.String XAnchoreAccount optional.String }
ListImagesOpts Optional parameters for the method 'ListImages'
type ListImagetagsOpts ¶
type ListImagetagsOpts struct {}
ListImagetagsOpts Optional parameters for the method 'ListImagetags'
type ListPoliciesOpts ¶
ListPoliciesOpts Optional parameters for the method 'ListPolicies'
type ListRegistriesOpts ¶
ListRegistriesOpts Optional parameters for the method 'ListRegistries'
type ListSubscriptionsOpts ¶
type ListSubscriptionsOpts struct { SubscriptionKey optional.String SubscriptionType optional.String XAnchoreAccount optional.String }
ListSubscriptionsOpts Optional parameters for the method 'ListSubscriptions'
type LocalAnalysisSource ¶
type LocalAnalysisSource struct {
Digest string `json:"digest,omitempty"`
}
LocalAnalysisSource struct for LocalAnalysisSource
type MalwareScan ¶
type MalwareScan struct { // Indicates if the scanner is enabled Enabled bool `json:"enabled,omitempty"` // The name of the scanner that produced the finding Scanner string `json:"scanner,omitempty"` // Open schema for scanner-specific metadata related to the scan result Metadata interface{} `json:"metadata,omitempty"` Findings []MalwareScanFindings `json:"findings,omitempty"` }
MalwareScan A single scan from a scanner
type MalwareScanFindings ¶
type MalwareScanFindings struct { // A path for a file in the image's rootfs Path string `json:"path,omitempty"` // The malware signature found at the path Signature string `json:"signature,omitempty"` }
MalwareScanFindings struct for MalwareScanFindings
type MappingRule ¶
type MappingRule struct { Id string `json:"id,omitempty"` Name string `json:"name"` WhitelistIds []string `json:"whitelist_ids,omitempty"` // Optional single policy to evalute, if set will override any value in policy_ids, for backwards compatibility. Generally, policy_ids should be used even with a array of length 1. PolicyId string `json:"policy_id,omitempty"` // List of policyIds to evaluate in order, to completion PolicyIds []string `json:"policy_ids,omitempty"` Registry string `json:"registry"` Repository string `json:"repository"` Image ImageRef `json:"image"` }
MappingRule struct for MappingRule
type MetadataResponse ¶
type MetadataResponse struct { ImageDigest string `json:"imageDigest,omitempty"` MetadataType string `json:"metadata_type,omitempty"` Metadata interface{} `json:"metadata,omitempty"` }
MetadataResponse Generic wrapper for metadata listings from images
type NotificationBase ¶
type NotificationBase struct { QueueId string `json:"queueId,omitempty"` UserId string `json:"userId,omitempty"` DataId string `json:"dataId,omitempty"` CreatedAt int32 `json:"created_at,omitempty"` LastUpdated int32 `json:"last_updated,omitempty"` RecordStateKey string `json:"record_state_key,omitempty"` RecordStateVal *string `json:"record_state_val,omitempty"` Tries int32 `json:"tries,omitempty"` MaxTries int32 `json:"max_tries,omitempty"` }
NotificationBase base object for Notifications (every notification has this basic structure)
type NvdDataObject ¶
type NvdDataObject struct { // NVD Vulnerability ID Id string `json:"id,omitempty"` CvssV2 Cvssv2Scores `json:"cvss_v2,omitempty"` CvssV3 Cvssv3Scores `json:"cvss_v3,omitempty"` }
NvdDataObject struct for NvdDataObject
type PackageReference ¶
type PackageReference struct { // Package name Name string `json:"name,omitempty"` // A version for the package. If null, then references all versions Version *string `json:"version,omitempty"` // Package type (e.g. package, rpm, deb, apk, jar, npm, gem, ...) Type string `json:"type,omitempty"` }
PackageReference A record of a software item which is vulnerable or carries a fix for a vulnerability
type PaginatedImageList ¶
type PaginatedImageList struct { // The page number returned (should match the requested page query string param) Page string `json:"page,omitempty"` // True if additional pages exist (page + 1) or False if this is the last page NextPage string `json:"next_page,omitempty"` // The number of items sent in this response ReturnedCount int32 `json:"returned_count,omitempty"` Images []ImageWithPackages `json:"images,omitempty"` }
PaginatedImageList Pagination wrapped list of images that match some filter
type PaginatedImageListAllOf ¶
type PaginatedImageListAllOf struct {
Images []ImageWithPackages `json:"images,omitempty"`
}
PaginatedImageListAllOf struct for PaginatedImageListAllOf
type PaginatedVulnerabilityList ¶
type PaginatedVulnerabilityList struct { // The page number returned (should match the requested page query string param) Page string `json:"page,omitempty"` // True if additional pages exist (page + 1) or False if this is the last page NextPage string `json:"next_page,omitempty"` // The number of items sent in this response ReturnedCount int32 `json:"returned_count,omitempty"` // The listing of matching vulnerabilities for the query subject to pagination Vulnerabilities []StandaloneVulnerability `json:"vulnerabilities,omitempty"` }
PaginatedVulnerabilityList A paginated listing of vulnerability records sorted by ID in descending order
type PaginatedVulnerabilityListAllOf ¶
type PaginatedVulnerabilityListAllOf struct { // The listing of matching vulnerabilities for the query subject to pagination Vulnerabilities []StandaloneVulnerability `json:"vulnerabilities,omitempty"` }
PaginatedVulnerabilityListAllOf struct for PaginatedVulnerabilityListAllOf
type PaginatedVulnerableImageList ¶
type PaginatedVulnerableImageList struct { // The page number returned (should match the requested page query string param) Page string `json:"page,omitempty"` // True if additional pages exist (page + 1) or False if this is the last page NextPage string `json:"next_page,omitempty"` // The number of items sent in this response ReturnedCount int32 `json:"returned_count,omitempty"` Images []VulnerableImage `json:"images,omitempty"` }
PaginatedVulnerableImageList Pagination wrapped list of images with vulnerabilties that match some filter
type PaginatedVulnerableImageListAllOf ¶
type PaginatedVulnerableImageListAllOf struct {
Images []VulnerableImage `json:"images,omitempty"`
}
PaginatedVulnerableImageListAllOf struct for PaginatedVulnerableImageListAllOf
type PaginationProperties ¶
type PaginationProperties struct { // The page number returned (should match the requested page query string param) Page string `json:"page,omitempty"` // True if additional pages exist (page + 1) or False if this is the last page NextPage string `json:"next_page,omitempty"` // The number of items sent in this response ReturnedCount int32 `json:"returned_count,omitempty"` }
PaginationProperties Properties for common pagination handling to be included in any wrapping object that needs pagination elements
type PoliciesApiService ¶
type PoliciesApiService service
PoliciesApiService PoliciesApi service
func (*PoliciesApiService) AddPolicy ¶
func (a *PoliciesApiService) AddPolicy(ctx _context.Context, bundle PolicyBundle, localVarOptionals *AddPolicyOpts) (PolicyBundleRecord, *_nethttp.Response, error)
AddPolicy Add a new policy Adds a new policy bundle to the system
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param bundle
- @param optional nil or *AddPolicyOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return PolicyBundleRecord
func (*PoliciesApiService) DeletePolicy ¶
func (a *PoliciesApiService) DeletePolicy(ctx _context.Context, policyId string, localVarOptionals *DeletePolicyOpts) (*_nethttp.Response, error)
DeletePolicy Delete policy Delete the specified policy
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param policyId
- @param optional nil or *DeletePolicyOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
func (*PoliciesApiService) GetPolicy ¶
func (a *PoliciesApiService) GetPolicy(ctx _context.Context, policyId string, localVarOptionals *GetPolicyOpts) ([]PolicyBundleRecord, *_nethttp.Response, error)
GetPolicy Get specific policy Get the policy bundle content
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param policyId
- @param optional nil or *GetPolicyOpts - Optional Parameters:
- @param "Detail" (optional.Bool) - Include policy bundle detail in the form of the full bundle content for each entry
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []PolicyBundleRecord
func (*PoliciesApiService) ListPolicies ¶
func (a *PoliciesApiService) ListPolicies(ctx _context.Context, localVarOptionals *ListPoliciesOpts) ([]PolicyBundleRecord, *_nethttp.Response, error)
ListPolicies List policies List all saved policy bundles
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *ListPoliciesOpts - Optional Parameters:
- @param "Detail" (optional.Bool) - Include policy bundle detail in the form of the full bundle content for each entry
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []PolicyBundleRecord
func (*PoliciesApiService) UpdatePolicy ¶
func (a *PoliciesApiService) UpdatePolicy(ctx _context.Context, policyId string, bundle PolicyBundleRecord, localVarOptionals *UpdatePolicyOpts) ([]PolicyBundleRecord, *_nethttp.Response, error)
UpdatePolicy Update policy Update/replace and existing policy
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param policyId
- @param bundle
- @param optional nil or *UpdatePolicyOpts - Optional Parameters:
- @param "Active" (optional.Bool) - Mark policy as active
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []PolicyBundleRecord
type Policy ¶
type Policy struct { Id string `json:"id"` Name string `json:"name,omitempty"` Comment string `json:"comment,omitempty"` Version string `json:"version"` Rules []PolicyRule `json:"rules,omitempty"` }
Policy struct for Policy
type PolicyBundle ¶
type PolicyBundle struct { // Id of the bundle Id string `json:"id"` // Human readable name for the bundle Name string `json:"name,omitempty"` // Description of the bundle, human readable Comment string `json:"comment,omitempty"` // Version id for this bundle format Version string `json:"version"` // Whitelists which define which policy matches to disregard explicitly in the final policy decision Whitelists []Whitelist `json:"whitelists,omitempty"` // Policies which define the go/stop/warn status of an image using rule matches on image properties Policies []Policy `json:"policies"` // Mapping rules for defining which policy and whitelist(s) to apply to an image based on a match of the image tag or id. Evaluated in order. Mappings []MappingRule `json:"mappings"` // List of mapping rules that define which images should always be passed (unless also on the blacklist), regardless of policy result. WhitelistedImages []ImageSelectionRule `json:"whitelisted_images,omitempty"` // List of mapping rules that define which images should always result in a STOP/FAIL policy result regardless of policy content or presence in whitelisted_images BlacklistedImages []ImageSelectionRule `json:"blacklisted_images,omitempty"` }
PolicyBundle A bundle containing a set of policies, whitelists, and rules for mapping them to specific images
type PolicyBundleRecord ¶
type PolicyBundleRecord struct { CreatedAt time.Time `json:"created_at,omitempty"` LastUpdated time.Time `json:"last_updated,omitempty"` // The bundle's identifier PolicyId string `json:"policyId,omitempty"` // True if the bundle is currently defined to be used automatically Active bool `json:"active,omitempty"` // UserId of the user that owns the bundle UserId string `json:"userId,omitempty"` // Source location of where the policy bundle originated PolicySource string `json:"policy_source,omitempty"` Policybundle PolicyBundle `json:"policybundle,omitempty"` }
PolicyBundleRecord A policy bundle plus some metadata
type PolicyEvalNotification ¶
type PolicyEvalNotification struct { QueueId string `json:"queueId,omitempty"` UserId string `json:"userId,omitempty"` DataId string `json:"dataId,omitempty"` CreatedAt int32 `json:"created_at,omitempty"` LastUpdated int32 `json:"last_updated,omitempty"` RecordStateKey string `json:"record_state_key,omitempty"` RecordStateVal *string `json:"record_state_val,omitempty"` Tries int32 `json:"tries,omitempty"` MaxTries int32 `json:"max_tries,omitempty"` Data PolicyEvalNotificationData `json:"data,omitempty"` }
PolicyEvalNotification struct for PolicyEvalNotification
type PolicyEvalNotificationAllOf ¶
type PolicyEvalNotificationAllOf struct {
Data PolicyEvalNotificationData `json:"data,omitempty"`
}
PolicyEvalNotificationAllOf The Notification Object definition for Policy Eval Notifications
type PolicyEvalNotificationData ¶
type PolicyEvalNotificationData struct { NotificationUser string `json:"notification_user,omitempty"` NotificationUserEmail string `json:"notification_user_email,omitempty"` NotificationType string `json:"notification_type,omitempty"` NotificationPayload PolicyEvalNotificationPayload `json:"notification_payload,omitempty"` }
PolicyEvalNotificationData struct for PolicyEvalNotificationData
type PolicyEvalNotificationDataAllOf ¶
type PolicyEvalNotificationDataAllOf struct {
NotificationPayload PolicyEvalNotificationPayload `json:"notification_payload,omitempty"`
}
PolicyEvalNotificationDataAllOf struct for PolicyEvalNotificationDataAllOf
type PolicyEvalNotificationPayload ¶
type PolicyEvalNotificationPayload struct { UserId string `json:"userId,omitempty"` SubscriptionKey string `json:"subscription_key,omitempty"` SubscriptionType string `json:"subscription_type,omitempty"` NotificationId string `json:"notificationId,omitempty"` // The Current Policy Evaluation result CurrEval interface{} `json:"curr_eval,omitempty"` // The Previous Policy Evaluation result LastEval interface{} `json:"last_eval,omitempty"` // List of Corresponding Image Annotations Annotations *interface{} `json:"annotations,omitempty"` }
PolicyEvalNotificationPayload struct for PolicyEvalNotificationPayload
type PolicyEvalNotificationPayloadAllOf ¶
type PolicyEvalNotificationPayloadAllOf struct { // The Current Policy Evaluation result CurrEval interface{} `json:"curr_eval,omitempty"` // The Previous Policy Evaluation result LastEval interface{} `json:"last_eval,omitempty"` // List of Corresponding Image Annotations Annotations *interface{} `json:"annotations,omitempty"` }
PolicyEvalNotificationPayloadAllOf struct for PolicyEvalNotificationPayloadAllOf
type PolicyRule ¶
type PolicyRule struct { Id string `json:"id,omitempty"` Gate string `json:"gate"` Trigger string `json:"trigger"` Action string `json:"action"` Params []PolicyRuleParams `json:"params,omitempty"` }
PolicyRule A rule that defines and decision value if the match is found true for a given image.
type PolicyRuleParams ¶
PolicyRuleParams struct for PolicyRuleParams
type PostSystemFeedsOpts ¶
PostSystemFeedsOpts Optional parameters for the method 'PostSystemFeeds'
type QueryApiService ¶
type QueryApiService service
QueryApiService QueryApi service
func (*QueryApiService) QueryImagesByPackage ¶
func (a *QueryApiService) QueryImagesByPackage(ctx _context.Context, name string, localVarOptionals *QueryImagesByPackageOpts) (PaginatedImageList, *_nethttp.Response, error)
QueryImagesByPackage List of images containing given package Filterable query interface to search for images containing specified package
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Name of package to search for (e.g. sed)
- @param optional nil or *QueryImagesByPackageOpts - Optional Parameters:
- @param "PackageType" (optional.String) - Type of package to filter on (e.g. dpkg)
- @param "Version" (optional.String) - Version of named package to filter on (e.g. 4.4-1)
- @param "Page" (optional.String) - The page of results to fetch. Pages start at 1
- @param "Limit" (optional.Int32) - Limit the number of records for the requested page. If omitted or set to 0, return all results in a single page
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return PaginatedImageList
func (*QueryApiService) QueryImagesByVulnerability ¶
func (a *QueryApiService) QueryImagesByVulnerability(ctx _context.Context, vulnerabilityId string, localVarOptionals *QueryImagesByVulnerabilityOpts) (PaginatedVulnerableImageList, *_nethttp.Response, error)
QueryImagesByVulnerability List images vulnerable to the specific vulnerability ID. Returns a listing of images and their respective packages vulnerable to the given vulnerability ID
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vulnerabilityId The ID of the vulnerability to search for within all images stored in anchore-engine (e.g. CVE-1999-0001)
- @param optional nil or *QueryImagesByVulnerabilityOpts - Optional Parameters:
- @param "Namespace" (optional.String) - Filter results to images within the given vulnerability namespace (e.g. debian:8, ubuntu:14.04)
- @param "AffectedPackage" (optional.String) - Filter results to images with vulnable packages with the given package name (e.g. libssl)
- @param "Severity" (optional.String) - Filter results to vulnerable package/vulnerability with the given severity
- @param "VendorOnly" (optional.Bool) - Filter results to include only vulnerabilities that are not marked as invalid by upstream OS vendor data
- @param "Page" (optional.Int32) - The page of results to fetch. Pages start at 1
- @param "Limit" (optional.Int32) - Limit the number of records for the requested page. If omitted or set to 0, return all results in a single page
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return PaginatedVulnerableImageList
func (*QueryApiService) QueryVulnerabilities ¶
func (a *QueryApiService) QueryVulnerabilities(ctx _context.Context, id []string, localVarOptionals *QueryVulnerabilitiesOpts) (PaginatedVulnerabilityList, *_nethttp.Response, error)
QueryVulnerabilities Listing information about given vulnerability List (w/filters) vulnerability records known by the system, with affected packages information if present
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The ID of the vulnerability (e.g. CVE-1999-0001)
- @param optional nil or *QueryVulnerabilitiesOpts - Optional Parameters:
- @param "AffectedPackage" (optional.String) - Filter results by specified package name (e.g. sed)
- @param "AffectedPackageVersion" (optional.String) - Filter results by specified package version (e.g. 4.4-1)
- @param "Page" (optional.String) - The page of results to fetch. Pages start at 1
- @param "Limit" (optional.Int32) - Limit the number of records for the requested page. If omitted or set to 0, return all results in a single page
- @param "Namespace" (optional.Interface of []string) - Namespace(s) to filter vulnerability records by
@return PaginatedVulnerabilityList
type QueryImagesByPackageOpts ¶
type QueryImagesByPackageOpts struct { PackageType optional.String Version optional.String Page optional.String Limit optional.Int32 XAnchoreAccount optional.String }
QueryImagesByPackageOpts Optional parameters for the method 'QueryImagesByPackage'
type QueryImagesByVulnerabilityOpts ¶
type QueryImagesByVulnerabilityOpts struct { Namespace optional.String AffectedPackage optional.String Severity optional.String VendorOnly optional.Bool Page optional.Int32 Limit optional.Int32 XAnchoreAccount optional.String }
QueryImagesByVulnerabilityOpts Optional parameters for the method 'QueryImagesByVulnerability'
type QueryVulnerabilitiesOpts ¶
type QueryVulnerabilitiesOpts struct { AffectedPackage optional.String AffectedPackageVersion optional.String Page optional.String Limit optional.Int32 Namespace optional.Interface }
QueryVulnerabilitiesOpts Optional parameters for the method 'QueryVulnerabilities'
type RegexContentMatch ¶
type RegexContentMatch struct { // The name associated with the regular expression Name string `json:"name,omitempty"` // The regular expression used for the match Regex string `json:"regex,omitempty"` // A list of line numbers in the file that matched the regex Lines []int32 `json:"lines,omitempty"` }
RegexContentMatch Match of a named regex on a file
type RegistriesApiService ¶
type RegistriesApiService service
RegistriesApiService RegistriesApi service
func (*RegistriesApiService) CreateRegistry ¶
func (a *RegistriesApiService) CreateRegistry(ctx _context.Context, registrydata RegistryConfigurationRequest, localVarOptionals *CreateRegistryOpts) ([]RegistryConfiguration, *_nethttp.Response, error)
CreateRegistry Add a new registry Adds a new registry to the system
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param registrydata
- @param optional nil or *CreateRegistryOpts - Optional Parameters:
- @param "Validate" (optional.Bool) - flag to determine whether or not to validate registry/credential at registry add time
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []RegistryConfiguration
func (*RegistriesApiService) DeleteRegistry ¶
func (a *RegistriesApiService) DeleteRegistry(ctx _context.Context, registry string, localVarOptionals *DeleteRegistryOpts) (*_nethttp.Response, error)
DeleteRegistry Delete a registry configuration Delete a registry configuration record from the system. Does not remove any images.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param registry
- @param optional nil or *DeleteRegistryOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
func (*RegistriesApiService) GetRegistry ¶
func (a *RegistriesApiService) GetRegistry(ctx _context.Context, registry string, localVarOptionals *GetRegistryOpts) ([]RegistryConfiguration, *_nethttp.Response, error)
GetRegistry Get a specific registry configuration Get information on a specific registry
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param registry
- @param optional nil or *GetRegistryOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []RegistryConfiguration
func (*RegistriesApiService) ListRegistries ¶
func (a *RegistriesApiService) ListRegistries(ctx _context.Context, localVarOptionals *ListRegistriesOpts) ([]RegistryConfiguration, *_nethttp.Response, error)
ListRegistries List configured registries List all configured registries the system can/will watch
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *ListRegistriesOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []RegistryConfiguration
func (*RegistriesApiService) UpdateRegistry ¶
func (a *RegistriesApiService) UpdateRegistry(ctx _context.Context, registry string, registrydata RegistryConfigurationRequest, localVarOptionals *UpdateRegistryOpts) ([]RegistryConfiguration, *_nethttp.Response, error)
UpdateRegistry Update/replace a registry configuration Replaces an existing registry record with the given record
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param registry
- @param registrydata
- @param optional nil or *UpdateRegistryOpts - Optional Parameters:
- @param "Validate" (optional.Bool) - flag to determine whether or not to validate registry/credential at registry update time
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []RegistryConfiguration
type RegistryConfiguration ¶
type RegistryConfiguration struct { CreatedAt time.Time `json:"created_at,omitempty"` LastUpated time.Time `json:"last_upated,omitempty"` // Username portion of credential to use for this registry RegistryUser string `json:"registry_user,omitempty"` // Type of registry RegistryType string `json:"registry_type,omitempty"` // Engine user that owns this registry entry UserId string `json:"userId,omitempty"` // hostname:port string for accessing the registry, as would be used in a docker pull operation Registry string `json:"registry,omitempty"` // human readable name associated with registry record RegistryName string `json:"registry_name,omitempty"` // Use TLS/SSL verification for the registry URL RegistryVerify bool `json:"registry_verify,omitempty"` }
RegistryConfiguration A registry entry describing the endpoint and credentials for a registry to pull images from
type RegistryConfigurationRequest ¶
type RegistryConfigurationRequest struct { // Username portion of credential to use for this registry RegistryUser string `json:"registry_user,omitempty"` // Password portion of credential to use for this registry RegistryPass string `json:"registry_pass,omitempty"` // Type of registry RegistryType string `json:"registry_type,omitempty"` // hostname:port string for accessing the registry, as would be used in a docker pull operation. May include some or all of a repository and wildcards (e.g. docker.io/library/_* or gcr.io/myproject/myrepository) Registry string `json:"registry,omitempty"` // human readable name associated with registry record RegistryName string `json:"registry_name,omitempty"` // Use TLS/SSL verification for the registry URL RegistryVerify bool `json:"registry_verify,omitempty"` }
RegistryConfigurationRequest A registry record describing the endpoint and credentials for a registry
type RegistryDigestSource ¶
type RegistryDigestSource struct { // A digest-based pullstring (e.g. docker.io/nginx@sha256:123abc) Pullstring string `json:"pullstring"` // A valid docker tag reference (e.g. docker.io/nginx:latest) that will be associated with the image but not used to pull the image. Tag string `json:"tag"` // Optional override of the image creation time to support proper tag history construction in cases of out-of-order analysis compared to registry history for the tag CreationTimestampOverride time.Time `json:"creation_timestamp_override,omitempty"` // Base64 encoded content of the dockerfile used to build the image, if available. Dockerfile string `json:"dockerfile,omitempty"` }
RegistryDigestSource An image reference using a digest in a registry, includes some extra tag and timestamp info in addition to the pull string to allow proper tag history reconstruction.
type RegistryTagSource ¶
type RegistryTagSource struct { // A docker pull string (e.g. docker.io/nginx:latest, or docker.io/nginx@sha256:abd) to retrieve the image Pullstring string `json:"pullstring"` // Base64 encoded content of the dockerfile used to build the image, if available. Dockerfile string `json:"dockerfile,omitempty"` }
RegistryTagSource An image reference using a tag in a registry, this is the most common source type.
type RepositoryCredentialsApiService ¶
type RepositoryCredentialsApiService service
RepositoryCredentialsApiService RepositoryCredentialsApi service
func (*RepositoryCredentialsApiService) AddRepository ¶
func (a *RepositoryCredentialsApiService) AddRepository(ctx _context.Context, repository string, localVarOptionals *AddRepositoryOpts) ([]Subscription, *_nethttp.Response, error)
AddRepository Add repository to watch
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param repository full repository to add e.g. docker.io/library/alpine
- @param optional nil or *AddRepositoryOpts - Optional Parameters:
- @param "Autosubscribe" (optional.Bool) - flag to enable/disable auto tag_update activation when new images from a repo are added
- @param "Lookuptag" (optional.String) - use specified existing tag to perform repo scan (default is 'latest')
- @param "Dryrun" (optional.Bool) - flag to return tags in the repository without actually watching the repository, default is false
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []Subscription
type RetrievedFile ¶
type RetrievedFile struct { Path string `json:"path,omitempty"` B64Content string `json:"b64_content,omitempty"` }
RetrievedFile The retrieved file entry including content (b64 encoded)
type SecretSearchResult ¶
type SecretSearchResult struct { Path string `json:"path,omitempty"` Matches []RegexContentMatch `json:"matches,omitempty"` }
SecretSearchResult The retrieved file entry including content (b64 encoded)
type ServerConfiguration ¶
type ServerConfiguration struct { Url string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerVariable ¶
ServerVariable stores the information about a server variable
type Service ¶
type Service struct { // The unique id of the host on which the service is executing Hostid string `json:"hostid,omitempty"` // Registered service name Servicename string `json:"servicename,omitempty"` // The url to reach the service, including port as needed BaseUrl string `json:"base_url,omitempty"` // A state indicating the condition of the service. Normal operation is 'registered' StatusMessage string `json:"status_message,omitempty"` ServiceDetail StatusResponse `json:"service_detail,omitempty"` Status bool `json:"status,omitempty"` // The version of the service as reported by the service implementation on registration Version string `json:"version,omitempty"` }
Service A service status record
type ServiceVersion ¶
type ServiceVersion struct { Service ServiceVersionService `json:"service,omitempty"` Api ServiceVersionApi `json:"api,omitempty"` Db ServiceVersionDb `json:"db,omitempty"` }
ServiceVersion Version information for a service
type ServiceVersionApi ¶
type ServiceVersionApi struct { // Semantic version of the api Version string `json:"version,omitempty"` }
ServiceVersionApi Api Version string
type ServiceVersionDb ¶
type ServiceVersionDb struct { // Semantic version of the db schema SchemaVersion string `json:"schema_version,omitempty"` }
ServiceVersionDb struct for ServiceVersionDb
type ServiceVersionService ¶
type ServiceVersionService struct { // Semantic Version string of the service implementation Version string `json:"version,omitempty"` }
ServiceVersionService struct for ServiceVersionService
type StandaloneVulnerability ¶
type StandaloneVulnerability struct { // Vulnerability identifier. May be CVE-X, RHSA-X, etc. Not necessarily unique across namespaces Id string `json:"id,omitempty"` // The namespace for the vulnerability record to avoid conflicts for the same id in different distros or sources (e.g. deb vs ubuntu for same CVE) Namespace string `json:"namespace,omitempty"` // The array of packages (typically packages) that are vulnerable-to or provide fixes-for this vulnerability AffectedPackages []PackageReference `json:"affected_packages,omitempty"` // Severity label specific to the namepsace Severity string `json:"severity,omitempty"` // URL for the upstream CVE record in the reporting source (e.g. ubuntu security tracker) Link string `json:"link,omitempty"` // List of Nvd Data objects NvdData []NvdDataObject `json:"nvd_data,omitempty"` // List of Vendor Data objects VendorData []VendorDataObject `json:"vendor_data,omitempty"` // Description of the vulnerability if available Description string `json:"description,omitempty"` // List of references including References []VulnerabilityReference `json:"references,omitempty"` }
StandaloneVulnerability A single vulnerability record in a single namespace, the unique key is the combination of the id and namespace
type StatusResponse ¶
type StatusResponse struct { Available bool `json:"available,omitempty"` Busy bool `json:"busy,omitempty"` Up bool `json:"up,omitempty"` Message string `json:"message,omitempty"` Version string `json:"version,omitempty"` DbVersion string `json:"db_version,omitempty"` Detail interface{} `json:"detail,omitempty"` }
StatusResponse System status response
type Subscription ¶
type Subscription struct { // The key value that the subscription references. E.g. a tag value or a repo name. SubscriptionKey string `json:"subscription_key,omitempty"` // The type of the subscription SubscriptionType string `json:"subscription_type,omitempty"` // The value of the subscription target SubscriptionValue *string `json:"subscription_value,omitempty"` // The userId of the subscribed user UserId string `json:"userId,omitempty"` // Is the subscription currently active Active bool `json:"active,omitempty"` // the unique id for this subscription record SubscriptionId string `json:"subscription_id,omitempty"` }
Subscription Subscription entry
type SubscriptionRequest ¶
type SubscriptionRequest struct { SubscriptionKey string `json:"subscription_key,omitempty"` SubscriptionValue *string `json:"subscription_value,omitempty"` SubscriptionType string `json:"subscription_type,omitempty"` }
SubscriptionRequest A subscription entry to add to the system
type SubscriptionUpdate ¶
type SubscriptionUpdate struct { // The new subscription value, e.g. the new tag to be subscribed to SubscriptionValue *string `json:"subscription_value,omitempty"` // Toggle the subscription processing on or off Active bool `json:"active,omitempty"` }
SubscriptionUpdate A modification to a subscription entry to change its status or value
type SubscriptionsApiService ¶
type SubscriptionsApiService service
SubscriptionsApiService SubscriptionsApi service
func (*SubscriptionsApiService) AddSubscription ¶
func (a *SubscriptionsApiService) AddSubscription(ctx _context.Context, subscription SubscriptionRequest, localVarOptionals *AddSubscriptionOpts) ([]Subscription, *_nethttp.Response, error)
AddSubscription Add a subscription of a specific type Create a new subscription to watch a tag and get notifications of changes
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param subscription
- @param optional nil or *AddSubscriptionOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []Subscription
func (*SubscriptionsApiService) DeleteSubscription ¶
func (a *SubscriptionsApiService) DeleteSubscription(ctx _context.Context, subscriptionId string, localVarOptionals *DeleteSubscriptionOpts) (*_nethttp.Response, error)
DeleteSubscription Delete subscriptions of a specific type
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param subscriptionId
- @param optional nil or *DeleteSubscriptionOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
func (*SubscriptionsApiService) GetSubscription ¶
func (a *SubscriptionsApiService) GetSubscription(ctx _context.Context, subscriptionId string, localVarOptionals *GetSubscriptionOpts) ([]Subscription, *_nethttp.Response, error)
GetSubscription Get a specific subscription set
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param subscriptionId
- @param optional nil or *GetSubscriptionOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []Subscription
func (*SubscriptionsApiService) ListSubscriptions ¶
func (a *SubscriptionsApiService) ListSubscriptions(ctx _context.Context, localVarOptionals *ListSubscriptionsOpts) ([]Subscription, *_nethttp.Response, error)
ListSubscriptions List all subscriptions
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *ListSubscriptionsOpts - Optional Parameters:
- @param "SubscriptionKey" (optional.String) - filter only subscriptions matching key
- @param "SubscriptionType" (optional.String) - filter only subscriptions matching type
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []Subscription
func (*SubscriptionsApiService) UpdateSubscription ¶
func (a *SubscriptionsApiService) UpdateSubscription(ctx _context.Context, subscriptionId string, subscription SubscriptionUpdate, localVarOptionals *UpdateSubscriptionOpts) ([]Subscription, *_nethttp.Response, error)
UpdateSubscription Update an existing and specific subscription
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param subscriptionId
- @param subscription
- @param optional nil or *UpdateSubscriptionOpts - Optional Parameters:
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []Subscription
type SummariesApiService ¶
type SummariesApiService service
SummariesApiService SummariesApi service
func (*SummariesApiService) ListImagetags ¶
func (a *SummariesApiService) ListImagetags(ctx _context.Context, localVarOptionals *ListImagetagsOpts) ([]AnchoreImageTagSummary, *_nethttp.Response, error)
ListImagetags List all visible image digests and tags List all image tags visible to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *ListImagetagsOpts - Optional Parameters:
- @param "ImageStatus" (optional.Interface of []string) - Filter images in one or more states such as active, deleting. Defaults to active images only if unspecified
- @param "XAnchoreAccount" (optional.String) - An account name to change the resource scope of the request to that account, if permissions allow (admin only)
@return []AnchoreImageTagSummary
type SystemApiService ¶
type SystemApiService service
SystemApiService SystemApi service
func (*SystemApiService) DeleteFeed ¶
func (a *SystemApiService) DeleteFeed(ctx _context.Context, feed string) (*_nethttp.Response, error)
DeleteFeed Method for DeleteFeed Delete the groups and data for the feed and disable the feed itself
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param feed
func (*SystemApiService) DeleteFeedGroup ¶
func (a *SystemApiService) DeleteFeedGroup(ctx _context.Context, feed string, group string) (*_nethttp.Response, error)
DeleteFeedGroup Method for DeleteFeedGroup Delete the group data and disable the group itself
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param feed
- @param group
func (*SystemApiService) DeleteService ¶
func (a *SystemApiService) DeleteService(ctx _context.Context, servicename string, hostid string) (*_nethttp.Response, error)
DeleteService Delete the service config
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param servicename
- @param hostid
func (*SystemApiService) DescribeErrorCodes ¶
func (a *SystemApiService) DescribeErrorCodes(ctx _context.Context) ([]AnchoreErrorCode, *_nethttp.Response, error)
DescribeErrorCodes Describe anchore engine error codes. Describe anchore engine error codes.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []AnchoreErrorCode
func (*SystemApiService) DescribePolicy ¶
func (a *SystemApiService) DescribePolicy(ctx _context.Context) ([]GateSpec, *_nethttp.Response, error)
DescribePolicy Describe the policy language spec implemented by this service. Get the policy language spec for this service
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []GateSpec
func (*SystemApiService) GetServiceDetail ¶
func (a *SystemApiService) GetServiceDetail(ctx _context.Context) (SystemStatusResponse, *_nethttp.Response, error)
GetServiceDetail System status Get the system status including queue lengths
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return SystemStatusResponse
func (*SystemApiService) GetServicesByName ¶
func (a *SystemApiService) GetServicesByName(ctx _context.Context, servicename string) ([]Service, *_nethttp.Response, error)
GetServicesByName Get a service configuration and state
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param servicename
@return []Service
func (*SystemApiService) GetServicesByNameAndHost ¶
func (a *SystemApiService) GetServicesByNameAndHost(ctx _context.Context, servicename string, hostid string) ([]Service, *_nethttp.Response, error)
GetServicesByNameAndHost Get service config for a specific host
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param servicename
- @param hostid
@return []Service
func (*SystemApiService) GetStatus ¶
func (a *SystemApiService) GetStatus(ctx _context.Context) (StatusResponse, *_nethttp.Response, error)
GetStatus Service status Get the API service status
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return StatusResponse
func (*SystemApiService) GetSystemFeeds ¶
func (a *SystemApiService) GetSystemFeeds(ctx _context.Context) ([]FeedMetadata, *_nethttp.Response, error)
GetSystemFeeds list feeds operations and information Return a list of feed and their groups along with update and record count information. This data reflects the state of the policy engine, not the upstream feed service itself.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []FeedMetadata
func (*SystemApiService) ListServices ¶
func (a *SystemApiService) ListServices(ctx _context.Context) ([]Service, *_nethttp.Response, error)
ListServices List system services
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Service
func (*SystemApiService) PostSystemFeeds ¶
func (a *SystemApiService) PostSystemFeeds(ctx _context.Context, localVarOptionals *PostSystemFeedsOpts) ([]FeedSyncResult, *_nethttp.Response, error)
PostSystemFeeds trigger feeds operations Execute a synchronous feed sync operation. The response will block until complete, then return the result summary.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *PostSystemFeedsOpts - Optional Parameters:
- @param "Flush" (optional.Bool) - instruct system to flush existing data feeds records from anchore-engine
- @param "Sync" (optional.Bool) - instruct system to re-sync data feeds
@return []FeedSyncResult
func (*SystemApiService) TestWebhook ¶
func (a *SystemApiService) TestWebhook(ctx _context.Context, webhookType string, localVarOptionals *TestWebhookOpts) (*_nethttp.Response, error)
TestWebhook Adds the capabilities to test a webhook delivery for the given notification type Loads the Webhook configuration for webhook_type, and sends the notification out as a test
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param webhookType The Webhook Type that we should test
- @param optional nil or *TestWebhookOpts - Optional Parameters:
- @param "NotificationType" (optional.String) - What kind of Notification to send
func (*SystemApiService) ToggleFeedEnabled ¶
func (a *SystemApiService) ToggleFeedEnabled(ctx _context.Context, feed string, enabled bool) (FeedMetadata, *_nethttp.Response, error)
ToggleFeedEnabled Method for ToggleFeedEnabled Disable the feed so that it does not sync on subsequent sync operations
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param feed
- @param enabled
@return FeedMetadata
func (*SystemApiService) ToggleGroupEnabled ¶
func (a *SystemApiService) ToggleGroupEnabled(ctx _context.Context, feed string, group string, enabled bool) ([]FeedMetadata, *_nethttp.Response, error)
ToggleGroupEnabled Method for ToggleGroupEnabled Disable a specific group within a feed to not sync
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param feed
- @param group
- @param enabled
@return []FeedMetadata
type SystemStatusResponse ¶
type SystemStatusResponse struct { // A list of service objects ServiceStates []Service `json:"service_states,omitempty"` }
SystemStatusResponse System status response
type TagEntry ¶
type TagEntry struct { // The pullable string for the tag. E.g. \"docker.io/library/node:latest\" Pullstring string `json:"pullstring,omitempty"` // The registry hostname:port section of the pull string Registry string `json:"registry,omitempty"` // The repository section of the pull string Repository string `json:"repository,omitempty"` // The tag-only section of the pull string Tag string `json:"tag,omitempty"` // The timestamp at which the Anchore Engine detected this tag was mapped to the image digest. Does not necessarily indicate when the tag was actually pushed to the registry. DetectedAt time.Time `json:"detected_at,omitempty"` }
TagEntry A docker-pullable tag value as well as deconstructed components
type TagUpdateNotification ¶
type TagUpdateNotification struct { QueueId string `json:"queueId,omitempty"` UserId string `json:"userId,omitempty"` DataId string `json:"dataId,omitempty"` CreatedAt int32 `json:"created_at,omitempty"` LastUpdated int32 `json:"last_updated,omitempty"` RecordStateKey string `json:"record_state_key,omitempty"` RecordStateVal *string `json:"record_state_val,omitempty"` Tries int32 `json:"tries,omitempty"` MaxTries int32 `json:"max_tries,omitempty"` Data TagUpdateNotificationData `json:"data,omitempty"` }
TagUpdateNotification struct for TagUpdateNotification
type TagUpdateNotificationAllOf ¶
type TagUpdateNotificationAllOf struct {
Data TagUpdateNotificationData `json:"data,omitempty"`
}
TagUpdateNotificationAllOf The Notification Object definition for Tag Update Notifications
type TagUpdateNotificationData ¶
type TagUpdateNotificationData struct { NotificationUser string `json:"notification_user,omitempty"` NotificationUserEmail string `json:"notification_user_email,omitempty"` NotificationType string `json:"notification_type,omitempty"` NotificationPayload TagUpdateNotificationPayload `json:"notification_payload,omitempty"` }
TagUpdateNotificationData struct for TagUpdateNotificationData
type TagUpdateNotificationDataAllOf ¶
type TagUpdateNotificationDataAllOf struct {
NotificationPayload TagUpdateNotificationPayload `json:"notification_payload,omitempty"`
}
TagUpdateNotificationDataAllOf struct for TagUpdateNotificationDataAllOf
type TagUpdateNotificationPayload ¶
type TagUpdateNotificationPayload struct { UserId string `json:"userId,omitempty"` SubscriptionKey string `json:"subscription_key,omitempty"` SubscriptionType string `json:"subscription_type,omitempty"` NotificationId string `json:"notificationId,omitempty"` // A list containing the current image digest CurrEval []interface{} `json:"curr_eval,omitempty"` // A list containing the previous image digests LastEval []interface{} `json:"last_eval,omitempty"` // List of Corresponding Image Annotations Annotations *interface{} `json:"annotations,omitempty"` }
TagUpdateNotificationPayload struct for TagUpdateNotificationPayload
type TagUpdateNotificationPayloadAllOf ¶
type TagUpdateNotificationPayloadAllOf struct { // A list containing the current image digest CurrEval []interface{} `json:"curr_eval,omitempty"` // A list containing the previous image digests LastEval []interface{} `json:"last_eval,omitempty"` // List of Corresponding Image Annotations Annotations *interface{} `json:"annotations,omitempty"` }
TagUpdateNotificationPayloadAllOf struct for TagUpdateNotificationPayloadAllOf
type TestWebhookOpts ¶
TestWebhookOpts Optional parameters for the method 'TestWebhook'
type TokenResponse ¶
type TokenResponse struct { // The token content Token string `json:"token"` }
TokenResponse struct for TokenResponse
type TriggerParamSpec ¶
type TriggerParamSpec struct { // Parameter name as it appears in policy document Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` // An example value for the parameter (encoded as a string if the parameter is an object or list type) Example *string `json:"example,omitempty"` // State of the trigger parameter State string `json:"state,omitempty"` // The name of another trigger that supercedes this on functionally if this is deprecated SupercededBy *string `json:"superceded_by,omitempty"` // Is this a required parameter or optional Required bool `json:"required,omitempty"` // If present, a definition for validation of input. Typically a jsonschema object that can be used to validate an input against. Validator interface{} `json:"validator,omitempty"` }
TriggerParamSpec struct for TriggerParamSpec
type TriggerSpec ¶
type TriggerSpec struct { // Name of the trigger as it would appear in a policy document Name string `json:"name,omitempty"` // Trigger description for what it tests and when it will fire during evaluation Description string `json:"description,omitempty"` // State of the trigger State string `json:"state,omitempty"` // The name of another trigger that supercedes this on functionally if this is deprecated SupercededBy *string `json:"superceded_by,omitempty"` // The list of parameters that are valid for this trigger Parameters []TriggerParamSpec `json:"parameters,omitempty"` }
TriggerSpec Definition of a trigger and its parameters
type UpdatePolicyOpts ¶
UpdatePolicyOpts Optional parameters for the method 'UpdatePolicy'
type UpdateRegistryOpts ¶
UpdateRegistryOpts Optional parameters for the method 'UpdateRegistry'
type UpdateSubscriptionOpts ¶
UpdateSubscriptionOpts Optional parameters for the method 'UpdateSubscription'
type User ¶
type User struct { // The username to authenticate with Username string `json:"username"` // The user's type Type string `json:"type,omitempty"` // If the user is external, this is the source that the user was initialized from. All other user types have this set to null Source string `json:"source,omitempty"` // The timestampt the user record was created CreatedAt time.Time `json:"created_at,omitempty"` // The timestamp of the last update to this record LastUpdated time.Time `json:"last_updated,omitempty"` }
User A username for authenticating with one or more types of credentials. User type defines the expected credentials allowed for the user. Native users have passwords, External users have no credential internally. Internal users are service/system users for inter-service communication.
type UserCreationRequest ¶
type UserCreationRequest struct { // The username to create Username string `json:"username"` // The initial password for the user, must be at least 6 characters, up to 128 Password string `json:"password"` }
UserCreationRequest A payload for creating a new user, includes the username and password in a single request
type UserManagementApiService ¶
type UserManagementApiService service
UserManagementApiService UserManagementApi service
func (*UserManagementApiService) CreateAccount ¶
func (a *UserManagementApiService) CreateAccount(ctx _context.Context, account AccountCreationRequest) (Account, *_nethttp.Response, error)
CreateAccount Create a new user. Only avaialble to admin user.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param account
@return Account
func (*UserManagementApiService) CreateUser ¶
func (a *UserManagementApiService) CreateUser(ctx _context.Context, accountname string, user UserCreationRequest) (User, *_nethttp.Response, error)
CreateUser Create a new user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountname
- @param user
@return User
func (*UserManagementApiService) CreateUserCredential ¶
func (a *UserManagementApiService) CreateUserCredential(ctx _context.Context, accountname string, username string, credential AccessCredential) (User, *_nethttp.Response, error)
CreateUserCredential add/replace credential
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountname
- @param username
- @param credential
@return User
func (*UserManagementApiService) DeleteAccount ¶
func (a *UserManagementApiService) DeleteAccount(ctx _context.Context, accountname string) (*_nethttp.Response, error)
DeleteAccount Delete the specified account, only allowed if the account is in the disabled state. All users will be deleted along with the account and all resources will be garbage collected
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountname
func (*UserManagementApiService) DeleteUser ¶
func (a *UserManagementApiService) DeleteUser(ctx _context.Context, accountname string, username string) (*_nethttp.Response, error)
DeleteUser Delete a specific user credential by username of the credential. Cannot be the credential used to authenticate the request.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountname
- @param username
func (*UserManagementApiService) DeleteUserCredential ¶
func (a *UserManagementApiService) DeleteUserCredential(ctx _context.Context, accountname string, username string, credentialType string) (*_nethttp.Response, error)
DeleteUserCredential Delete a credential by type
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountname
- @param username
- @param credentialType
func (*UserManagementApiService) GetAccount ¶
func (a *UserManagementApiService) GetAccount(ctx _context.Context, accountname string) (Account, *_nethttp.Response, error)
GetAccount Get info about an user. Only available to admin user. Uses the main user Id, not a username.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountname
@return Account
func (*UserManagementApiService) GetAccountUser ¶
func (a *UserManagementApiService) GetAccountUser(ctx _context.Context, accountname string, username string) (User, *_nethttp.Response, error)
GetAccountUser Get a specific user in the specified account
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountname
- @param username
@return User
func (*UserManagementApiService) ListAccounts ¶
func (a *UserManagementApiService) ListAccounts(ctx _context.Context, localVarOptionals *ListAccountsOpts) ([]Account, *_nethttp.Response, error)
ListAccounts List user summaries. Only available to the system admin user.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *ListAccountsOpts - Optional Parameters:
- @param "State" (optional.String) - Filter accounts by state
@return []Account
func (*UserManagementApiService) ListUserCredentials ¶
func (a *UserManagementApiService) ListUserCredentials(ctx _context.Context, accountname string, username string) ([]AccessCredential, *_nethttp.Response, error)
ListUserCredentials Get current credential summary
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountname
- @param username
@return []AccessCredential
func (*UserManagementApiService) ListUsers ¶
func (a *UserManagementApiService) ListUsers(ctx _context.Context, accountname string) ([]User, *_nethttp.Response, error)
ListUsers List accounts for the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountname
@return []User
func (*UserManagementApiService) UpdateAccountState ¶
func (a *UserManagementApiService) UpdateAccountState(ctx _context.Context, accountname string, desiredState AccountStatus) (AccountStatus, *_nethttp.Response, error)
UpdateAccountState Update the state of an account to either enabled or disabled. For deletion use the DELETE route
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountname
- @param desiredState
@return AccountStatus
type VendorDataObject ¶
type VendorDataObject struct { // Vendor Vulnerability ID Id string `json:"id,omitempty"` CvssV2 Cvssv2Scores `json:"cvss_v2,omitempty"` CvssV3 Cvssv3Scores `json:"cvss_v3,omitempty"` }
VendorDataObject struct for VendorDataObject
type VulnDiffResult ¶
type VulnDiffResult struct { Added []interface{} `json:"added,omitempty"` Updated []interface{} `json:"updated,omitempty"` Removed []interface{} `json:"removed,omitempty"` }
VulnDiffResult The results of the comparing two vulnerability records during an update
type VulnUpdateNotification ¶
type VulnUpdateNotification struct { QueueId string `json:"queueId,omitempty"` UserId string `json:"userId,omitempty"` DataId string `json:"dataId,omitempty"` CreatedAt int32 `json:"created_at,omitempty"` LastUpdated int32 `json:"last_updated,omitempty"` RecordStateKey string `json:"record_state_key,omitempty"` RecordStateVal *string `json:"record_state_val,omitempty"` Tries int32 `json:"tries,omitempty"` MaxTries int32 `json:"max_tries,omitempty"` Data VulnUpdateNotificationData `json:"data,omitempty"` }
VulnUpdateNotification struct for VulnUpdateNotification
type VulnUpdateNotificationAllOf ¶
type VulnUpdateNotificationAllOf struct {
Data VulnUpdateNotificationData `json:"data,omitempty"`
}
VulnUpdateNotificationAllOf The Notification Object definition for Tag Update Notifications
type VulnUpdateNotificationData ¶
type VulnUpdateNotificationData struct { NotificationUser string `json:"notification_user,omitempty"` NotificationUserEmail string `json:"notification_user_email,omitempty"` NotificationType string `json:"notification_type,omitempty"` NotificationPayload VulnUpdateNotificationPayload `json:"notification_payload,omitempty"` }
VulnUpdateNotificationData struct for VulnUpdateNotificationData
type VulnUpdateNotificationDataAllOf ¶
type VulnUpdateNotificationDataAllOf struct {
NotificationPayload VulnUpdateNotificationPayload `json:"notification_payload,omitempty"`
}
VulnUpdateNotificationDataAllOf struct for VulnUpdateNotificationDataAllOf
type VulnUpdateNotificationPayload ¶
type VulnUpdateNotificationPayload struct { UserId string `json:"userId,omitempty"` SubscriptionKey string `json:"subscription_key,omitempty"` SubscriptionType string `json:"subscription_type,omitempty"` NotificationId string `json:"notificationId,omitempty"` DiffVulnerabilityResult VulnDiffResult `json:"diff_vulnerability_result,omitempty"` ImageDigest string `json:"imageDigest,omitempty"` // List of Corresponding Image Annotations Annotations *interface{} `json:"annotations,omitempty"` }
VulnUpdateNotificationPayload struct for VulnUpdateNotificationPayload
type VulnUpdateNotificationPayloadAllOf ¶
type VulnUpdateNotificationPayloadAllOf struct { DiffVulnerabilityResult VulnDiffResult `json:"diff_vulnerability_result,omitempty"` ImageDigest string `json:"imageDigest,omitempty"` // List of Corresponding Image Annotations Annotations *interface{} `json:"annotations,omitempty"` }
VulnUpdateNotificationPayloadAllOf struct for VulnUpdateNotificationPayloadAllOf
type Vulnerability ¶
type Vulnerability struct { // The vulnerability identifier, such as CVE-2017-100, or RHSA-2017123 Vuln string `json:"vuln,omitempty"` // The package containing a fix, if available Fix string `json:"fix,omitempty"` // The severity of the vulnerability Severity string `json:"severity,omitempty"` // The package name and version that are vulnerable in the image Package string `json:"package,omitempty"` // The url for more information about the vulnerability Url string `json:"url,omitempty"` // The name of the feed where vulnerability match was made Feed string `json:"feed,omitempty"` // The name of the feed group where vulnerability match was made FeedGroup string `json:"feed_group,omitempty"` // The name of the vulnerable package artifact PackageName string `json:"package_name,omitempty"` // The version of the vulnerable package artifact PackageVersion string `json:"package_version,omitempty"` // The type of vulnerable package PackageType string `json:"package_type,omitempty"` // The CPE string (if applicable) describing the package to vulnerability match PackageCpe string `json:"package_cpe,omitempty"` // The location (if applicable) of the vulnerable package in the container filesystem PackagePath string `json:"package_path,omitempty"` // List of Nvd Data objects NvdData []NvdDataObject `json:"nvd_data,omitempty"` // List of Vendor Data objects VendorData []VendorDataObject `json:"vendor_data,omitempty"` }
Vulnerability struct for Vulnerability
type VulnerabilityReference ¶
type VulnerabilityReference struct { // The reference source Source string `json:"source,omitempty"` Tags []string `json:"tags,omitempty"` // The reference url Url string `json:"url,omitempty"` }
VulnerabilityReference An external link/reference
type VulnerabilityResponse ¶
type VulnerabilityResponse struct { ImageDigest string `json:"imageDigest,omitempty"` VulnerabilityType string `json:"vulnerability_type,omitempty"` // List of Vulnerability objects Vulnerabilities []Vulnerability `json:"vulnerabilities,omitempty"` }
VulnerabilityResponse envelope containing list of vulnerabilities
type VulnerableImage ¶
type VulnerableImage struct { Image ImageReference `json:"image,omitempty"` AffectedPackages []VulnerablePackageReference `json:"affected_packages,omitempty"` }
VulnerableImage A record of an image vulnerable to some known vulnerability. Includes vulnerable package information
type VulnerablePackageReference ¶
type VulnerablePackageReference struct { // Package name Name string `json:"name,omitempty"` // A version for the package. If null, then references all versions Version *string `json:"version,omitempty"` // Package type (e.g. package, rpm, deb, apk, jar, npm, gem, ...) Type string `json:"type,omitempty"` // Severity of vulnerability affecting package Severity string `json:"severity,omitempty"` // Vulnerability namespace of affected package Namespace string `json:"namespace,omitempty"` }
VulnerablePackageReference A record of a software item which is vulnerable or carries a fix for a vulnerability
type Whitelist ¶
type Whitelist struct { Id string `json:"id"` Name string `json:"name,omitempty"` Version string `json:"version"` Comment string `json:"comment,omitempty"` Items []WhitelistItem `json:"items,omitempty"` }
Whitelist A collection of whitelist items to match a policy evaluation against.
type WhitelistItem ¶
type WhitelistItem struct { Id string `json:"id,omitempty"` Gate string `json:"gate"` TriggerId string `json:"trigger_id"` ExpiresOn time.Time `json:"expires_on,omitempty"` }
WhitelistItem Identifies a specific gate and trigger match from a policy against an image and indicates it should be ignored in final policy decisions
Source Files ¶
- api_archives.go
- api_default.go
- api_events.go
- api_identity.go
- api_images.go
- api_import.go
- api_imports.go
- api_policies.go
- api_query.go
- api_registries.go
- api_repository_credentials.go
- api_subscriptions.go
- api_summaries.go
- api_system.go
- api_user_management.go
- client.go
- configuration.go
- model_access_credential.go
- model_account.go
- model_account_creation_request.go
- model_account_status.go
- model_analysis_archive_add_result.go
- model_analysis_archive_rules_summary.go
- model_analysis_archive_source.go
- model_analysis_archive_summary.go
- model_analysis_archive_transition_history.go
- model_analysis_archive_transition_rule.go
- model_analysis_archive_transition_rule_exclude.go
- model_analysis_update_eval.go
- model_analysis_update_notification.go
- model_analysis_update_notification_all_of.go
- model_analysis_update_notification_data.go
- model_analysis_update_notification_data_all_of.go
- model_analysis_update_notification_payload.go
- model_analysis_update_notification_payload_all_of.go
- model_anchore_error_code.go
- model_anchore_image.go
- model_anchore_image_tag_summary.go
- model_api_error_response.go
- model_archive_summary.go
- model_archived_analysis.go
- model_base_notification_data.go
- model_content_files_response.go
- model_content_files_response_content.go
- model_content_java_package_response.go
- model_content_java_package_response_content.go
- model_content_malware_response.go
- model_content_package_response.go
- model_content_package_response_content.go
- model_content_response.go
- model_cvssv2_scores.go
- model_cvssv3_scores.go
- model_delete_image_response.go
- model_event_category.go
- model_event_description.go
- model_event_response.go
- model_event_response_event.go
- model_event_response_event_resource.go
- model_event_response_event_source.go
- model_event_subcategory.go
- model_events_list.go
- model_feed_group_metadata.go
- model_feed_metadata.go
- model_feed_sync_result.go
- model_file_content_search_result.go
- model_gate_spec.go
- model_generic_notification_payload.go
- model_group_sync_result.go
- model_image_analysis_request.go
- model_image_detail.go
- model_image_filter.go
- model_image_import_content_response.go
- model_image_import_manifest.go
- model_image_import_operation.go
- model_image_package_manifest.go
- model_image_ref.go
- model_image_reference.go
- model_image_selection_rule.go
- model_image_selector.go
- model_image_source.go
- model_image_with_packages.go
- model_import_content_digests.go
- model_import_descriptor.go
- model_import_distribution.go
- model_import_package.go
- model_import_package_location.go
- model_import_package_relationship.go
- model_import_schema.go
- model_import_source.go
- model_local_analysis_source.go
- model_malware_scan.go
- model_malware_scan_findings.go
- model_mapping_rule.go
- model_metadata_response.go
- model_notification_base.go
- model_nvd_data_object.go
- model_package_reference.go
- model_paginated_image_list.go
- model_paginated_image_list_all_of.go
- model_paginated_vulnerability_list.go
- model_paginated_vulnerability_list_all_of.go
- model_paginated_vulnerable_image_list.go
- model_paginated_vulnerable_image_list_all_of.go
- model_pagination_properties.go
- model_policy.go
- model_policy_bundle.go
- model_policy_bundle_record.go
- model_policy_eval_notification.go
- model_policy_eval_notification_all_of.go
- model_policy_eval_notification_data.go
- model_policy_eval_notification_data_all_of.go
- model_policy_eval_notification_payload.go
- model_policy_eval_notification_payload_all_of.go
- model_policy_rule.go
- model_policy_rule_params.go
- model_regex_content_match.go
- model_registry_configuration.go
- model_registry_configuration_request.go
- model_registry_digest_source.go
- model_registry_tag_source.go
- model_retrieved_file.go
- model_secret_search_result.go
- model_service.go
- model_service_version.go
- model_service_version_api.go
- model_service_version_db.go
- model_service_version_service.go
- model_standalone_vulnerability.go
- model_status_response.go
- model_subscription.go
- model_subscription_request.go
- model_subscription_update.go
- model_system_status_response.go
- model_tag_entry.go
- model_tag_update_notification.go
- model_tag_update_notification_all_of.go
- model_tag_update_notification_data.go
- model_tag_update_notification_data_all_of.go
- model_tag_update_notification_payload.go
- model_tag_update_notification_payload_all_of.go
- model_token_response.go
- model_trigger_param_spec.go
- model_trigger_spec.go
- model_user.go
- model_user_creation_request.go
- model_vendor_data_object.go
- model_vuln_diff_result.go
- model_vuln_update_notification.go
- model_vuln_update_notification_all_of.go
- model_vuln_update_notification_data.go
- model_vuln_update_notification_data_all_of.go
- model_vuln_update_notification_payload.go
- model_vuln_update_notification_payload_all_of.go
- model_vulnerability.go
- model_vulnerability_reference.go
- model_vulnerability_response.go
- model_vulnerable_image.go
- model_vulnerable_package_reference.go
- model_whitelist.go
- model_whitelist_item.go
- response.go