Documentation
¶
Index ¶
- type AdditionLink
- type AdditionLinks
- type Annotations
- type Artifact
- type AuditLog
- type CVEAllowlist
- type CVEAllowlistItem
- type Error
- type Errors
- type Execution
- type ExtraAttrs
- type Icon
- type Instance
- type InstanceCreatedResp
- type InstanceDeletedResp
- type InstanceUpdateResp
- 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 Repository
- type ResourceList
- type ScanOverview
- type Tag
- type Task
- type VulnerabilitySummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) 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
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) 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.
// 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) MarshalBinary ¶
MarshalBinary interface implementation
func (*AuditLog) UnmarshalBinary ¶
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) 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) 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) 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) 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) MarshalBinary ¶
MarshalBinary interface implementation
func (*Execution) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ExtraAttrs ¶
type ExtraAttrs map[string]interface{}
ExtraAttrs extra attrs
swagger:model ExtraAttrs
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) 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,omitempty"`
// Description of instance
Description string `json:"description,omitempty"`
// Whether the instance is activated or not
Enabled bool `json:"enabled,omitempty"`
// 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,omitempty"`
// 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) MarshalBinary ¶
MarshalBinary interface implementation
func (*Instance) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type InstanceCreatedResp ¶
type InstanceCreatedResp struct {
// ID of instance created
ID int64 `json:"id,omitempty"`
}
InstanceCreatedResp instance created resp
swagger:model InstanceCreatedResp
func (*InstanceCreatedResp) MarshalBinary ¶
func (m *InstanceCreatedResp) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InstanceCreatedResp) UnmarshalBinary ¶
func (m *InstanceCreatedResp) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InstanceDeletedResp ¶
type InstanceDeletedResp struct {
// ID of instance removed
Removed int64 `json:"removed,omitempty"`
}
InstanceDeletedResp instance deleted resp
swagger:model InstanceDeletedResp
func (*InstanceDeletedResp) MarshalBinary ¶
func (m *InstanceDeletedResp) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InstanceDeletedResp) UnmarshalBinary ¶
func (m *InstanceDeletedResp) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InstanceUpdateResp ¶
type InstanceUpdateResp struct {
// ID of instance updated
Updated int64 `json:"updated,omitempty"`
}
InstanceUpdateResp instance update resp
swagger:model InstanceUpdateResp
func (*InstanceUpdateResp) MarshalBinary ¶
func (m *InstanceUpdateResp) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InstanceUpdateResp) UnmarshalBinary ¶
func (m *InstanceUpdateResp) UnmarshalBinary(b []byte) error
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) 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) 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) 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
CompletePercent int64 `json:"complete_percent,omitempty"`
// The seconds spent for generating the report
Duration int64 `json:"duration,omitempty"`
// The end time of the scan process that generating report
// Format: date-time
EndTime strfmt.DateTime `json:"end_time,omitempty"`
// id of the native scan report
ReportID string `json:"report_id,omitempty"`
// The status of the report generating process
ScanStatus string `json:"scan_status,omitempty"`
// The overall severity
Severity string `json:"severity,omitempty"`
// The start time of the scan process that generating report
// 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) 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) 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,omitempty"`
// 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) MarshalBinary ¶
func (m *RegistryCredential) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RegistryCredential) UnmarshalBinary ¶
func (m *RegistryCredential) 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) MarshalBinary ¶
func (m *Repository) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Repository) UnmarshalBinary ¶
func (m *Repository) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ScanOverview ¶
type ScanOverview map[string]NativeReportSummary
ScanOverview The scan overview attached in the metadata of tag
swagger:model ScanOverview
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) 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 int64 `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) MarshalBinary ¶
MarshalBinary interface implementation
func (*Task) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type VulnerabilitySummary ¶
type VulnerabilitySummary struct {
// The number of the fixable vulnerabilities
Fixable int64 `json:"fixable,omitempty"`
// Numbers of the vulnerabilities with different severity
Summary map[string]int64 `json:"summary,omitempty"`
// The total number of the found vulnerabilities
Total int64 `json:"total,omitempty"`
}
VulnerabilitySummary VulnerabilitySummary contains the total number of the foun d vulnerabilities number and numbers of each severity level.
swagger:model VulnerabilitySummary
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
¶
- addition_link.go
- addition_links.go
- annotations.go
- artifact.go
- audit_log.go
- c_v_e_allowlist.go
- c_v_e_allowlist_item.go
- error.go
- errors.go
- execution.go
- extra_attrs.go
- icon.go
- instance.go
- instance_created_resp.go
- instance_deleted_resp.go
- instance_update_resp.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
- repository.go
- resource_list.go
- scan_overview.go
- tag.go
- task.go
- vulnerability_summary.go