model

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (*AdditionLink) Validate

func (m *AdditionLink) Validate(formats strfmt.Registry) error

Validate validates this addition link

type AdditionLinks map[string]AdditionLink

AdditionLinks addition links

swagger:model AdditionLinks

func (AdditionLinks) Validate

func (m AdditionLinks) Validate(formats strfmt.Registry) error

Validate validates this addition links

type Annotations

type Annotations map[string]string

Annotations annotations

swagger:model Annotations

func (Annotations) Validate

func (m Annotations) Validate(formats strfmt.Registry) error

Validate validates this annotations

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

func (m *Artifact) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Artifact) UnmarshalBinary

func (m *Artifact) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Artifact) Validate

func (m *Artifact) Validate(formats strfmt.Registry) error

Validate validates this artifact

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

func (m *AuditLog) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AuditLog) UnmarshalBinary

func (m *AuditLog) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AuditLog) Validate

func (m *AuditLog) Validate(formats strfmt.Registry) error

Validate validates this audit log

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

func (*CVEAllowlist) Validate

func (m *CVEAllowlist) Validate(formats strfmt.Registry) error

Validate validates this c v e allowlist

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

func (*CVEAllowlistItem) Validate

func (m *CVEAllowlistItem) Validate(formats strfmt.Registry) error

Validate validates this c v e allowlist item

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

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

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

func (m *Errors) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Errors) UnmarshalBinary

func (m *Errors) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Errors) Validate

func (m *Errors) Validate(formats strfmt.Registry) error

Validate validates this errors

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

func (m *Execution) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Execution) UnmarshalBinary

func (m *Execution) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Execution) Validate

func (m *Execution) Validate(formats strfmt.Registry) error

Validate validates this execution

type ExtraAttrs

type ExtraAttrs map[string]interface{}

ExtraAttrs extra attrs

swagger:model ExtraAttrs

func (ExtraAttrs) Validate

func (m ExtraAttrs) Validate(formats strfmt.Registry) error

Validate validates this extra attrs

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

func (m *Icon) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Icon) UnmarshalBinary

func (m *Icon) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Icon) Validate

func (m *Icon) Validate(formats strfmt.Registry) error

Validate validates this icon

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

func (m *Instance) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Instance) UnmarshalBinary

func (m *Instance) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Instance) Validate

func (m *Instance) Validate(formats strfmt.Registry) error

Validate validates this instance

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

func (*InstanceCreatedResp) Validate

func (m *InstanceCreatedResp) Validate(formats strfmt.Registry) error

Validate validates this instance created resp

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

func (*InstanceDeletedResp) Validate

func (m *InstanceDeletedResp) Validate(formats strfmt.Registry) error

Validate validates this instance deleted resp

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

func (*InstanceUpdateResp) Validate

func (m *InstanceUpdateResp) Validate(formats strfmt.Registry) error

Validate validates this instance update resp

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

func (m *Label) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Label) UnmarshalBinary

func (m *Label) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Label) Validate

func (m *Label) Validate(formats strfmt.Registry) error

Validate validates this label

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

func (m *Metadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Metadata) UnmarshalBinary

func (m *Metadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Metadata) Validate

func (m *Metadata) Validate(formats strfmt.Registry) error

Validate validates this metadata

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

func (m *Metrics) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Metrics) UnmarshalBinary

func (m *Metrics) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Metrics) Validate

func (m *Metrics) Validate(formats strfmt.Registry) error

Validate validates this metrics

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

func (*NativeReportSummary) Validate

func (m *NativeReportSummary) Validate(formats strfmt.Registry) error

Validate validates this native report summary

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

func (m *Platform) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Platform) UnmarshalBinary

func (m *Platform) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Platform) Validate

func (m *Platform) Validate(formats strfmt.Registry) error

Validate validates this platform

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

func (*PreheatPolicy) Validate

func (m *PreheatPolicy) Validate(formats strfmt.Registry) error

Validate validates this preheat policy

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

func (m *Project) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Project) UnmarshalBinary

func (m *Project) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Project) Validate

func (m *Project) Validate(formats strfmt.Registry) error

Validate validates this project

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

func (*ProjectDeletable) Validate

func (m *ProjectDeletable) Validate(formats strfmt.Registry) error

Validate validates this project deletable

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

func (*ProjectMetadata) Validate

func (m *ProjectMetadata) Validate(formats strfmt.Registry) error

Validate validates this project metadata

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

func (*ProjectReq) Validate

func (m *ProjectReq) Validate(formats strfmt.Registry) error

Validate validates this project req

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

func (*ProjectSummary) Validate

func (m *ProjectSummary) Validate(formats strfmt.Registry) error

Validate validates this project summary

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

func (*ProjectSummaryQuota) Validate

func (m *ProjectSummaryQuota) Validate(formats strfmt.Registry) error

Validate validates this project summary quota

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

func (*ProviderUnderProject) Validate

func (m *ProviderUnderProject) Validate(formats strfmt.Registry) error

Validate validates this provider under project

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

func (m *Reference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Reference) UnmarshalBinary

func (m *Reference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Reference) Validate

func (m *Reference) Validate(formats strfmt.Registry) error

Validate validates this reference

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

func (m *Registry) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Registry) UnmarshalBinary

func (m *Registry) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Registry) Validate

func (m *Registry) Validate(formats strfmt.Registry) error

Validate validates this registry

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

func (*RegistryCredential) Validate

func (m *RegistryCredential) Validate(formats strfmt.Registry) error

Validate validates this registry credential

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

func (*Repository) Validate

func (m *Repository) Validate(formats strfmt.Registry) error

Validate validates this repository

type ResourceList

type ResourceList map[string]int64

ResourceList resource list

swagger:model ResourceList

func (ResourceList) Validate

func (m ResourceList) Validate(formats strfmt.Registry) error

Validate validates this resource list

type ScanOverview

type ScanOverview map[string]NativeReportSummary

ScanOverview The scan overview attached in the metadata of tag

swagger:model ScanOverview

func (ScanOverview) Validate

func (m ScanOverview) Validate(formats strfmt.Registry) error

Validate validates this scan overview

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

func (m *Tag) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary

func (m *Tag) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Tag) Validate

func (m *Tag) Validate(formats strfmt.Registry) error

Validate validates this tag

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

func (m *Task) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Task) UnmarshalBinary

func (m *Task) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Task) Validate

func (m *Task) Validate(formats strfmt.Registry) error

Validate validates this task

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

func (*VulnerabilitySummary) Validate

func (m *VulnerabilitySummary) Validate(formats strfmt.Registry) error

Validate validates this vulnerability summary

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL