Documentation
¶
Index ¶
- Constants
- type Access
- type AdditionLink
- type AdditionLinks
- type Annotations
- type Artifact
- type AuditLog
- type AuthproxySetting
- type CVEAllowlist
- type CVEAllowlistItem
- type Error
- type Errors
- type Execution
- type ExtraAttrs
- type GCHistory
- type GeneralInfo
- type Icon
- type Instance
- type Label
- type Metadata
- type Metrics
- type NativeReportSummary
- type Platform
- type PreheatPolicy
- type Project
- type ProjectDeletable
- type ProjectMetadata
- type ProjectReq
- type ProjectSummary
- type ProjectSummaryQuota
- type ProviderUnderProject
- type Reference
- type Registry
- type RegistryCredential
- type ReplicationExecution
- type ReplicationTask
- type Repository
- type ResourceList
- type RetentionExecution
- type RetentionExecutionTask
- func (m *RetentionExecutionTask) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RetentionExecutionTask) MarshalBinary() ([]byte, error)
- func (m *RetentionExecutionTask) UnmarshalBinary(b []byte) error
- func (m *RetentionExecutionTask) Validate(formats strfmt.Registry) error
- type RetentionMetadata
- type RetentionPolicy
- type RetentionPolicyScope
- type RetentionRule
- type RetentionRuleMetadata
- type RetentionRuleParamMetadata
- func (m *RetentionRuleParamMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RetentionRuleParamMetadata) MarshalBinary() ([]byte, error)
- func (m *RetentionRuleParamMetadata) UnmarshalBinary(b []byte) error
- func (m *RetentionRuleParamMetadata) Validate(formats strfmt.Registry) error
- type RetentionRuleTrigger
- type RetentionSelector
- type RetentionSelectorMetadata
- func (m *RetentionSelectorMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RetentionSelectorMetadata) MarshalBinary() ([]byte, error)
- func (m *RetentionSelectorMetadata) UnmarshalBinary(b []byte) error
- func (m *RetentionSelectorMetadata) Validate(formats strfmt.Registry) error
- type Robot
- type RobotCreate
- type RobotCreateV1
- type RobotCreated
- type RobotPermission
- type RobotSec
- type ScanOverview
- type Scanner
- type Schedule
- type ScheduleObj
- type StartReplicationExecution
- func (m *StartReplicationExecution) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *StartReplicationExecution) MarshalBinary() ([]byte, error)
- func (m *StartReplicationExecution) UnmarshalBinary(b []byte) error
- func (m *StartReplicationExecution) Validate(formats strfmt.Registry) error
- type Stats
- type Storage
- type SystemInfo
- type Tag
- type Task
- type VulnerabilitySummary
Constants ¶
const ( // ScheduleObjTypeHourly captures enum value "Hourly" ScheduleObjTypeHourly string = "Hourly" // ScheduleObjTypeDaily captures enum value "Daily" ScheduleObjTypeDaily string = "Daily" // ScheduleObjTypeWeekly captures enum value "Weekly" ScheduleObjTypeWeekly string = "Weekly" // ScheduleObjTypeCustom captures enum value "Custom" ScheduleObjTypeCustom string = "Custom" // ScheduleObjTypeManual captures enum value "Manual" ScheduleObjTypeManual string = "Manual" // ScheduleObjTypeNone captures enum value "None" ScheduleObjTypeNone string = "None" )
const ( // StatsTriggerManual captures enum value "Manual" StatsTriggerManual string = "Manual" // StatsTriggerSchedule captures enum value "Schedule" StatsTriggerSchedule string = "Schedule" // StatsTriggerEvent captures enum value "Event" StatsTriggerEvent string = "Event" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct { // The action of the access Action string `json:"action,omitempty"` // The effect of the access Effect string `json:"effect,omitempty"` // The resource of the access Resource string `json:"resource,omitempty"` }
Access access
swagger:model Access
func (*Access) ContextValidate ¶
ContextValidate validates this access based on context it is used
func (*Access) MarshalBinary ¶
MarshalBinary interface implementation
func (*Access) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AdditionLink ¶
type AdditionLink struct { // Determine whether the link is an absolute URL or not Absolute bool `json:"absolute"` // The link of the addition Href string `json:"href,omitempty"` }
AdditionLink addition link
swagger:model AdditionLink
func (*AdditionLink) ContextValidate ¶
ContextValidate validates this addition link based on context it is used
func (*AdditionLink) MarshalBinary ¶
func (m *AdditionLink) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AdditionLink) UnmarshalBinary ¶
func (m *AdditionLink) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AdditionLinks ¶
type AdditionLinks map[string]AdditionLink
AdditionLinks addition links
swagger:model AdditionLinks
func (AdditionLinks) ContextValidate ¶
ContextValidate validate this addition links based on the context it is used
type Annotations ¶
Annotations annotations
swagger:model Annotations
func (Annotations) ContextValidate ¶
ContextValidate validates this annotations based on context it is used
type Artifact ¶
type Artifact struct { // addition links AdditionLinks AdditionLinks `json:"addition_links,omitempty"` // annotations Annotations Annotations `json:"annotations,omitempty"` // The digest of the artifact Digest string `json:"digest,omitempty"` // extra attrs ExtraAttrs ExtraAttrs `json:"extra_attrs,omitempty"` // The digest of the icon Icon string `json:"icon,omitempty"` // The ID of the artifact ID int64 `json:"id,omitempty"` // labels Labels []*Label `json:"labels"` // The manifest media type of the artifact ManifestMediaType string `json:"manifest_media_type,omitempty"` // The media type of the artifact MediaType string `json:"media_type,omitempty"` // The ID of the project that the artifact belongs to ProjectID int64 `json:"project_id,omitempty"` // The latest pull time of the artifact // Format: date-time PullTime strfmt.DateTime `json:"pull_time,omitempty"` // The push time of the artifact // Format: date-time PushTime strfmt.DateTime `json:"push_time,omitempty"` // references References []*Reference `json:"references"` // The ID of the repository that the artifact belongs to RepositoryID int64 `json:"repository_id,omitempty"` // The overview of the scan result. ScanOverview ScanOverview `json:"scan_overview,omitempty"` // The size of the artifact Size int64 `json:"size,omitempty"` // tags Tags []*Tag `json:"tags"` // The type of the artifact, e.g. image, chart, etc Type string `json:"type,omitempty"` }
Artifact artifact
swagger:model Artifact
func (*Artifact) ContextValidate ¶
ContextValidate validate this artifact based on the context it is used
func (*Artifact) MarshalBinary ¶
MarshalBinary interface implementation
func (*Artifact) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AuditLog ¶
type AuditLog struct { // The ID of the audit log entry. ID int64 `json:"id,omitempty"` // The time when this operation is triggered. // Example: 2006-01-02T15:04:05 // Format: date-time OpTime strfmt.DateTime `json:"op_time,omitempty"` // The operation against the repository in this log entry. Operation string `json:"operation,omitempty"` // Name of the repository in this log entry. Resource string `json:"resource,omitempty"` // Tag of the repository in this log entry. ResourceType string `json:"resource_type,omitempty"` // Username of the user in this log entry. Username string `json:"username,omitempty"` }
AuditLog audit log
swagger:model AuditLog
func (*AuditLog) ContextValidate ¶
ContextValidate validates this audit log based on context it is used
func (*AuditLog) MarshalBinary ¶
MarshalBinary interface implementation
func (*AuditLog) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AuthproxySetting ¶
type AuthproxySetting struct { // The fully qualified URI of login endpoint of authproxy, such as 'https://192.168.1.2:8443/login' Endpoint string `json:"endpoint,omitempty"` // The certificate to be pinned when connecting auth proxy. ServerCertificate string `json:"server_certificate,omitempty"` // The flag to determine whether Harbor can skip search the user/group when adding him as a member. SkipSearch bool `json:"skip_search,omitempty"` // The fully qualified URI of token review endpoint of authproxy, such as 'https://192.168.1.2:8443/tokenreview' TokenreivewEndpoint string `json:"tokenreivew_endpoint,omitempty"` // The flag to determine whether Harbor should verify the certificate when connecting to the auth proxy. VerifyCert bool `json:"verify_cert,omitempty"` }
AuthproxySetting authproxy setting
swagger:model AuthproxySetting
func (*AuthproxySetting) ContextValidate ¶
ContextValidate validates this authproxy setting based on context it is used
func (*AuthproxySetting) MarshalBinary ¶
func (m *AuthproxySetting) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AuthproxySetting) UnmarshalBinary ¶
func (m *AuthproxySetting) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CVEAllowlist ¶
type CVEAllowlist struct { // The creation time of the allowlist. // Format: date-time CreationTime strfmt.DateTime `json:"creation_time,omitempty"` // the time for expiration of the allowlist, in the form of seconds since epoch. This is an optional attribute, if it's not set the CVE allowlist does not expire. ExpiresAt *int64 `json:"expires_at,omitempty"` // ID of the allowlist ID int64 `json:"id,omitempty"` // items Items []*CVEAllowlistItem `json:"items"` // ID of the project which the allowlist belongs to. For system level allowlist this attribute is zero. ProjectID int64 `json:"project_id,omitempty"` // The update time of the allowlist. // Format: date-time UpdateTime strfmt.DateTime `json:"update_time,omitempty"` }
CVEAllowlist The CVE Allowlist for system or project
swagger:model CVEAllowlist
func (*CVEAllowlist) ContextValidate ¶
ContextValidate validate this c v e allowlist based on the context it is used
func (*CVEAllowlist) MarshalBinary ¶
func (m *CVEAllowlist) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CVEAllowlist) UnmarshalBinary ¶
func (m *CVEAllowlist) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CVEAllowlistItem ¶
type CVEAllowlistItem struct { // The ID of the CVE, such as "CVE-2019-10164" CveID string `json:"cve_id,omitempty"` }
CVEAllowlistItem The item in CVE allowlist
swagger:model CVEAllowlistItem
func (*CVEAllowlistItem) ContextValidate ¶
ContextValidate validates this c v e allowlist item based on context it is used
func (*CVEAllowlistItem) MarshalBinary ¶
func (m *CVEAllowlistItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CVEAllowlistItem) UnmarshalBinary ¶
func (m *CVEAllowlistItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct { // The error code Code string `json:"code,omitempty"` // The error message Message string `json:"message,omitempty"` }
Error a model for all the error response coming from harbor
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Errors ¶
type Errors struct { // errors Errors []*Error `json:"errors"` }
Errors The error array that describe the errors got during the handling of request
swagger:model Errors
func (*Errors) ContextValidate ¶
ContextValidate validate this errors based on the context it is used
func (*Errors) MarshalBinary ¶
MarshalBinary interface implementation
func (*Errors) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Execution ¶
type Execution struct { // The end time of execution EndTime string `json:"end_time,omitempty"` // extra attrs ExtraAttrs ExtraAttrs `json:"extra_attrs,omitempty"` // The ID of execution ID int64 `json:"id,omitempty"` // metrics Metrics *Metrics `json:"metrics,omitempty"` // The start time of execution StartTime string `json:"start_time,omitempty"` // The status of execution Status string `json:"status,omitempty"` // The status message of execution StatusMessage string `json:"status_message,omitempty"` // The trigger of execution Trigger string `json:"trigger,omitempty"` // The vendor id of execution VendorID int64 `json:"vendor_id,omitempty"` // The vendor type of execution VendorType string `json:"vendor_type,omitempty"` }
Execution execution
swagger:model Execution
func (*Execution) ContextValidate ¶
ContextValidate validate this execution based on the context it is used
func (*Execution) MarshalBinary ¶
MarshalBinary interface implementation
func (*Execution) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ExtraAttrs ¶
type ExtraAttrs map[string]interface{}
ExtraAttrs extra attrs
swagger:model ExtraAttrs
func (ExtraAttrs) ContextValidate ¶
ContextValidate validates this extra attrs based on context it is used
type GCHistory ¶
type GCHistory struct { // the creation time of gc job. // Format: date-time CreationTime strfmt.DateTime `json:"creation_time,omitempty"` // if gc job was deleted. Deleted bool `json:"deleted,omitempty"` // the id of gc job. ID int64 `json:"id,omitempty"` // the job kind of gc job. JobKind string `json:"job_kind,omitempty"` // the job name of gc job. JobName string `json:"job_name,omitempty"` // the job parameters of gc job. JobParameters string `json:"job_parameters,omitempty"` // the status of gc job. JobStatus string `json:"job_status,omitempty"` // schedule Schedule *ScheduleObj `json:"schedule,omitempty"` // the update time of gc job. // Format: date-time UpdateTime strfmt.DateTime `json:"update_time,omitempty"` }
GCHistory g c history
swagger:model GCHistory
func (*GCHistory) ContextValidate ¶
ContextValidate validate this g c history based on the context it is used
func (*GCHistory) MarshalBinary ¶
MarshalBinary interface implementation
func (*GCHistory) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GeneralInfo ¶
type GeneralInfo struct { // The auth mode of current Harbor instance. AuthMode *string `json:"auth_mode,omitempty"` // The setting of auth proxy this is only available when Harbor relies on authproxy for authentication. AuthproxySettings *AuthproxySetting `json:"authproxy_settings,omitempty"` // The external URL of Harbor, with protocol. ExternalURL *string `json:"external_url,omitempty"` // The build version of Harbor. HarborVersion *string `json:"harbor_version,omitempty"` // Indicate whether there is a ca root cert file ready for download in the file system. HasCaRoot *bool `json:"has_ca_root,omitempty"` // The flag to indicate whether notification mechanism is enabled on Harbor instance. NotificationEnable *bool `json:"notification_enable,omitempty"` // Indicate who can create projects, it could be 'adminonly' or 'everyone'. ProjectCreationRestriction *string `json:"project_creation_restriction,omitempty"` // The flag to indicate whether Harbor is in readonly mode. ReadOnly *bool `json:"read_only,omitempty"` // The storage provider's name of Harbor registry RegistryStorageProviderName *string `json:"registry_storage_provider_name,omitempty"` // The url of registry against which the docker command should be issued. RegistryURL *string `json:"registry_url,omitempty"` // Indicate whether the Harbor instance enable user to register himself. SelfRegistration *bool `json:"self_registration,omitempty"` // If the Harbor instance is deployed with nested chartmuseum. WithChartmuseum *bool `json:"with_chartmuseum,omitempty"` // If the Harbor instance is deployed with nested notary. WithNotary *bool `json:"with_notary,omitempty"` }
GeneralInfo general info
swagger:model GeneralInfo
func (*GeneralInfo) ContextValidate ¶
ContextValidate validate this general info based on the context it is used
func (*GeneralInfo) MarshalBinary ¶
func (m *GeneralInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GeneralInfo) UnmarshalBinary ¶
func (m *GeneralInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Icon ¶
type Icon struct { // The base64 encoded content of the icon Content string `json:"content,omitempty"` // The content type of the icon ContentType string `json:"content-type,omitempty"` }
Icon icon
swagger:model Icon
func (*Icon) ContextValidate ¶
ContextValidate validates this icon based on context it is used
func (*Icon) MarshalBinary ¶
MarshalBinary interface implementation
func (*Icon) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Instance ¶
type Instance struct { // The auth credential data if exists AuthInfo map[string]string `json:"auth_info,omitempty"` // The authentication way supported AuthMode string `json:"auth_mode,omitempty"` // Whether the instance is default or not Default bool `json:"default"` // Description of instance Description string `json:"description,omitempty"` // Whether the instance is activated or not Enabled bool `json:"enabled"` // The service endpoint of this instance Endpoint string `json:"endpoint,omitempty"` // Unique ID ID int64 `json:"id,omitempty"` // Whether the instance endpoint is insecure or not Insecure bool `json:"insecure"` // Instance name Name string `json:"name,omitempty"` // The timestamp of instance setting up SetupTimestamp int64 `json:"setup_timestamp,omitempty"` // The health status Status string `json:"status,omitempty"` // Based on which driver, identified by ID Vendor string `json:"vendor,omitempty"` }
Instance instance
swagger:model Instance
func (*Instance) ContextValidate ¶
ContextValidate validates this instance based on context it is used
func (*Instance) MarshalBinary ¶
MarshalBinary interface implementation
func (*Instance) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Label ¶
type Label struct { // The color the label Color string `json:"color,omitempty"` // The creation time the label // Format: date-time CreationTime strfmt.DateTime `json:"creation_time,omitempty"` // The description the label Description string `json:"description,omitempty"` // The ID of the label ID int64 `json:"id,omitempty"` // The name the label Name string `json:"name,omitempty"` // The ID of project that the label belongs to ProjectID int64 `json:"project_id,omitempty"` // The scope the label Scope string `json:"scope,omitempty"` // The update time of the label // Format: date-time UpdateTime strfmt.DateTime `json:"update_time,omitempty"` }
Label label
swagger:model Label
func (*Label) ContextValidate ¶
ContextValidate validates this label based on context it is used
func (*Label) MarshalBinary ¶
MarshalBinary interface implementation
func (*Label) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Metadata ¶
type Metadata struct { // icon Icon string `json:"icon,omitempty"` // id ID string `json:"id,omitempty"` // maintainers Maintainers []string `json:"maintainers"` // name Name string `json:"name,omitempty"` // source Source string `json:"source,omitempty"` // version Version string `json:"version,omitempty"` }
Metadata metadata
swagger:model Metadata
func (*Metadata) ContextValidate ¶
ContextValidate validates this metadata based on context it is used
func (*Metadata) MarshalBinary ¶
MarshalBinary interface implementation
func (*Metadata) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Metrics ¶
type Metrics struct { // The count of error task ErrorTaskCount int64 `json:"error_task_count,omitempty"` // The count of pending task PendingTaskCount int64 `json:"pending_task_count,omitempty"` // The count of running task RunningTaskCount int64 `json:"running_task_count,omitempty"` // The count of scheduled task ScheduledTaskCount int64 `json:"scheduled_task_count,omitempty"` // The count of stopped task StoppedTaskCount int64 `json:"stopped_task_count,omitempty"` // The count of success task SuccessTaskCount int64 `json:"success_task_count,omitempty"` // The count of task TaskCount int64 `json:"task_count,omitempty"` }
Metrics metrics
swagger:model Metrics
func (*Metrics) ContextValidate ¶
ContextValidate validates this metrics based on context it is used
func (*Metrics) MarshalBinary ¶
MarshalBinary interface implementation
func (*Metrics) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type NativeReportSummary ¶
type NativeReportSummary struct { // The complete percent of the scanning which value is between 0 and 100 // Example: 100 CompletePercent int64 `json:"complete_percent,omitempty"` // The seconds spent for generating the report // Example: 300 Duration int64 `json:"duration,omitempty"` // The end time of the scan process that generating report // Example: 2006-01-02T15:04:05 // Format: date-time EndTime strfmt.DateTime `json:"end_time,omitempty"` // id of the native scan report // Example: 5f62c830-f996-11e9-957f-0242c0a89008 ReportID string `json:"report_id,omitempty"` // The status of the report generating process // Example: Success ScanStatus string `json:"scan_status,omitempty"` // scanner Scanner *Scanner `json:"scanner,omitempty"` // The overall severity // Example: High Severity string `json:"severity,omitempty"` // The start time of the scan process that generating report // Example: 2006-01-02T14:04:05 // Format: date-time StartTime strfmt.DateTime `json:"start_time,omitempty"` // summary Summary *VulnerabilitySummary `json:"summary,omitempty"` }
NativeReportSummary The summary for the native report
swagger:model NativeReportSummary
func (*NativeReportSummary) ContextValidate ¶
ContextValidate validate this native report summary based on the context it is used
func (*NativeReportSummary) MarshalBinary ¶
func (m *NativeReportSummary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NativeReportSummary) UnmarshalBinary ¶
func (m *NativeReportSummary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Platform ¶
type Platform struct { // The features of the OS that the artifact applys to OsFeatures []string `json:"'os.features'"` // The version of the OS that the artifact applys to OsVersion string `json:"'os.version',omitempty"` // The architecture that the artifact applys to Architecture string `json:"architecture,omitempty"` // The OS that the artifact applys to Os string `json:"os,omitempty"` // The variant of the CPU Variant string `json:"variant,omitempty"` }
Platform platform
swagger:model Platform
func (*Platform) ContextValidate ¶
ContextValidate validates this platform based on context it is used
func (*Platform) MarshalBinary ¶
MarshalBinary interface implementation
func (*Platform) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PreheatPolicy ¶
type PreheatPolicy struct { // The Create Time of preheat policy // Format: date-time CreationTime strfmt.DateTime `json:"creation_time,omitempty"` // The Description of preheat policy Description string `json:"description,omitempty"` // Whether the preheat policy enabled Enabled bool `json:"enabled"` // The Filters of preheat policy Filters string `json:"filters,omitempty"` // The ID of preheat policy ID int64 `json:"id,omitempty"` // The Name of preheat policy Name string `json:"name,omitempty"` // The ID of preheat policy project ProjectID int64 `json:"project_id,omitempty"` // The ID of preheat policy provider ProviderID int64 `json:"provider_id,omitempty"` // The Name of preheat policy provider ProviderName string `json:"provider_name,omitempty"` // The Trigger of preheat policy Trigger string `json:"trigger,omitempty"` // The Update Time of preheat policy // Format: date-time UpdateTime strfmt.DateTime `json:"update_time,omitempty"` }
PreheatPolicy preheat policy
swagger:model PreheatPolicy
func (*PreheatPolicy) ContextValidate ¶
ContextValidate validates this preheat policy based on context it is used
func (*PreheatPolicy) MarshalBinary ¶
func (m *PreheatPolicy) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PreheatPolicy) UnmarshalBinary ¶
func (m *PreheatPolicy) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Project ¶
type Project struct { // The total number of charts under this project. ChartCount int64 `json:"chart_count,omitempty"` // The creation time of the project. // Format: date-time CreationTime strfmt.DateTime `json:"creation_time,omitempty"` // The role ID with highest permission of the current user who triggered the API (for UI). This attribute is deprecated and will be removed in future versions. CurrentUserRoleID int64 `json:"current_user_role_id,omitempty"` // The list of role ID of the current user who triggered the API (for UI) CurrentUserRoleIds []int32 `json:"current_user_role_ids"` // The CVE allowlist of this project. CveAllowlist *CVEAllowlist `json:"cve_allowlist,omitempty"` // A deletion mark of the project. Deleted bool `json:"deleted,omitempty"` // The metadata of the project. Metadata *ProjectMetadata `json:"metadata,omitempty"` // The name of the project. Name string `json:"name,omitempty"` // The owner ID of the project always means the creator of the project. OwnerID int32 `json:"owner_id,omitempty"` // The owner name of the project. OwnerName string `json:"owner_name,omitempty"` // Project ID ProjectID int32 `json:"project_id,omitempty"` // The ID of referenced registry when the project is a proxy cache project. RegistryID int64 `json:"registry_id,omitempty"` // The number of the repositories under this project. RepoCount int64 `json:"repo_count,omitempty"` // Correspond to the UI about whether the project's publicity is updatable (for UI) Togglable bool `json:"togglable,omitempty"` // The update time of the project. // Format: date-time UpdateTime strfmt.DateTime `json:"update_time,omitempty"` }
Project project
swagger:model Project
func (*Project) ContextValidate ¶
ContextValidate validate this project based on the context it is used
func (*Project) MarshalBinary ¶
MarshalBinary interface implementation
func (*Project) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ProjectDeletable ¶
type ProjectDeletable struct { // Whether the project can be deleted. Deletable bool `json:"deletable,omitempty"` // The detail message when the project can not be deleted. Message string `json:"message,omitempty"` }
ProjectDeletable project deletable
swagger:model ProjectDeletable
func (*ProjectDeletable) ContextValidate ¶
ContextValidate validates this project deletable based on context it is used
func (*ProjectDeletable) MarshalBinary ¶
func (m *ProjectDeletable) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProjectDeletable) UnmarshalBinary ¶
func (m *ProjectDeletable) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProjectMetadata ¶
type ProjectMetadata struct { // Whether scan images automatically when pushing. The valid values are "true", "false". AutoScan *string `json:"auto_scan,omitempty"` // Whether content trust is enabled or not. If it is enabled, user can't pull unsigned images from this project. The valid values are "true", "false". EnableContentTrust *string `json:"enable_content_trust,omitempty"` // Whether prevent the vulnerable images from running. The valid values are "true", "false". PreventVul *string `json:"prevent_vul,omitempty"` // The public status of the project. The valid values are "true", "false". Public string `json:"public,omitempty"` // The ID of the tag retention policy for the project RetentionID *string `json:"retention_id,omitempty"` // Whether this project reuse the system level CVE allowlist as the allowlist of its own. The valid values are "true", "false". If it is set to "true" the actual allowlist associate with this project, if any, will be ignored. ReuseSysCveAllowlist *string `json:"reuse_sys_cve_allowlist,omitempty"` // If the vulnerability is high than severity defined here, the images can't be pulled. The valid values are "none", "low", "medium", "high", "critical". Severity *string `json:"severity,omitempty"` }
ProjectMetadata project metadata
swagger:model ProjectMetadata
func (*ProjectMetadata) ContextValidate ¶
ContextValidate validates this project metadata based on context it is used
func (*ProjectMetadata) MarshalBinary ¶
func (m *ProjectMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProjectMetadata) UnmarshalBinary ¶
func (m *ProjectMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProjectReq ¶
type ProjectReq struct { // The CVE allowlist of the project. CveAllowlist *CVEAllowlist `json:"cve_allowlist,omitempty"` // The metadata of the project. Metadata *ProjectMetadata `json:"metadata,omitempty"` // The name of the project. ProjectName string `json:"project_name,omitempty"` // deprecated, reserved for project creation in replication Public *bool `json:"public,omitempty"` // The ID of referenced registry when creating the proxy cache project RegistryID *int64 `json:"registry_id,omitempty"` // The storage quota of the project. StorageLimit *int64 `json:"storage_limit,omitempty"` }
ProjectReq project req
swagger:model ProjectReq
func (*ProjectReq) ContextValidate ¶
ContextValidate validate this project req based on the context it is used
func (*ProjectReq) MarshalBinary ¶
func (m *ProjectReq) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProjectReq) UnmarshalBinary ¶
func (m *ProjectReq) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProjectSummary ¶
type ProjectSummary struct { // The total number of charts under this project. ChartCount int64 `json:"chart_count,omitempty"` // The total number of developer members. DeveloperCount int64 `json:"developer_count,omitempty"` // The total number of guest members. GuestCount int64 `json:"guest_count,omitempty"` // The total number of limited guest members. LimitedGuestCount int64 `json:"limited_guest_count,omitempty"` // The total number of maintainer members. MaintainerCount int64 `json:"maintainer_count,omitempty"` // The total number of project admin members. ProjectAdminCount int64 `json:"project_admin_count,omitempty"` // quota Quota *ProjectSummaryQuota `json:"quota,omitempty"` // registry Registry *Registry `json:"registry,omitempty"` // The number of the repositories under this project. RepoCount int64 `json:"repo_count,omitempty"` }
ProjectSummary project summary
swagger:model ProjectSummary
func (*ProjectSummary) ContextValidate ¶
ContextValidate validate this project summary based on the context it is used
func (*ProjectSummary) MarshalBinary ¶
func (m *ProjectSummary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProjectSummary) UnmarshalBinary ¶
func (m *ProjectSummary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProjectSummaryQuota ¶
type ProjectSummaryQuota struct { // The hard limits of the quota Hard ResourceList `json:"hard,omitempty"` // The used status of the quota Used ResourceList `json:"used,omitempty"` }
ProjectSummaryQuota project summary quota
swagger:model ProjectSummaryQuota
func (*ProjectSummaryQuota) ContextValidate ¶
ContextValidate validate this project summary quota based on the context it is used
func (*ProjectSummaryQuota) MarshalBinary ¶
func (m *ProjectSummaryQuota) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProjectSummaryQuota) UnmarshalBinary ¶
func (m *ProjectSummaryQuota) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProviderUnderProject ¶
type ProviderUnderProject struct { // default Default bool `json:"default,omitempty"` // enabled Enabled bool `json:"enabled,omitempty"` // id ID int64 `json:"id,omitempty"` // provider Provider string `json:"provider,omitempty"` }
ProviderUnderProject provider under project
swagger:model ProviderUnderProject
func (*ProviderUnderProject) ContextValidate ¶
ContextValidate validates this provider under project based on context it is used
func (*ProviderUnderProject) MarshalBinary ¶
func (m *ProviderUnderProject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProviderUnderProject) UnmarshalBinary ¶
func (m *ProviderUnderProject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Reference ¶
type Reference struct { // annotations Annotations Annotations `json:"annotations,omitempty"` // The digest of the child artifact ChildDigest string `json:"child_digest,omitempty"` // The child ID of the reference ChildID int64 `json:"child_id,omitempty"` // The parent ID of the reference ParentID int64 `json:"parent_id,omitempty"` // platform Platform *Platform `json:"platform,omitempty"` // The download URLs Urls []string `json:"urls"` }
Reference reference
swagger:model Reference
func (*Reference) ContextValidate ¶
ContextValidate validate this reference based on the context it is used
func (*Reference) MarshalBinary ¶
MarshalBinary interface implementation
func (*Reference) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Registry ¶
type Registry struct { // The create time of the policy. CreationTime string `json:"creation_time,omitempty"` // credential Credential *RegistryCredential `json:"credential,omitempty"` // Description of the registry. Description string `json:"description,omitempty"` // The registry ID. ID int64 `json:"id,omitempty"` // Whether or not the certificate will be verified when Harbor tries to access the server. Insecure bool `json:"insecure,omitempty"` // The registry name. Name string `json:"name,omitempty"` // Health status of the registry. Status string `json:"status,omitempty"` // Type of the registry, e.g. 'harbor'. Type string `json:"type,omitempty"` // The update time of the policy. UpdateTime string `json:"update_time,omitempty"` // The registry URL string. URL string `json:"url,omitempty"` }
Registry registry
swagger:model Registry
func (*Registry) ContextValidate ¶
ContextValidate validate this registry based on the context it is used
func (*Registry) MarshalBinary ¶
MarshalBinary interface implementation
func (*Registry) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RegistryCredential ¶
type RegistryCredential struct { // Access key, e.g. user name when credential type is 'basic'. AccessKey string `json:"access_key,omitempty"` // Access secret, e.g. password when credential type is 'basic'. AccessSecret string `json:"access_secret,omitempty"` // Credential type, such as 'basic', 'oauth'. Type string `json:"type,omitempty"` }
RegistryCredential registry credential
swagger:model RegistryCredential
func (*RegistryCredential) ContextValidate ¶
ContextValidate validates this registry credential based on context it is used
func (*RegistryCredential) MarshalBinary ¶
func (m *RegistryCredential) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RegistryCredential) UnmarshalBinary ¶
func (m *RegistryCredential) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReplicationExecution ¶
type ReplicationExecution struct { // The end time // Format: date-time EndTime strfmt.DateTime `json:"end_time,omitempty"` // The count of failed executions Failed int64 `json:"failed"` // The ID of the execution ID int64 `json:"id,omitempty"` // The count of in_progress executions InProgress int64 `json:"in_progress"` // The ID if the policy that the execution belongs to PolicyID int64 `json:"policy_id,omitempty"` // The start time // Format: date-time StartTime strfmt.DateTime `json:"start_time,omitempty"` // The status of the execution Status string `json:"status,omitempty"` // The status text StatusText string `json:"status_text"` // The count of stopped executions Stopped int64 `json:"stopped"` // The count of succeed executions Succeed int64 `json:"succeed"` // The total count of all executions Total int64 `json:"total"` // The trigger mode Trigger string `json:"trigger,omitempty"` }
ReplicationExecution The replication execution
swagger:model ReplicationExecution
func (*ReplicationExecution) ContextValidate ¶
ContextValidate validates this replication execution based on context it is used
func (*ReplicationExecution) MarshalBinary ¶
func (m *ReplicationExecution) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReplicationExecution) UnmarshalBinary ¶
func (m *ReplicationExecution) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReplicationTask ¶
type ReplicationTask struct { // The destination resource that the task operates DstResource string `json:"dst_resource,omitempty"` // The end time of the task // Format: date-time EndTime strfmt.DateTime `json:"end_time,omitempty"` // The ID of the execution that the task belongs to ExecutionID int64 `json:"execution_id,omitempty"` // The ID of the task ID int64 `json:"id,omitempty"` // The ID of the underlying job that the task related to JobID string `json:"job_id,omitempty"` // The operation of the task Operation string `json:"operation,omitempty"` // The type of the resource that the task operates ResourceType string `json:"resource_type,omitempty"` // The source resource that the task operates SrcResource string `json:"src_resource,omitempty"` // The start time of the task // Format: date-time StartTime strfmt.DateTime `json:"start_time,omitempty"` // The status of the task Status string `json:"status,omitempty"` }
ReplicationTask The replication task
swagger:model ReplicationTask
func (*ReplicationTask) ContextValidate ¶
ContextValidate validates this replication task based on context it is used
func (*ReplicationTask) MarshalBinary ¶
func (m *ReplicationTask) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReplicationTask) UnmarshalBinary ¶
func (m *ReplicationTask) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Repository ¶
type Repository struct { // The count of the artifacts inside the repository ArtifactCount int64 `json:"artifact_count,omitempty"` // The creation time of the repository // Format: date-time CreationTime strfmt.DateTime `json:"creation_time,omitempty"` // The description of the repository Description string `json:"description,omitempty"` // The ID of the repository ID int64 `json:"id,omitempty"` // The name of the repository Name string `json:"name,omitempty"` // The ID of the project that the repository belongs to ProjectID int64 `json:"project_id,omitempty"` // The count that the artifact inside the repository pulled PullCount int64 `json:"pull_count,omitempty"` // The update time of the repository // Format: date-time UpdateTime strfmt.DateTime `json:"update_time,omitempty"` }
Repository repository
swagger:model Repository
func (*Repository) ContextValidate ¶
ContextValidate validates this repository based on context it is used
func (*Repository) MarshalBinary ¶
func (m *Repository) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Repository) UnmarshalBinary ¶
func (m *Repository) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ResourceList ¶
ResourceList resource list
swagger:model ResourceList
func (ResourceList) ContextValidate ¶
ContextValidate validates this resource list based on context it is used
type RetentionExecution ¶
type RetentionExecution struct { // dry run DryRun bool `json:"dry_run,omitempty"` // end time EndTime string `json:"end_time,omitempty"` // id ID int64 `json:"id,omitempty"` // policy id PolicyID int64 `json:"policy_id,omitempty"` // start time StartTime string `json:"start_time,omitempty"` // status Status string `json:"status,omitempty"` // trigger Trigger string `json:"trigger,omitempty"` }
RetentionExecution retention execution
swagger:model RetentionExecution
func (*RetentionExecution) ContextValidate ¶
ContextValidate validates this retention execution based on context it is used
func (*RetentionExecution) MarshalBinary ¶
func (m *RetentionExecution) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionExecution) UnmarshalBinary ¶
func (m *RetentionExecution) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RetentionExecutionTask ¶
type RetentionExecutionTask struct { // end time EndTime string `json:"end_time,omitempty"` // execution id ExecutionID int64 `json:"execution_id,omitempty"` // id ID int64 `json:"id,omitempty"` // job id JobID string `json:"job_id,omitempty"` // repository Repository string `json:"repository,omitempty"` // retained Retained int64 `json:"retained"` // start time StartTime string `json:"start_time,omitempty"` // status Status string `json:"status,omitempty"` // status code StatusCode int64 `json:"status_code"` // status revision StatusRevision int64 `json:"status_revision,omitempty"` // total Total int64 `json:"total"` }
RetentionExecutionTask retention execution task
swagger:model RetentionExecutionTask
func (*RetentionExecutionTask) ContextValidate ¶
func (m *RetentionExecutionTask) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this retention execution task based on context it is used
func (*RetentionExecutionTask) MarshalBinary ¶
func (m *RetentionExecutionTask) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionExecutionTask) UnmarshalBinary ¶
func (m *RetentionExecutionTask) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RetentionMetadata ¶
type RetentionMetadata struct { // supported scope selectors ScopeSelectors []*RetentionSelectorMetadata `json:"scope_selectors"` // supported tag selectors TagSelectors []*RetentionSelectorMetadata `json:"tag_selectors"` // templates Templates []*RetentionRuleMetadata `json:"templates"` }
RetentionMetadata the tag retention metadata
swagger:model RetentionMetadata
func (*RetentionMetadata) ContextValidate ¶
ContextValidate validate this retention metadata based on the context it is used
func (*RetentionMetadata) MarshalBinary ¶
func (m *RetentionMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionMetadata) UnmarshalBinary ¶
func (m *RetentionMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RetentionPolicy ¶
type RetentionPolicy struct { // algorithm Algorithm string `json:"algorithm,omitempty"` // id ID int64 `json:"id,omitempty"` // rules Rules []*RetentionRule `json:"rules"` // scope Scope *RetentionPolicyScope `json:"scope,omitempty"` // trigger Trigger *RetentionRuleTrigger `json:"trigger,omitempty"` }
RetentionPolicy retention policy
swagger:model RetentionPolicy
func (*RetentionPolicy) ContextValidate ¶
ContextValidate validate this retention policy based on the context it is used
func (*RetentionPolicy) MarshalBinary ¶
func (m *RetentionPolicy) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionPolicy) UnmarshalBinary ¶
func (m *RetentionPolicy) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RetentionPolicyScope ¶
type RetentionPolicyScope struct { // level Level string `json:"level,omitempty"` // ref Ref int64 `json:"ref,omitempty"` }
RetentionPolicyScope retention policy scope
swagger:model RetentionPolicyScope
func (*RetentionPolicyScope) ContextValidate ¶
ContextValidate validates this retention policy scope based on context it is used
func (*RetentionPolicyScope) MarshalBinary ¶
func (m *RetentionPolicyScope) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionPolicyScope) UnmarshalBinary ¶
func (m *RetentionPolicyScope) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RetentionRule ¶
type RetentionRule struct { // action Action string `json:"action,omitempty"` // disabled Disabled bool `json:"disabled,omitempty"` // id ID int64 `json:"id,omitempty"` // params Params map[string]interface{} `json:"params,omitempty"` // priority Priority int64 `json:"priority,omitempty"` // scope selectors ScopeSelectors map[string][]RetentionSelector `json:"scope_selectors,omitempty"` // tag selectors TagSelectors []*RetentionSelector `json:"tag_selectors"` // template Template string `json:"template,omitempty"` }
RetentionRule retention rule
swagger:model RetentionRule
func (*RetentionRule) ContextValidate ¶
ContextValidate validate this retention rule based on the context it is used
func (*RetentionRule) MarshalBinary ¶
func (m *RetentionRule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionRule) UnmarshalBinary ¶
func (m *RetentionRule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RetentionRuleMetadata ¶
type RetentionRuleMetadata struct { // rule action Action string `json:"action,omitempty"` // rule display text DisplayText string `json:"display_text,omitempty"` // rule params Params []*RetentionRuleParamMetadata `json:"params"` // rule id RuleTemplate string `json:"rule_template,omitempty"` }
RetentionRuleMetadata the tag retention rule metadata
swagger:model RetentionRuleMetadata
func (*RetentionRuleMetadata) ContextValidate ¶
ContextValidate validate this retention rule metadata based on the context it is used
func (*RetentionRuleMetadata) MarshalBinary ¶
func (m *RetentionRuleMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionRuleMetadata) UnmarshalBinary ¶
func (m *RetentionRuleMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RetentionRuleParamMetadata ¶
type RetentionRuleParamMetadata struct { // required Required bool `json:"required,omitempty"` // type Type string `json:"type,omitempty"` // unit Unit string `json:"unit,omitempty"` }
RetentionRuleParamMetadata rule param
swagger:model RetentionRuleParamMetadata
func (*RetentionRuleParamMetadata) ContextValidate ¶
func (m *RetentionRuleParamMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this retention rule param metadata based on context it is used
func (*RetentionRuleParamMetadata) MarshalBinary ¶
func (m *RetentionRuleParamMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionRuleParamMetadata) UnmarshalBinary ¶
func (m *RetentionRuleParamMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RetentionRuleTrigger ¶
type RetentionRuleTrigger struct { // kind Kind string `json:"kind,omitempty"` // references References interface{} `json:"references,omitempty"` // settings Settings interface{} `json:"settings,omitempty"` }
RetentionRuleTrigger retention rule trigger
swagger:model RetentionRuleTrigger
func (*RetentionRuleTrigger) ContextValidate ¶
ContextValidate validates this retention rule trigger based on context it is used
func (*RetentionRuleTrigger) MarshalBinary ¶
func (m *RetentionRuleTrigger) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionRuleTrigger) UnmarshalBinary ¶
func (m *RetentionRuleTrigger) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RetentionSelector ¶
type RetentionSelector struct { // decoration Decoration string `json:"decoration,omitempty"` // extras Extras string `json:"extras,omitempty"` // kind Kind string `json:"kind,omitempty"` // pattern Pattern string `json:"pattern,omitempty"` }
RetentionSelector retention selector
swagger:model RetentionSelector
func (*RetentionSelector) ContextValidate ¶
ContextValidate validates this retention selector based on context it is used
func (*RetentionSelector) MarshalBinary ¶
func (m *RetentionSelector) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionSelector) UnmarshalBinary ¶
func (m *RetentionSelector) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RetentionSelectorMetadata ¶
type RetentionSelectorMetadata struct { // decorations Decorations []string `json:"decorations"` // display text DisplayText string `json:"display_text,omitempty"` // kind Kind string `json:"kind,omitempty"` }
RetentionSelectorMetadata retention selector
swagger:model RetentionSelectorMetadata
func (*RetentionSelectorMetadata) ContextValidate ¶
func (m *RetentionSelectorMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this retention selector metadata based on context it is used
func (*RetentionSelectorMetadata) MarshalBinary ¶
func (m *RetentionSelectorMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionSelectorMetadata) UnmarshalBinary ¶
func (m *RetentionSelectorMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Robot ¶
type Robot struct { // The creation time of the robot. // Format: date-time CreationTime strfmt.DateTime `json:"creation_time,omitempty"` // The description of the robot Description string `json:"description,omitempty"` // The disable status of the robot Disable bool `json:"disable"` // The duration of the robot in days Duration int64 `json:"duration,omitempty"` // The editable status of the robot Editable bool `json:"editable"` // The expiration data of the robot ExpiresAt int64 `json:"expires_at,omitempty"` // The ID of the robot ID int64 `json:"id,omitempty"` // The level of the robot, project or system Level string `json:"level,omitempty"` // The name of the tag Name string `json:"name,omitempty"` // permissions Permissions []*RobotPermission `json:"permissions"` // The secret of the robot Secret string `json:"secret,omitempty"` // The update time of the robot. // Format: date-time UpdateTime strfmt.DateTime `json:"update_time,omitempty"` }
Robot robot
swagger:model Robot
func (*Robot) ContextValidate ¶
ContextValidate validate this robot based on the context it is used
func (*Robot) MarshalBinary ¶
MarshalBinary interface implementation
func (*Robot) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RobotCreate ¶
type RobotCreate struct { // The description of the robot Description string `json:"description,omitempty"` // The disable status of the robot Disable bool `json:"disable,omitempty"` // The duration of the robot in days Duration int64 `json:"duration,omitempty"` // The level of the robot, project or system Level string `json:"level,omitempty"` // The name of the tag Name string `json:"name,omitempty"` // permissions Permissions []*RobotPermission `json:"permissions"` // The secret of the robot Secret string `json:"secret,omitempty"` }
RobotCreate The request for robot account creation.
swagger:model RobotCreate
func (*RobotCreate) ContextValidate ¶
ContextValidate validate this robot create based on the context it is used
func (*RobotCreate) MarshalBinary ¶
func (m *RobotCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RobotCreate) UnmarshalBinary ¶
func (m *RobotCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RobotCreateV1 ¶
type RobotCreateV1 struct { // The permission of robot account Access []*Access `json:"access"` // The description of robot account Description string `json:"description,omitempty"` // The expiration time on or after which the JWT MUST NOT be accepted for processing. ExpiresAt int64 `json:"expires_at,omitempty"` // The name of robot account Name string `json:"name,omitempty"` }
RobotCreateV1 robot create v1
swagger:model RobotCreateV1
func (*RobotCreateV1) ContextValidate ¶
ContextValidate validate this robot create v1 based on the context it is used
func (*RobotCreateV1) MarshalBinary ¶
func (m *RobotCreateV1) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RobotCreateV1) UnmarshalBinary ¶
func (m *RobotCreateV1) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RobotCreated ¶
type RobotCreated struct { // The creation time of the robot. // Format: date-time CreationTime strfmt.DateTime `json:"creation_time,omitempty"` // The expiration data of the robot ExpiresAt int64 `json:"expires_at,omitempty"` // The ID of the robot ID int64 `json:"id,omitempty"` // The name of the tag Name string `json:"name,omitempty"` // The secret of the robot Secret string `json:"secret,omitempty"` }
RobotCreated The response for robot account creation.
swagger:model RobotCreated
func (*RobotCreated) ContextValidate ¶
ContextValidate validates this robot created based on context it is used
func (*RobotCreated) MarshalBinary ¶
func (m *RobotCreated) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RobotCreated) UnmarshalBinary ¶
func (m *RobotCreated) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RobotPermission ¶
type RobotPermission struct { // access Access []*Access `json:"access"` // The kind of the permission Kind string `json:"kind,omitempty"` // The namespace of the permission Namespace string `json:"namespace,omitempty"` }
RobotPermission robot permission
swagger:model RobotPermission
func (*RobotPermission) ContextValidate ¶
ContextValidate validate this robot permission based on the context it is used
func (*RobotPermission) MarshalBinary ¶
func (m *RobotPermission) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RobotPermission) UnmarshalBinary ¶
func (m *RobotPermission) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RobotSec ¶
type RobotSec struct { // The secret of the robot Secret string `json:"secret,omitempty"` }
RobotSec The response for refresh/update robot account secret.
swagger:model RobotSec
func (*RobotSec) ContextValidate ¶
ContextValidate validates this robot sec based on context it is used
func (*RobotSec) MarshalBinary ¶
MarshalBinary interface implementation
func (*RobotSec) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ScanOverview ¶
type ScanOverview map[string]NativeReportSummary
ScanOverview The scan overview attached in the metadata of tag
swagger:model ScanOverview
func (ScanOverview) ContextValidate ¶
ContextValidate validate this scan overview based on the context it is used
type Scanner ¶
type Scanner struct { // Name of the scanner // Example: Trivy Name string `json:"name,omitempty"` // Name of the scanner provider // Example: Aqua Security Vendor string `json:"vendor,omitempty"` // Version of the scanner adapter // Example: v0.9.1 Version string `json:"version,omitempty"` }
Scanner scanner
swagger:model Scanner
func (*Scanner) ContextValidate ¶
ContextValidate validates this scanner based on context it is used
func (*Scanner) MarshalBinary ¶
MarshalBinary interface implementation
func (*Scanner) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Schedule ¶
type Schedule struct { // the creation time of the schedule. // Read Only: true // Format: date-time CreationTime strfmt.DateTime `json:"creation_time,omitempty"` // The id of the schedule. // Read Only: true ID int64 `json:"id,omitempty"` // The parameters of schedule job Parameters map[string]interface{} `json:"parameters,omitempty"` // schedule Schedule *ScheduleObj `json:"schedule,omitempty"` // The status of the schedule. // Read Only: true Status string `json:"status,omitempty"` // the update time of the schedule. // Read Only: true // Format: date-time UpdateTime strfmt.DateTime `json:"update_time,omitempty"` }
Schedule schedule
swagger:model Schedule
func (*Schedule) ContextValidate ¶
ContextValidate validate this schedule based on the context it is used
func (*Schedule) MarshalBinary ¶
MarshalBinary interface implementation
func (*Schedule) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ScheduleObj ¶
type ScheduleObj struct { // A cron expression, a time-based job scheduler. Cron string `json:"cron,omitempty"` // The schedule type. The valid values are 'Hourly', 'Daily', 'Weekly', 'Custom', 'Manual' and 'None'. // 'Manual' means to trigger it right away and 'None' means to cancel the schedule. // // Enum: [Hourly Daily Weekly Custom Manual None] Type string `json:"type,omitempty"` }
ScheduleObj schedule obj
swagger:model ScheduleObj
func (*ScheduleObj) ContextValidate ¶
ContextValidate validates this schedule obj based on context it is used
func (*ScheduleObj) MarshalBinary ¶
func (m *ScheduleObj) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ScheduleObj) UnmarshalBinary ¶
func (m *ScheduleObj) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartReplicationExecution ¶
type StartReplicationExecution struct { // The ID of policy that the execution belongs to. PolicyID int64 `json:"policy_id,omitempty"` }
StartReplicationExecution start replication execution
swagger:model StartReplicationExecution
func (*StartReplicationExecution) ContextValidate ¶
func (m *StartReplicationExecution) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this start replication execution based on context it is used
func (*StartReplicationExecution) MarshalBinary ¶
func (m *StartReplicationExecution) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartReplicationExecution) UnmarshalBinary ¶
func (m *StartReplicationExecution) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Stats ¶
type Stats struct { // The number of the finished scan processes triggered by the scan all action // Example: 90 Completed int64 `json:"completed"` // The metrics data for the each status // Example: {"Error":2,"Running":3,"Success":5} Metrics map[string]int64 `json:"metrics,omitempty"` // A flag indicating job status of scan all. Ongoing bool `json:"ongoing"` // The total number of scan processes triggered by the scan all action // Example: 100 Total int64 `json:"total"` // The trigger of the scan all job. // Enum: [Manual Schedule Event] Trigger string `json:"trigger,omitempty"` }
Stats Stats provides the overall progress of the scan all process.
swagger:model Stats
func (*Stats) ContextValidate ¶
ContextValidate validates this stats based on context it is used
func (*Stats) MarshalBinary ¶
MarshalBinary interface implementation
func (*Stats) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Storage ¶
type Storage struct { // Free volume size. Free uint64 `json:"free,omitempty"` // Total volume size. Total uint64 `json:"total,omitempty"` }
Storage storage
swagger:model Storage
func (*Storage) ContextValidate ¶
ContextValidate validates this storage based on context it is used
func (*Storage) MarshalBinary ¶
MarshalBinary interface implementation
func (*Storage) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SystemInfo ¶
type SystemInfo struct { // The storage of system. Storage []*Storage `json:"storage"` }
SystemInfo system info
swagger:model SystemInfo
func (*SystemInfo) ContextValidate ¶
ContextValidate validate this system info based on the context it is used
func (*SystemInfo) MarshalBinary ¶
func (m *SystemInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SystemInfo) UnmarshalBinary ¶
func (m *SystemInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Tag ¶
type Tag struct { // The ID of the artifact that the tag attached to ArtifactID int64 `json:"artifact_id,omitempty"` // The ID of the tag ID int64 `json:"id,omitempty"` // The immutable status of the tag Immutable bool `json:"immutable"` // The name of the tag Name string `json:"name,omitempty"` // The latest pull time of the tag // Format: date-time PullTime strfmt.DateTime `json:"pull_time,omitempty"` // The push time of the tag // Format: date-time PushTime strfmt.DateTime `json:"push_time,omitempty"` // The ID of the repository that the tag belongs to RepositoryID int64 `json:"repository_id,omitempty"` // The attribute indicates whether the tag is signed or not Signed bool `json:"signed"` }
Tag tag
swagger:model Tag
func (*Tag) ContextValidate ¶
ContextValidate validates this tag based on context it is used
func (*Tag) MarshalBinary ¶
MarshalBinary interface implementation
func (*Tag) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Task ¶
type Task struct { // The creation time of task CreationTime string `json:"creation_time,omitempty"` // The end time of task EndTime string `json:"end_time,omitempty"` // The ID of task execution ExecutionID int64 `json:"execution_id,omitempty"` // extra attrs ExtraAttrs ExtraAttrs `json:"extra_attrs,omitempty"` // The ID of task ID int64 `json:"id,omitempty"` // The count of task run RunCount int32 `json:"run_count,omitempty"` // The start time of task StartTime string `json:"start_time,omitempty"` // The status of task Status string `json:"status,omitempty"` // The status message of task StatusMessage string `json:"status_message,omitempty"` // The update time of task UpdateTime string `json:"update_time,omitempty"` }
Task task
swagger:model Task
func (*Task) ContextValidate ¶
ContextValidate validate this task based on the context it is used
func (*Task) MarshalBinary ¶
MarshalBinary interface implementation
func (*Task) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type VulnerabilitySummary ¶
type VulnerabilitySummary struct { // The number of the fixable vulnerabilities // Example: 100 Fixable int64 `json:"fixable"` // Numbers of the vulnerabilities with different severity // Example: {"Critical":5,"High":5} Summary map[string]int64 `json:"summary"` // The total number of the found vulnerabilities // Example: 500 Total int64 `json:"total"` }
VulnerabilitySummary VulnerabilitySummary contains the total number of the foun d vulnerabilities number and numbers of each severity level.
swagger:model VulnerabilitySummary
func (*VulnerabilitySummary) ContextValidate ¶
ContextValidate validates this vulnerability summary based on context it is used
func (*VulnerabilitySummary) MarshalBinary ¶
func (m *VulnerabilitySummary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VulnerabilitySummary) UnmarshalBinary ¶
func (m *VulnerabilitySummary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- access.go
- addition_link.go
- addition_links.go
- annotations.go
- artifact.go
- audit_log.go
- authproxy_setting.go
- c_v_e_allowlist.go
- c_v_e_allowlist_item.go
- error.go
- errors.go
- execution.go
- extra_attrs.go
- g_c_history.go
- general_info.go
- icon.go
- instance.go
- label.go
- metadata.go
- metrics.go
- native_report_summary.go
- platform.go
- preheat_policy.go
- project.go
- project_deletable.go
- project_metadata.go
- project_req.go
- project_summary.go
- provider_under_project.go
- reference.go
- registry.go
- registry_credential.go
- replication_execution.go
- replication_task.go
- repository.go
- resource_list.go
- retention_execution.go
- retention_execution_task.go
- retention_metadata.go
- retention_policy.go
- retention_policy_scope.go
- retention_rule.go
- retention_rule_metadata.go
- retention_rule_param_metadata.go
- retention_rule_trigger.go
- retention_selector.go
- retention_selector_metadata.go
- robot.go
- robot_create.go
- robot_create_v1.go
- robot_created.go
- robot_permission.go
- robot_sec.go
- scan_overview.go
- scanner.go
- schedule.go
- schedule_obj.go
- start_replication_execution.go
- stats.go
- storage.go
- system_info.go
- tag.go
- task.go
- vulnerability_summary.go