models

package module
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

models

harbor models

swagger generate model -f swagger/swagger.yaml --template-dir swagger/templates --additional-initialism=CVE --additional-initialism=GC

mv models/* ./
rm -rf models

Documentation

Index

Constants

View Source
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"
)
View Source
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) MarshalBinary

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

MarshalBinary interface implementation

func (*Access) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Access) Validate

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

Validate validates this access

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 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) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthproxySetting) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthproxySetting) Validate

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

Validate validates this authproxy setting

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 CVE 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 CVE 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 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 GC history swagger:model GCHistory

func (*GCHistory) MarshalBinary

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

MarshalBinary interface implementation

func (*GCHistory) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GCHistory) Validate

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

Validate validates this GC history

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) MarshalBinary

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

MarshalBinary interface implementation

func (*GeneralInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GeneralInfo) Validate

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

Validate validates this general info

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"`

	// 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) 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 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"`

	// scanner
	Scanner *Scanner `json:"scanner,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"`

	// 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 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) MarshalBinary

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

MarshalBinary interface implementation

func (*ReplicationExecution) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ReplicationExecution) Validate

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

Validate validates this replication execution

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) MarshalBinary

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

MarshalBinary interface implementation

func (*ReplicationTask) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ReplicationTask) Validate

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

Validate validates this replication task

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 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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionExecution) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionExecution) Validate

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

Validate validates this retention execution

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionExecutionTask) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionExecutionTask) Validate

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

Validate validates this retention execution task

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionMetadata) Validate

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

Validate validates this retention metadata

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionPolicy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionPolicy) Validate

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

Validate validates this retention policy

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionPolicyScope) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionPolicyScope) Validate

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

Validate validates this retention policy scope

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRule) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionRule) Validate

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

Validate validates this retention rule

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRuleMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionRuleMetadata) Validate

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

Validate validates this retention rule metadata

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRuleParamMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionRuleParamMetadata) Validate

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

Validate validates this retention rule param metadata

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRuleTrigger) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionRuleTrigger) Validate

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

Validate validates this retention rule trigger

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionSelector) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionSelector) Validate

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

Validate validates this retention selector

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionSelectorMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionSelectorMetadata) Validate

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

Validate validates this retention selector metadata

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) MarshalBinary

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

MarshalBinary interface implementation

func (*Robot) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Robot) Validate

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

Validate validates this robot

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RobotCreate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RobotCreate) Validate

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

Validate validates this robot create

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RobotCreateV1) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RobotCreateV1) Validate

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

Validate validates this robot create v1

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RobotCreated) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RobotCreated) Validate

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

Validate validates this robot created

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RobotPermission) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RobotPermission) Validate

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

Validate validates this robot permission

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) MarshalBinary

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

MarshalBinary interface implementation

func (*RobotSec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RobotSec) Validate

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

Validate validates this robot sec

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 Scanner

type Scanner struct {

	// Name of the scanner
	Name string `json:"name,omitempty"`

	// Name of the scanner provider
	Vendor string `json:"vendor,omitempty"`

	// Version of the scanner adapter
	Version string `json:"version,omitempty"`
}

Scanner scanner swagger:model Scanner

func (*Scanner) MarshalBinary

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

MarshalBinary interface implementation

func (*Scanner) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Scanner) Validate

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

Validate validates this scanner

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) MarshalBinary

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

MarshalBinary interface implementation

func (*Schedule) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Schedule) Validate

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

Validate validates this schedule

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) MarshalBinary

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

MarshalBinary interface implementation

func (*ScheduleObj) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScheduleObj) Validate

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

Validate validates this schedule obj

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) MarshalBinary

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

MarshalBinary interface implementation

func (*StartReplicationExecution) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StartReplicationExecution) Validate

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

Validate validates this start replication execution

type Stats

type Stats struct {

	// The number of the finished scan processes triggered by the scan all action
	Completed int64 `json:"completed"`

	// The metrics data for the each status
	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
	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) MarshalBinary

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

MarshalBinary interface implementation

func (*Stats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Stats) Validate

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

Validate validates this stats

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) MarshalBinary

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

MarshalBinary interface implementation

func (*Storage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Storage) Validate

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

Validate validates this storage

type SystemInfo

type SystemInfo struct {

	// The storage of system.
	Storage []*Storage `json:"storage"`
}

SystemInfo system info swagger:model SystemInfo

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

func (*SystemInfo) Validate

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

Validate validates this system info

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 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) 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"`

	// Numbers of the vulnerabilities with different severity
	Summary map[string]int64 `json:"summary"`

	// The total number of the found vulnerabilities
	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) 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

Jump to

Keyboard shortcuts

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