/
model_analysis_archive_transition_rule.go
32 lines (30 loc) · 1.56 KB
/
model_analysis_archive_transition_rule.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Anchore Engine API Server
*
* This is the Anchore Engine API. Provides the primary external API for users of the service.
*
* API version: 0.1.16
* Contact: nurmi@anchore.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package external
import (
"time"
)
// AnalysisArchiveTransitionRule A rule for auto-archiving image analysis by time and/or tag-history
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"`
}