model

package
v5.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 6 Imported by: 24

Documentation

Index

Constants

View Source
const (

	// ActionRequestActionStop captures enum value "stop"
	ActionRequestActionStop string = "stop"

	// ActionRequestActionPause captures enum value "pause"
	ActionRequestActionPause string = "pause"

	// ActionRequestActionResume captures enum value "resume"
	ActionRequestActionResume string = "resume"
)
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"

	// ScheduleObjTypeSchedule captures enum value "Schedule"
	ScheduleObjTypeSchedule string = "Schedule"
)
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. Possible actions are *, pull, push, create, read, update, delete, list, operate, scanner-pull and stop.
	Action string `json:"action,omitempty"`

	// The effect of the access
	Effect string `json:"effect,omitempty"`

	// The resource of the access. Possible resources are *, artifact, artifact-addition, artifact-label, audit-log, catalog, configuration, distribution, garbage-collection, helm-chart, helm-chart-version, helm-chart-version-label, immutable-tag, label, ldap-user, log, member, metadata, notification-policy, preheat-instance, preheat-policy, project, quota, registry, replication, replication-adapter, replication-policy, repository, robot, scan, scan-all, scanner, system-volumes, tag, tag-retention, user, user-group or "" (for self-reference).
	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 Accessory added in v5.1.0

type Accessory struct {

	// The artifact id of the accessory
	ArtifactID int64 `json:"artifact_id"`

	// The creation time of the accessory
	// Format: date-time
	CreationTime strfmt.DateTime `json:"creation_time,omitempty"`

	// The artifact digest of the accessory
	Digest string `json:"digest"`

	// The icon of the accessory
	Icon string `json:"icon"`

	// The ID of the accessory
	ID int64 `json:"id,omitempty"`

	// The artifact size of the accessory
	Size int64 `json:"size"`

	// The subject artifact digest of the accessory
	SubjectArtifactDigest string `json:"subject_artifact_digest"`

	// Going to be deprecated, use repo and digest for insteand. The subject artifact id of the accessory.
	SubjectArtifactID int64 `json:"subject_artifact_id,omitempty"`

	// The subject artifact repository name of the accessory
	SubjectArtifactRepo string `json:"subject_artifact_repo"`

	// The artifact size of the accessory
	Type string `json:"type"`
}

Accessory The accessory of the artifact

swagger:model Accessory

func (*Accessory) MarshalBinary added in v5.1.0

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

MarshalBinary interface implementation

func (*Accessory) UnmarshalBinary added in v5.1.0

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

UnmarshalBinary interface implementation

func (*Accessory) Validate added in v5.1.0

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

Validate validates this accessory

type ActionRequest added in v5.2.0

type ActionRequest struct {

	// The action of the request, should be stop, pause or resume
	// Enum: [stop pause resume]
	Action string `json:"action,omitempty"`
}

ActionRequest The request to stop, pause or resume

swagger:model ActionRequest

func (*ActionRequest) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*ActionRequest) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*ActionRequest) Validate added in v5.2.0

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

Validate validates this action request

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 {

	// accessories
	Accessories []*Accessory `json:"accessories"`

	// 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 BoolConfigItem

type BoolConfigItem struct {

	// The configure item can be updated or not
	Editable bool `json:"editable"`

	// The boolean value of current config item
	Value bool `json:"value"`
}

BoolConfigItem bool config item

swagger:model BoolConfigItem

func (*BoolConfigItem) MarshalBinary

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

MarshalBinary interface implementation

func (*BoolConfigItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BoolConfigItem) Validate

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

Validate validates this bool config item

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 ComponentHealthStatus

type ComponentHealthStatus struct {

	// (optional) The error message when the status is "unhealthy"
	Error string `json:"error,omitempty"`

	// The component name
	Name string `json:"name,omitempty"`

	// The health status of component. Is either "healthy" or "unhealthy".
	Status string `json:"status,omitempty"`
}

ComponentHealthStatus The health status of component

swagger:model ComponentHealthStatus

func (*ComponentHealthStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*ComponentHealthStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ComponentHealthStatus) Validate

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

Validate validates this component health status

type Configurations

type Configurations struct {

	// The audit log forward endpoint
	AuditLogForwardEndpoint *string `json:"audit_log_forward_endpoint,omitempty"`

	// The auth mode of current system, such as "db_auth", "ldap_auth", "oidc_auth"
	AuthMode *string `json:"auth_mode,omitempty"`

	// The banner message for the UI.It is the stringified result of the banner message object
	BannerMessage *string `json:"banner_message,omitempty"`

	// The group which has the harbor admin privileges
	HTTPAuthproxyAdminGroups *string `json:"http_authproxy_admin_groups,omitempty"`

	// The username which has the harbor admin privileges
	HTTPAuthproxyAdminUsernames *string `json:"http_authproxy_admin_usernames,omitempty"`

	// The endpoint of the HTTP auth
	HTTPAuthproxyEndpoint *string `json:"http_authproxy_endpoint,omitempty"`

	// The certificate of the HTTP auth provider
	HTTPAuthproxyServerCertificate *string `json:"http_authproxy_server_certificate,omitempty"`

	// Search user before onboard
	HTTPAuthproxySkipSearch *bool `json:"http_authproxy_skip_search,omitempty"`

	// The token review endpoint
	HTTPAuthproxyTokenreviewEndpoint *string `json:"http_authproxy_tokenreview_endpoint,omitempty"`

	// Verify the HTTP auth provider's certificate
	HTTPAuthproxyVerifyCert *bool `json:"http_authproxy_verify_cert,omitempty"`

	// The Base DN for LDAP binding.
	LdapBaseDn *string `json:"ldap_base_dn,omitempty"`

	// The filter for LDAP search
	LdapFilter *string `json:"ldap_filter,omitempty"`

	// Specify the ldap group which have the same privilege with Harbor admin
	LdapGroupAdminDn *string `json:"ldap_group_admin_dn,omitempty"`

	// The attribute which is used as identity of the LDAP group, default is cn.'
	LdapGroupAttributeName *string `json:"ldap_group_attribute_name,omitempty"`

	// The base DN to search LDAP group.
	LdapGroupBaseDn *string `json:"ldap_group_base_dn,omitempty"`

	// The user attribute to identify the group membership
	LdapGroupMembershipAttribute *string `json:"ldap_group_membership_attribute,omitempty"`

	// The filter to search the ldap group
	LdapGroupSearchFilter *string `json:"ldap_group_search_filter,omitempty"`

	// The scope to search ldap group. ”0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE”
	LdapGroupSearchScope *int64 `json:"ldap_group_search_scope,omitempty"`

	// The scope to search ldap users,'0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE'
	LdapScope *int64 `json:"ldap_scope,omitempty"`

	// The DN of the user to do the search.
	LdapSearchDn *string `json:"ldap_search_dn,omitempty"`

	// The password of the ldap search dn
	LdapSearchPassword *string `json:"ldap_search_password,omitempty"`

	// Timeout in seconds for connection to LDAP server
	LdapTimeout *int64 `json:"ldap_timeout,omitempty"`

	// The attribute which is used as identity for the LDAP binding, such as "CN" or "SAMAccountname"
	LdapUID *string `json:"ldap_uid,omitempty"`

	// The URL of LDAP server
	LdapURL *string `json:"ldap_url,omitempty"`

	// Whether verify your OIDC server certificate, disable it if your OIDC server is hosted via self-hosted certificate.
	LdapVerifyCert *bool `json:"ldap_verify_cert,omitempty"`

	// Enable notification
	NotificationEnable *bool `json:"notification_enable,omitempty"`

	// The OIDC group which has the harbor admin privileges
	OIDCAdminGroup *string `json:"oidc_admin_group,omitempty"`

	// Auto onboard the OIDC user
	OIDCAutoOnboard *bool `json:"oidc_auto_onboard,omitempty"`

	// The client ID of the OIDC provider
	OIDCClientID *string `json:"oidc_client_id,omitempty"`

	// The OIDC provider secret
	OIDCClientSecret *string `json:"oidc_client_secret,omitempty"`

	// The endpoint of the OIDC provider
	OIDCEndpoint *string `json:"oidc_endpoint,omitempty"`

	// Extra parameters to add when redirect request to OIDC provider
	OIDCExtraRedirectParms *string `json:"oidc_extra_redirect_parms,omitempty"`

	// The OIDC group filter which filters out the group name doesn't match the regular expression
	OIDCGroupFilter *string `json:"oidc_group_filter,omitempty"`

	// The attribute claims the group name
	OIDCGroupsClaim *string `json:"oidc_groups_claim,omitempty"`

	// The OIDC provider name
	OIDCName *string `json:"oidc_name,omitempty"`

	// The scope of the OIDC provider
	OIDCScope *string `json:"oidc_scope,omitempty"`

	// The attribute claims the username
	OIDCUserClaim *string `json:"oidc_user_claim,omitempty"`

	// Verify the OIDC provider's certificate'
	OIDCVerifyCert *bool `json:"oidc_verify_cert,omitempty"`

	// The flag to indicate whether the current auth mode should consider as a primary one.
	PrimaryAuthMode *bool `json:"primary_auth_mode,omitempty"`

	// Indicate who can create projects, it could be ”adminonly” or ”everyone”.
	ProjectCreationRestriction *string `json:"project_creation_restriction,omitempty"`

	// Enable quota per project
	QuotaPerProjectEnable *bool `json:"quota_per_project_enable,omitempty"`

	// The flag to indicate whether Harbor is in readonly mode.
	ReadOnly *bool `json:"read_only,omitempty"`

	// The rebot account name prefix
	RobotNamePrefix *string `json:"robot_name_prefix,omitempty"`

	// The robot account token duration in days
	RobotTokenDuration *int64 `json:"robot_token_duration,omitempty"`

	// Whether or not to skip update pull time for scanner
	ScannerSkipUpdatePulltime *bool `json:"scanner_skip_update_pulltime,omitempty"`

	// Whether the Harbor instance supports self-registration.  If it”s set to false, admin need to add user to the instance.
	SelfRegistration *bool `json:"self_registration,omitempty"`

	// The session timeout for harbor, in minutes.
	SessionTimeout *int64 `json:"session_timeout,omitempty"`

	// Skip audit log database
	SkipAuditLogDatabase *bool `json:"skip_audit_log_database,omitempty"`

	// The storage quota per project
	StoragePerProject *int64 `json:"storage_per_project,omitempty"`

	// The expiration time of the token for internal Registry, in minutes.
	TokenExpiration *int64 `json:"token_expiration,omitempty"`

	// The client id of UAA
	UaaClientID *string `json:"uaa_client_id,omitempty"`

	// The client secret of the UAA
	UaaClientSecret *string `json:"uaa_client_secret,omitempty"`

	// The endpoint of the UAA
	UaaEndpoint *string `json:"uaa_endpoint,omitempty"`

	// Verify the certificate in UAA server
	UaaVerifyCert *bool `json:"uaa_verify_cert,omitempty"`
}

Configurations configurations

swagger:model Configurations

func (*Configurations) MarshalBinary

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

MarshalBinary interface implementation

func (*Configurations) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Configurations) Validate

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

Validate validates this configurations

type ConfigurationsResponse

type ConfigurationsResponse struct {

	// The endpoint of the audit log forwarder
	AuditLogForwardEndpoint *StringConfigItem `json:"audit_log_forward_endpoint,omitempty"`

	// The auth mode of current system, such as "db_auth", "ldap_auth", "oidc_auth"
	AuthMode *StringConfigItem `json:"auth_mode,omitempty"`

	// The banner message for the UI.It is the stringified result of the banner message object
	BannerMessage *StringConfigItem `json:"banner_message,omitempty"`

	// The group which has the harbor admin privileges
	HTTPAuthproxyAdminGroups *StringConfigItem `json:"http_authproxy_admin_groups,omitempty"`

	// The usernames which has the harbor admin privileges
	HTTPAuthproxyAdminUsernames *StringConfigItem `json:"http_authproxy_admin_usernames,omitempty"`

	// The endpoint of the HTTP auth
	HTTPAuthproxyEndpoint *StringConfigItem `json:"http_authproxy_endpoint,omitempty"`

	// The certificate of the HTTP auth provider
	HTTPAuthproxyServerCertificate *StringConfigItem `json:"http_authproxy_server_certificate,omitempty"`

	// Search user before onboard
	HTTPAuthproxySkipSearch *BoolConfigItem `json:"http_authproxy_skip_search,omitempty"`

	// The token review endpoint
	HTTPAuthproxyTokenreviewEndpoint *StringConfigItem `json:"http_authproxy_tokenreview_endpoint,omitempty"`

	// Verify the HTTP auth provider's certificate
	HTTPAuthproxyVerifyCert *BoolConfigItem `json:"http_authproxy_verify_cert,omitempty"`

	// The Base DN for LDAP binding.
	LdapBaseDn *StringConfigItem `json:"ldap_base_dn,omitempty"`

	// The filter for LDAP search
	LdapFilter *StringConfigItem `json:"ldap_filter,omitempty"`

	// Specify the ldap group which have the same privilege with Harbor admin
	LdapGroupAdminDn *StringConfigItem `json:"ldap_group_admin_dn,omitempty"`

	// The attribute which is used as identity of the LDAP group, default is cn.'
	LdapGroupAttributeName *StringConfigItem `json:"ldap_group_attribute_name,omitempty"`

	// The base DN to search LDAP group.
	LdapGroupBaseDn *StringConfigItem `json:"ldap_group_base_dn,omitempty"`

	// The user attribute to identify the group membership
	LdapGroupMembershipAttribute *StringConfigItem `json:"ldap_group_membership_attribute,omitempty"`

	// The filter to search the ldap group
	LdapGroupSearchFilter *StringConfigItem `json:"ldap_group_search_filter,omitempty"`

	// The scope to search ldap group. ”0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE”
	LdapGroupSearchScope *IntegerConfigItem `json:"ldap_group_search_scope,omitempty"`

	// The scope to search ldap users,'0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE'
	LdapScope *IntegerConfigItem `json:"ldap_scope,omitempty"`

	// The DN of the user to do the search.
	LdapSearchDn *StringConfigItem `json:"ldap_search_dn,omitempty"`

	// Timeout in seconds for connection to LDAP server
	LdapTimeout *IntegerConfigItem `json:"ldap_timeout,omitempty"`

	// The attribute which is used as identity for the LDAP binding, such as "CN" or "SAMAccountname"
	LdapUID *StringConfigItem `json:"ldap_uid,omitempty"`

	// The URL of LDAP server
	LdapURL *StringConfigItem `json:"ldap_url,omitempty"`

	// Whether verify your OIDC server certificate, disable it if your OIDC server is hosted via self-hosted certificate.
	LdapVerifyCert *BoolConfigItem `json:"ldap_verify_cert,omitempty"`

	// Enable notification
	NotificationEnable *BoolConfigItem `json:"notification_enable,omitempty"`

	// The OIDC group which has the harbor admin privileges
	OIDCAdminGroup *StringConfigItem `json:"oidc_admin_group,omitempty"`

	// Auto onboard the OIDC user
	OIDCAutoOnboard *BoolConfigItem `json:"oidc_auto_onboard,omitempty"`

	// The client ID of the OIDC provider
	OIDCClientID *StringConfigItem `json:"oidc_client_id,omitempty"`

	// The endpoint of the OIDC provider
	OIDCEndpoint *StringConfigItem `json:"oidc_endpoint,omitempty"`

	// Extra parameters to add when redirect request to OIDC provider
	OIDCExtraRedirectParms *StringConfigItem `json:"oidc_extra_redirect_parms,omitempty"`

	// The OIDC group filter which filters out the group doesn't match the regular expression
	OIDCGroupFilter *StringConfigItem `json:"oidc_group_filter,omitempty"`

	// The attribute claims the group name
	OIDCGroupsClaim *StringConfigItem `json:"oidc_groups_claim,omitempty"`

	// The OIDC provider name
	OIDCName *StringConfigItem `json:"oidc_name,omitempty"`

	// The scope of the OIDC provider
	OIDCScope *StringConfigItem `json:"oidc_scope,omitempty"`

	// The attribute claims the username
	OIDCUserClaim *StringConfigItem `json:"oidc_user_claim,omitempty"`

	// Verify the OIDC provider's certificate'
	OIDCVerifyCert *BoolConfigItem `json:"oidc_verify_cert,omitempty"`

	// The flag to indicate whether the current auth mode should consider as a primary one.
	PrimaryAuthMode *BoolConfigItem `json:"primary_auth_mode,omitempty"`

	// Indicate who can create projects, it could be ”adminonly” or ”everyone”.
	ProjectCreationRestriction *StringConfigItem `json:"project_creation_restriction,omitempty"`

	// Enable quota per project
	QuotaPerProjectEnable *BoolConfigItem `json:"quota_per_project_enable,omitempty"`

	// The flag to indicate whether Harbor is in readonly mode.
	ReadOnly *BoolConfigItem `json:"read_only,omitempty"`

	// The rebot account name prefix
	RobotNamePrefix *StringConfigItem `json:"robot_name_prefix,omitempty"`

	// The robot account token duration in days
	RobotTokenDuration *IntegerConfigItem `json:"robot_token_duration,omitempty"`

	// scan all policy
	ScanAllPolicy *ConfigurationsResponseScanAllPolicy `json:"scan_all_policy,omitempty"`

	// Whether or not to skip update the pull time for scanner
	ScannerSkipUpdatePulltime *BoolConfigItem `json:"scanner_skip_update_pulltime,omitempty"`

	// Whether the Harbor instance supports self-registration.  If it”s set to false, admin need to add user to the instance.
	SelfRegistration *BoolConfigItem `json:"self_registration,omitempty"`

	// The session timeout in minutes
	SessionTimeout *IntegerConfigItem `json:"session_timeout,omitempty"`

	// Whether skip the audit log in database
	SkipAuditLogDatabase *BoolConfigItem `json:"skip_audit_log_database,omitempty"`

	// The storage quota per project
	StoragePerProject *IntegerConfigItem `json:"storage_per_project,omitempty"`

	// The expiration time of the token for internal Registry, in minutes.
	TokenExpiration *IntegerConfigItem `json:"token_expiration,omitempty"`

	// The client id of UAA
	UaaClientID *StringConfigItem `json:"uaa_client_id,omitempty"`

	// The client secret of the UAA
	UaaClientSecret *StringConfigItem `json:"uaa_client_secret,omitempty"`

	// The endpoint of the UAA
	UaaEndpoint *StringConfigItem `json:"uaa_endpoint,omitempty"`

	// Verify the certificate in UAA server
	UaaVerifyCert *BoolConfigItem `json:"uaa_verify_cert,omitempty"`
}

ConfigurationsResponse configurations response

swagger:model ConfigurationsResponse

func (*ConfigurationsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ConfigurationsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigurationsResponse) Validate

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

Validate validates this configurations response

type ConfigurationsResponseScanAllPolicy

type ConfigurationsResponseScanAllPolicy struct {

	// parameter
	Parameter *ConfigurationsResponseScanAllPolicyParameter `json:"parameter,omitempty"`

	// The type of scan all policy, currently the valid values are "none" and "daily"
	Type string `json:"type,omitempty"`
}

ConfigurationsResponseScanAllPolicy configurations response scan all policy

swagger:model ConfigurationsResponseScanAllPolicy

func (*ConfigurationsResponseScanAllPolicy) MarshalBinary

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

MarshalBinary interface implementation

func (*ConfigurationsResponseScanAllPolicy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigurationsResponseScanAllPolicy) Validate

Validate validates this configurations response scan all policy

type ConfigurationsResponseScanAllPolicyParameter

type ConfigurationsResponseScanAllPolicyParameter struct {

	// The offset in seconds of UTC 0 o'clock, only valid when the policy type is "daily"
	DailyTime int64 `json:"daily_time,omitempty"`
}

ConfigurationsResponseScanAllPolicyParameter The parameters of the policy, the values are dependent on the type of the policy.

swagger:model ConfigurationsResponseScanAllPolicyParameter

func (*ConfigurationsResponseScanAllPolicyParameter) MarshalBinary

MarshalBinary interface implementation

func (*ConfigurationsResponseScanAllPolicyParameter) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ConfigurationsResponseScanAllPolicyParameter) Validate

Validate validates this configurations response scan all policy parameter

type DangerousArtifact added in v5.6.0

type DangerousArtifact struct {

	// the count of critical vulnerabilities
	CriticalCnt int64 `json:"critical_cnt"`

	// the digest of the artifact
	Digest string `json:"digest,omitempty"`

	// the count of high vulnerabilities
	HighCnt int64 `json:"high_cnt"`

	// the count of medium vulnerabilities
	MediumCnt int64 `json:"medium_cnt"`

	// the project id of the artifact
	ProjectID int64 `json:"project_id,omitempty"`

	// the repository name of the artifact
	RepositoryName string `json:"repository_name,omitempty"`
}

DangerousArtifact the dangerous artifact information

swagger:model DangerousArtifact

func (*DangerousArtifact) MarshalBinary added in v5.6.0

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

MarshalBinary interface implementation

func (*DangerousArtifact) UnmarshalBinary added in v5.6.0

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

UnmarshalBinary interface implementation

func (*DangerousArtifact) Validate added in v5.6.0

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

Validate validates this dangerous artifact

type DangerousCVE added in v5.6.0

type DangerousCVE struct {

	// the cve id
	CVEID string `json:"cve_id,omitempty"`

	// the cvss score v3
	CvssScoreV3 float64 `json:"cvss_score_v3,omitempty"`

	// the description of the CVE
	Desc string `json:"desc,omitempty"`

	// the package of the CVE
	Package string `json:"package,omitempty"`

	// the severity of the CVE
	Severity string `json:"severity,omitempty"`

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

DangerousCVE the dangerous CVE information

swagger:model DangerousCVE

func (*DangerousCVE) MarshalBinary added in v5.6.0

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

MarshalBinary interface implementation

func (*DangerousCVE) UnmarshalBinary added in v5.6.0

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

UnmarshalBinary interface implementation

func (*DangerousCVE) Validate added in v5.6.0

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

Validate validates this dangerous CVE

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 EventType

type EventType string

EventType Webhook supported event type.

swagger:model EventType

func (EventType) Validate

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

Validate validates this event type

type ExecHistory added in v5.2.0

type ExecHistory struct {

	// the creation time of purge job.
	// Format: date-time
	CreationTime strfmt.DateTime `json:"creation_time,omitempty"`

	// if purge job was deleted.
	Deleted bool `json:"deleted,omitempty"`

	// the id of purge job.
	ID int64 `json:"id,omitempty"`

	// the job kind of purge job.
	JobKind string `json:"job_kind,omitempty"`

	// the job name of purge job.
	JobName string `json:"job_name,omitempty"`

	// the job parameters of purge job.
	JobParameters string `json:"job_parameters,omitempty"`

	// the status of purge job.
	JobStatus string `json:"job_status,omitempty"`

	// schedule
	Schedule *ScheduleObj `json:"schedule,omitempty"`

	// the update time of purge job.
	// Format: date-time
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`
}

ExecHistory exec history

swagger:model ExecHistory

func (*ExecHistory) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*ExecHistory) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*ExecHistory) Validate added in v5.2.0

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

Validate validates this exec history

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 FilterStyle

type FilterStyle struct {

	// The filter style
	Style string `json:"style,omitempty"`

	// The filter type
	Type string `json:"type,omitempty"`

	// The filter values
	Values []string `json:"values"`
}

FilterStyle The style of the resource filter

swagger:model FilterStyle

func (*FilterStyle) MarshalBinary

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

MarshalBinary interface implementation

func (*FilterStyle) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FilterStyle) Validate

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

Validate validates this filter style

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 banner message for the UI. It is the stringified result of the banner message object.
	BannerMessage *string `json:"banner_message,omitempty"`

	// The current time of the server.
	// Format: date-time
	CurrentTime *strfmt.DateTime `json:"current_time,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"`

	// The flag to indicate whether the current auth mode should consider as a primary one.
	PrimaryAuthMode *bool `json:"primary_auth_mode,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"`
}

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 ImmutableRule

type ImmutableRule 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][]ImmutableSelector `json:"scope_selectors,omitempty"`

	// tag selectors
	TagSelectors []*ImmutableSelector `json:"tag_selectors"`

	// template
	Template string `json:"template,omitempty"`
}

ImmutableRule immutable rule

swagger:model ImmutableRule

func (*ImmutableRule) MarshalBinary

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

MarshalBinary interface implementation

func (*ImmutableRule) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImmutableRule) Validate

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

Validate validates this immutable rule

type ImmutableSelector

type ImmutableSelector 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"`
}

ImmutableSelector immutable selector

swagger:model ImmutableSelector

func (*ImmutableSelector) MarshalBinary

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

MarshalBinary interface implementation

func (*ImmutableSelector) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImmutableSelector) Validate

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

Validate validates this immutable selector

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 IntegerConfigItem

type IntegerConfigItem struct {

	// The configure item can be updated or not
	Editable bool `json:"editable"`

	// The integer value of current config item
	Value int64 `json:"value"`
}

IntegerConfigItem integer config item

swagger:model IntegerConfigItem

func (*IntegerConfigItem) MarshalBinary

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

MarshalBinary interface implementation

func (*IntegerConfigItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*IntegerConfigItem) Validate

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

Validate validates this integer config item

type InternalConfigurationValue added in v5.1.0

type InternalConfigurationValue struct {

	// The configure item can be updated or not
	Editable bool `json:"editable"`

	// The value of current config item
	Value interface{} `json:"value,omitempty"`
}

InternalConfigurationValue internal configuration value

swagger:model InternalConfigurationValue

func (*InternalConfigurationValue) MarshalBinary added in v5.1.0

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

MarshalBinary interface implementation

func (*InternalConfigurationValue) UnmarshalBinary added in v5.1.0

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

UnmarshalBinary interface implementation

func (*InternalConfigurationValue) Validate added in v5.1.0

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

Validate validates this internal configuration value

type InternalConfigurationsResponse added in v5.1.0

type InternalConfigurationsResponse map[string]InternalConfigurationValue

InternalConfigurationsResponse internal configurations response

swagger:model InternalConfigurationsResponse

func (InternalConfigurationsResponse) Validate added in v5.1.0

Validate validates this internal configurations response

type IsDefault

type IsDefault struct {

	// A flag indicating whether a scanner registration is default.
	IsDefault bool `json:"is_default,omitempty"`
}

IsDefault is default

swagger:model IsDefault

func (*IsDefault) MarshalBinary

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

MarshalBinary interface implementation

func (*IsDefault) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*IsDefault) Validate

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

Validate validates this is default

type JobQueue added in v5.2.0

type JobQueue struct {

	// The count of jobs in the job queue
	Count int64 `json:"count,omitempty"`

	// The type of the job queue
	JobType string `json:"job_type,omitempty"`

	// The latency the job queue (seconds)
	Latency int64 `json:"latency,omitempty"`

	// The paused status of the job queue
	Paused bool `json:"paused"`
}

JobQueue the job queue info

swagger:model JobQueue

func (*JobQueue) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*JobQueue) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*JobQueue) Validate added in v5.2.0

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

Validate validates this job queue

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 LdapConf

type LdapConf struct {

	// The base dn of ldap service.
	LdapBaseDn string `json:"ldap_base_dn,omitempty"`

	// The connect timeout of ldap service(second).
	LdapConnectionTimeout int64 `json:"ldap_connection_timeout,omitempty"`

	// The serach filter of ldap service.
	LdapFilter string `json:"ldap_filter,omitempty"`

	// The serach scope of ldap service.
	LdapScope int64 `json:"ldap_scope,omitempty"`

	// The search dn of ldap service.
	LdapSearchDn string `json:"ldap_search_dn,omitempty"`

	// The search password of ldap service.
	LdapSearchPassword string `json:"ldap_search_password,omitempty"`

	// The serach uid from ldap service attributes.
	LdapUID string `json:"ldap_uid,omitempty"`

	// The url of ldap service.
	LdapURL string `json:"ldap_url,omitempty"`

	// Verify Ldap server certificate.
	LdapVerifyCert bool `json:"ldap_verify_cert,omitempty"`
}

LdapConf The ldap configure properties

swagger:model LdapConf

func (*LdapConf) MarshalBinary

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

MarshalBinary interface implementation

func (*LdapConf) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LdapConf) Validate

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

Validate validates this ldap conf

type LdapFailedImportUser

type LdapFailedImportUser struct {

	// fail reason.
	Error string `json:"error,omitempty"`

	// the uid can't add to system.
	UID string `json:"uid,omitempty"`
}

LdapFailedImportUser ldap failed import user

swagger:model LdapFailedImportUser

func (*LdapFailedImportUser) MarshalBinary

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

MarshalBinary interface implementation

func (*LdapFailedImportUser) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LdapFailedImportUser) Validate

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

Validate validates this ldap failed import user

type LdapImportUsers

type LdapImportUsers struct {

	// selected uid list
	LdapUIDList []string `json:"ldap_uid_list"`
}

LdapImportUsers ldap import users

swagger:model LdapImportUsers

func (*LdapImportUsers) MarshalBinary

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

MarshalBinary interface implementation

func (*LdapImportUsers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LdapImportUsers) Validate

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

Validate validates this ldap import users

type LdapPingResult

type LdapPingResult struct {

	// The ping operation output message.
	Message string `json:"message,omitempty"`

	// Test success
	Success bool `json:"success,omitempty"`
}

LdapPingResult The ldap ping result

swagger:model LdapPingResult

func (*LdapPingResult) MarshalBinary

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

MarshalBinary interface implementation

func (*LdapPingResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LdapPingResult) Validate

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

Validate validates this ldap ping result

type LdapUser

type LdapUser struct {

	// The user email address from "mail" or "email" attribute.
	Email string `json:"email,omitempty"`

	// The user realname from "uid" or "cn" attribute.
	Realname string `json:"realname,omitempty"`

	// ldap username.
	Username string `json:"username,omitempty"`
}

LdapUser ldap user

swagger:model LdapUser

func (*LdapUser) MarshalBinary

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

MarshalBinary interface implementation

func (*LdapUser) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LdapUser) Validate

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

Validate validates this ldap user

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 NotifyType

type NotifyType string

NotifyType Webhook supported notify type.

swagger:model NotifyType

func (NotifyType) Validate

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

Validate validates this notify type

type OIDCCliSecretReq

type OIDCCliSecretReq struct {

	// The new secret
	Secret string `json:"secret,omitempty"`
}

OIDCCliSecretReq OIDC cli secret req

swagger:model OIDCCliSecretReq

func (*OIDCCliSecretReq) MarshalBinary

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

MarshalBinary interface implementation

func (*OIDCCliSecretReq) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OIDCCliSecretReq) Validate

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

Validate validates this OIDC cli secret req

type OIDCUserInfo

type OIDCUserInfo struct {

	// The creation time of the OIDC user info record.
	// Format: date-time
	CreationTime strfmt.DateTime `json:"creation_time,omitempty"`

	// the ID of the OIDC info record
	ID int64 `json:"id,omitempty"`

	// the secret of the OIDC user that can be used for CLI to push/pull artifacts
	Secret string `json:"secret,omitempty"`

	// the concatenation of sub and issuer in the ID token
	Subiss string `json:"subiss,omitempty"`

	// The update time of the OIDC user info record.
	// Format: date-time
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`

	// the ID of the user
	UserID int64 `json:"user_id,omitempty"`
}

OIDCUserInfo OIDC user info

swagger:model OIDCUserInfo

func (*OIDCUserInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*OIDCUserInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OIDCUserInfo) Validate

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

Validate validates this OIDC user info

type OverallHealthStatus

type OverallHealthStatus struct {

	// components
	Components []*ComponentHealthStatus `json:"components"`

	// The overall health status. It is "healthy" only when all the components' status are "healthy"
	Status string `json:"status,omitempty"`
}

OverallHealthStatus The system health status

swagger:model OverallHealthStatus

func (*OverallHealthStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*OverallHealthStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OverallHealthStatus) Validate

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

Validate validates this overall health status

type PasswordReq

type PasswordReq struct {

	// New password for marking as to be updated.
	NewPassword string `json:"new_password,omitempty"`

	// The user's existing password.
	OldPassword string `json:"old_password,omitempty"`
}

PasswordReq password req

swagger:model PasswordReq

func (*PasswordReq) MarshalBinary

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

MarshalBinary interface implementation

func (*PasswordReq) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PasswordReq) Validate

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

Validate validates this password req

type PayloadFormat added in v5.4.0

type PayloadFormat struct {

	// The supported payload formats for this notify type.
	Formats []PayloadFormatType `json:"formats"`

	// notify type
	NotifyType NotifyType `json:"notify_type,omitempty"`
}

PayloadFormat Webhook supported payload format type collections.

swagger:model PayloadFormat

func (*PayloadFormat) MarshalBinary added in v5.4.0

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

MarshalBinary interface implementation

func (*PayloadFormat) UnmarshalBinary added in v5.4.0

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

UnmarshalBinary interface implementation

func (*PayloadFormat) Validate added in v5.4.0

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

Validate validates this payload format

type PayloadFormatType added in v5.4.0

type PayloadFormatType string

PayloadFormatType The type of webhook paylod format.

swagger:model PayloadFormatType

func (PayloadFormatType) Validate added in v5.4.0

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

Validate validates this payload format type

type Permission

type Permission struct {

	// The permission action
	Action string `json:"action,omitempty"`

	// The permission resoruce
	Resource string `json:"resource,omitempty"`
}

Permission permission

swagger:model Permission

func (*Permission) MarshalBinary

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

MarshalBinary interface implementation

func (*Permission) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Permission) Validate

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

Validate validates this permission

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

	// 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 ProjectMember

type ProjectMember struct {

	// member group
	MemberGroup *UserGroup `json:"member_group,omitempty"`

	// member user
	MemberUser *UserEntity `json:"member_user,omitempty"`

	// The role id 1 for projectAdmin, 2 for developer, 3 for guest, 4 for maintainer
	RoleID int64 `json:"role_id,omitempty"`
}

ProjectMember project member

swagger:model ProjectMember

func (*ProjectMember) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectMember) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectMember) Validate

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

Validate validates this project member

type ProjectMemberEntity

type ProjectMemberEntity struct {

	// the id of entity, if the member is a user, it is user_id in user table. if the member is a user group, it is the user group's ID in user_group table.
	EntityID int64 `json:"entity_id,omitempty"`

	// the name of the group member.
	EntityName string `json:"entity_name,omitempty"`

	// the entity's type, u for user entity, g for group entity.
	EntityType string `json:"entity_type,omitempty"`

	// the project member id
	ID int64 `json:"id,omitempty"`

	// the project id
	ProjectID int64 `json:"project_id,omitempty"`

	// the role id
	RoleID int64 `json:"role_id,omitempty"`

	// the name of the role
	RoleName string `json:"role_name,omitempty"`
}

ProjectMemberEntity project member entity

swagger:model ProjectMemberEntity

func (*ProjectMemberEntity) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectMemberEntity) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectMemberEntity) Validate

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

Validate validates this project member entity

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 cosign content trust is enabled or not. If it is enabled, user can't pull images without cosign signature from this project. The valid values are "true", "false".
	EnableContentTrustCosign *string `json:"enable_content_trust_cosign,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.
	// Max Length: 255
	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 ProjectScanner

type ProjectScanner struct {

	// The identifier of the scanner registration
	// Required: true
	UUID *string `json:"uuid"`
}

ProjectScanner project scanner

swagger:model ProjectScanner

func (*ProjectScanner) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectScanner) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectScanner) Validate

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

Validate validates this project scanner

type ProjectSummary

type ProjectSummary struct {

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

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 Quota

type Quota struct {

	// the creation time of the quota
	// Format: date-time
	CreationTime strfmt.DateTime `json:"creation_time,omitempty"`

	// The hard limits of the quota
	Hard ResourceList `json:"hard,omitempty"`

	// ID of the quota
	ID int64 `json:"id,omitempty"`

	// The reference object of the quota
	Ref QuotaRefObject `json:"ref,omitempty"`

	// the update time of the quota
	// Format: date-time
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`

	// The used status of the quota
	Used ResourceList `json:"used,omitempty"`
}

Quota The quota object

swagger:model Quota

func (*Quota) MarshalBinary

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

MarshalBinary interface implementation

func (*Quota) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Quota) Validate

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

Validate validates this quota

type QuotaRefObject

type QuotaRefObject interface{}

QuotaRefObject quota ref object

swagger:model QuotaRefObject

type QuotaUpdateReq

type QuotaUpdateReq struct {

	// The new hard limits for the quota
	Hard ResourceList `json:"hard,omitempty"`
}

QuotaUpdateReq quota update req

swagger:model QuotaUpdateReq

func (*QuotaUpdateReq) MarshalBinary

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

MarshalBinary interface implementation

func (*QuotaUpdateReq) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*QuotaUpdateReq) Validate

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

Validate validates this quota update req

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.
	// Format: date-time
	CreationTime strfmt.DateTime `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"`

	// 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.
	// Format: date-time
	UpdateTime strfmt.DateTime `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 RegistryEndpoint

type RegistryEndpoint struct {

	// The endpoint key
	Key string `json:"key,omitempty"`

	// The endpoint value
	Value string `json:"value,omitempty"`
}

RegistryEndpoint The style of the resource filter

swagger:model RegistryEndpoint

func (*RegistryEndpoint) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryEndpoint) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryEndpoint) Validate

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

Validate validates this registry endpoint

type RegistryInfo

type RegistryInfo struct {

	// The description
	Description string `json:"description,omitempty"`

	// The registry whether support copy by chunk.
	SupportedCopyByChunk *bool `json:"supported_copy_by_chunk,omitempty"`

	// The filters that the registry supports
	SupportedResourceFilters []*FilterStyle `json:"supported_resource_filters"`

	// The triggers that the registry supports
	SupportedTriggers []string `json:"supported_triggers"`

	// The registry type
	Type string `json:"type,omitempty"`
}

RegistryInfo The registry info contains the base info and capability declarations of the registry

swagger:model RegistryInfo

func (*RegistryInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryInfo) Validate

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

Validate validates this registry info

type RegistryPing

type RegistryPing struct {

	// The registry access key.
	AccessKey *string `json:"access_key,omitempty"`

	// The registry access secret.
	AccessSecret *string `json:"access_secret,omitempty"`

	// Credential type of the registry, e.g. 'basic'.
	CredentialType *string `json:"credential_type,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"`

	// Type of the registry, e.g. 'harbor'.
	Type *string `json:"type,omitempty"`

	// The registry URL.
	URL *string `json:"url,omitempty"`
}

RegistryPing registry ping

swagger:model RegistryPing

func (*RegistryPing) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryPing) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryPing) Validate

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

Validate validates this registry ping

type RegistryProviderCredentialPattern

type RegistryProviderCredentialPattern struct {

	// The access key data
	AccessKeyData string `json:"access_key_data,omitempty"`

	// The access key type
	AccessKeyType string `json:"access_key_type,omitempty"`

	// The access secret data
	AccessSecretData string `json:"access_secret_data,omitempty"`

	// The access secret type
	AccessSecretType string `json:"access_secret_type,omitempty"`
}

RegistryProviderCredentialPattern The registry credential pattern

swagger:model RegistryProviderCredentialPattern

func (*RegistryProviderCredentialPattern) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryProviderCredentialPattern) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryProviderCredentialPattern) Validate

Validate validates this registry provider credential pattern

type RegistryProviderEndpointPattern

type RegistryProviderEndpointPattern struct {

	// The endpoint type
	EndpointType string `json:"endpoint_type,omitempty"`

	// The endpoint list
	Endpoints []*RegistryEndpoint `json:"endpoints"`
}

RegistryProviderEndpointPattern The registry endpoint pattern

swagger:model RegistryProviderEndpointPattern

func (*RegistryProviderEndpointPattern) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryProviderEndpointPattern) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryProviderEndpointPattern) Validate

Validate validates this registry provider endpoint pattern

type RegistryProviderInfo

type RegistryProviderInfo struct {

	// The credential pattern
	CredentialPattern *RegistryProviderCredentialPattern `json:"credential_pattern,omitempty"`

	// The endpoint pattern
	EndpointPattern *RegistryProviderEndpointPattern `json:"endpoint_pattern,omitempty"`
}

RegistryProviderInfo The registry provider info contains the base info and capability declarations of the registry provider

swagger:model RegistryProviderInfo

func (*RegistryProviderInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryProviderInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryProviderInfo) Validate

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

Validate validates this registry provider info

type RegistryUpdate

type RegistryUpdate struct {

	// The registry access key.
	AccessKey *string `json:"access_key,omitempty"`

	// The registry access secret.
	AccessSecret *string `json:"access_secret,omitempty"`

	// Credential type of the registry, e.g. 'basic'.
	CredentialType *string `json:"credential_type,omitempty"`

	// Description of the registry.
	Description *string `json:"description,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"`

	// The registry URL.
	URL *string `json:"url,omitempty"`
}

RegistryUpdate registry update

swagger:model RegistryUpdate

func (*RegistryUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryUpdate) Validate

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

Validate validates this registry update

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 ReplicationFilter

type ReplicationFilter struct {

	// matches or excludes the result
	Decoration string `json:"decoration,omitempty"`

	// The replication policy filter type.
	Type string `json:"type,omitempty"`

	// The value of replication policy filter.
	Value interface{} `json:"value,omitempty"`
}

ReplicationFilter replication filter

swagger:model ReplicationFilter

func (*ReplicationFilter) MarshalBinary

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

MarshalBinary interface implementation

func (*ReplicationFilter) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ReplicationFilter) Validate

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

Validate validates this replication filter

type ReplicationPolicy

type ReplicationPolicy struct {

	// Whether to enable copy by chunk.
	CopyByChunk *bool `json:"copy_by_chunk,omitempty"`

	// The create time of the policy.
	// Format: date-time
	CreationTime strfmt.DateTime `json:"creation_time,omitempty"`

	// Deprecated, use "replicate_deletion" instead. Whether to replicate the deletion operation.
	Deletion bool `json:"deletion,omitempty"`

	// The description of the policy.
	Description string `json:"description,omitempty"`

	// The destination namespace.
	DestNamespace string `json:"dest_namespace,omitempty"`

	// Specify how many path components will be replaced by the provided destination namespace.
	// The default value is -1 in which case the legacy mode will be applied.
	DestNamespaceReplaceCount *int8 `json:"dest_namespace_replace_count,omitempty"`

	// The destination registry.
	DestRegistry *Registry `json:"dest_registry,omitempty"`

	// Whether the policy is enabled or not.
	Enabled bool `json:"enabled,omitempty"`

	// The replication policy filter array.
	Filters []*ReplicationFilter `json:"filters"`

	// The policy ID.
	ID int64 `json:"id,omitempty"`

	// The policy name.
	Name string `json:"name,omitempty"`

	// Whether to override the resources on the destination registry.
	Override bool `json:"override,omitempty"`

	// Whether to replicate the deletion operation.
	ReplicateDeletion bool `json:"replicate_deletion,omitempty"`

	// speed limit for each task
	Speed *int32 `json:"speed,omitempty"`

	// The source registry.
	SrcRegistry *Registry `json:"src_registry,omitempty"`

	// trigger
	Trigger *ReplicationTrigger `json:"trigger,omitempty"`

	// The update time of the policy.
	// Format: date-time
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`
}

ReplicationPolicy replication policy

swagger:model ReplicationPolicy

func (*ReplicationPolicy) MarshalBinary

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

MarshalBinary interface implementation

func (*ReplicationPolicy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ReplicationPolicy) Validate

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

Validate validates this replication policy

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 ReplicationTrigger

type ReplicationTrigger struct {

	// trigger settings
	TriggerSettings *ReplicationTriggerSettings `json:"trigger_settings,omitempty"`

	// The replication policy trigger type. The valid values are manual, event_based and scheduled.
	Type string `json:"type,omitempty"`
}

ReplicationTrigger replication trigger

swagger:model ReplicationTrigger

func (*ReplicationTrigger) MarshalBinary

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

MarshalBinary interface implementation

func (*ReplicationTrigger) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ReplicationTrigger) Validate

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

Validate validates this replication trigger

type ReplicationTriggerSettings

type ReplicationTriggerSettings struct {

	// The cron string for scheduled trigger
	Cron string `json:"cron,omitempty"`
}

ReplicationTriggerSettings replication trigger settings

swagger:model ReplicationTriggerSettings

func (*ReplicationTriggerSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*ReplicationTriggerSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ReplicationTriggerSettings) Validate

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

Validate validates this replication trigger settings

type Repository

type Repository struct {

	// The count of the artifacts inside the repository
	ArtifactCount int64 `json:"artifact_count"`

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

	// 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 added in v5.1.0

type ResourceList map[string]int64

ResourceList resource list

swagger:model ResourceList

func (ResourceList) Validate added in v5.1.0

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 date 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 robot
	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 robot
	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 date of the robot
	ExpiresAt int64 `json:"expires_at,omitempty"`

	// The ID of the robot
	ID int64 `json:"id,omitempty"`

	// The name of the robot
	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 RoleRequest

type RoleRequest struct {

	// The role id 1 for projectAdmin, 2 for developer, 3 for guest, 4 for maintainer
	RoleID int64 `json:"role_id,omitempty"`
}

RoleRequest role request

swagger:model RoleRequest

func (*RoleRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*RoleRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RoleRequest) Validate

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

Validate validates this role request

type ScanDataExportExecution added in v5.2.0

type ScanDataExportExecution struct {

	// The end time
	// Format: date-time
	EndTime strfmt.DateTime `json:"end_time,omitempty"`

	// Indicates whether the export artifact is present in registry
	FilePresent bool `json:"file_present"`

	// The ID of the execution
	ID int64 `json:"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 trigger mode
	Trigger string `json:"trigger,omitempty"`

	// The ID if the user triggering the export job
	UserID int64 `json:"user_id,omitempty"`

	// The name of the user triggering the job
	UserName string `json:"user_name"`
}

ScanDataExportExecution The replication execution

swagger:model ScanDataExportExecution

func (*ScanDataExportExecution) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*ScanDataExportExecution) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*ScanDataExportExecution) Validate added in v5.2.0

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

Validate validates this scan data export execution

type ScanDataExportExecutionList added in v5.2.0

type ScanDataExportExecutionList struct {

	// The list of scan data export executions
	Items []*ScanDataExportExecution `json:"items"`
}

ScanDataExportExecutionList The list of scan data export executions

swagger:model ScanDataExportExecutionList

func (*ScanDataExportExecutionList) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*ScanDataExportExecutionList) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*ScanDataExportExecutionList) Validate added in v5.2.0

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

Validate validates this scan data export execution list

type ScanDataExportJob added in v5.2.0

type ScanDataExportJob struct {

	// The id of the scan data export job
	ID int64 `json:"id,omitempty"`
}

ScanDataExportJob The metadata associated with the scan data export job

swagger:model ScanDataExportJob

func (*ScanDataExportJob) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*ScanDataExportJob) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*ScanDataExportJob) Validate added in v5.2.0

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

Validate validates this scan data export job

type ScanDataExportRequest added in v5.2.0

type ScanDataExportRequest struct {

	// CVE-IDs for which to export data. Multiple CVE-IDs can be specified by separating using ',' and enclosed between '{}'. Defaults to all if empty
	CVEIds string `json:"cveIds,omitempty"`

	// Name of the scan data export job
	JobName string `json:"job_name,omitempty"`

	// A list of one or more labels for which to export the scan data, defaults to all if empty
	Labels []int64 `json:"labels"`

	// A list of one or more projects for which to export the scan data, currently only one project is supported due to performance concerns, but define as array for extension in the future.
	Projects []int64 `json:"projects"`

	// A list of repositories for which to export the scan data, defaults to all if empty
	Repositories string `json:"repositories,omitempty"`

	// A list of tags enclosed within '{}'. Defaults to all if empty
	Tags string `json:"tags,omitempty"`
}

ScanDataExportRequest The criteria to select the scan data to export.

swagger:model ScanDataExportRequest

func (*ScanDataExportRequest) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*ScanDataExportRequest) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*ScanDataExportRequest) Validate added in v5.2.0

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

Validate validates this scan data export request

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 ScannerAdapterMetadata

type ScannerAdapterMetadata struct {

	// capabilities
	Capabilities []*ScannerCapability `json:"capabilities"`

	// properties
	Properties map[string]string `json:"properties,omitempty"`

	// scanner
	Scanner *Scanner `json:"scanner,omitempty"`
}

ScannerAdapterMetadata The metadata info of the scanner adapter

swagger:model ScannerAdapterMetadata

func (*ScannerAdapterMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*ScannerAdapterMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScannerAdapterMetadata) Validate

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

Validate validates this scanner adapter metadata

type ScannerCapability

type ScannerCapability struct {

	// consumes mime types
	ConsumesMimeTypes []string `json:"consumes_mime_types"`

	// produces mime types
	ProducesMimeTypes []string `json:"produces_mime_types"`
}

ScannerCapability scanner capability

swagger:model ScannerCapability

func (*ScannerCapability) MarshalBinary

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

MarshalBinary interface implementation

func (*ScannerCapability) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScannerCapability) Validate

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

Validate validates this scanner capability

type ScannerRegistration

type ScannerRegistration struct {

	// An optional value of the HTTP Authorization header sent with each request to the Scanner Adapter API.
	//
	AccessCredential string `json:"access_credential"`

	// Optional property to describe the name of the scanner registration
	Adapter string `json:"adapter,omitempty"`

	// Specify what authentication approach is adopted for the HTTP communications.
	// Supported types Basic", "Bearer" and api key header "X-ScannerAdapter-API-Key"
	//
	Auth string `json:"auth"`

	// The creation time of this registration
	// Format: date-time
	CreateTime strfmt.DateTime `json:"create_time,omitempty"`

	// An optional description of this registration.
	Description string `json:"description"`

	// Indicate whether the registration is enabled or not
	Disabled *bool `json:"disabled"`

	// Indicate the healthy of the registration
	Health string `json:"health,omitempty"`

	// Indicate if the registration is set as the system default one
	IsDefault *bool `json:"is_default"`

	// The name of this registration.
	Name string `json:"name,omitempty"`

	// Indicate if skip the certificate verification when sending HTTP requests
	SkipCertVerify *bool `json:"skip_certVerify"`

	// The update time of this registration
	// Format: date-time
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`

	// A base URL of the scanner adapter
	// Format: uri
	URL strfmt.URI `json:"url,omitempty"`

	// Indicate whether use internal registry addr for the scanner to pull content or not
	UseInternalAddr *bool `json:"use_internal_addr"`

	// The unique identifier of this registration.
	UUID string `json:"uuid,omitempty"`

	// Optional property to describe the vendor of the scanner registration
	Vendor string `json:"vendor,omitempty"`

	// Optional property to describe the version of the scanner registration
	Version string `json:"version,omitempty"`
}

ScannerRegistration Registration represents a named configuration for invoking a scanner via its adapter.

swagger:model ScannerRegistration

func (*ScannerRegistration) MarshalBinary

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

MarshalBinary interface implementation

func (*ScannerRegistration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScannerRegistration) Validate

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

Validate validates this scanner registration

type ScannerRegistrationReq

type ScannerRegistrationReq struct {

	// An optional value of the HTTP Authorization header sent with each request to the Scanner Adapter API.
	//
	AccessCredential string `json:"access_credential,omitempty"`

	// Specify what authentication approach is adopted for the HTTP communications.
	// Supported types Basic", "Bearer" and api key header "X-ScannerAdapter-API-Key"
	//
	Auth string `json:"auth,omitempty"`

	// An optional description of this registration.
	Description string `json:"description,omitempty"`

	// Indicate whether the registration is enabled or not
	Disabled *bool `json:"disabled,omitempty"`

	// The name of this registration
	// Required: true
	Name *string `json:"name"`

	// Indicate if skip the certificate verification when sending HTTP requests
	SkipCertVerify *bool `json:"skip_certVerify,omitempty"`

	// A base URL of the scanner adapter.
	// Required: true
	// Format: uri
	URL *strfmt.URI `json:"url"`

	// Indicate whether use internal registry addr for the scanner to pull content or not
	UseInternalAddr *bool `json:"use_internal_addr,omitempty"`
}

ScannerRegistrationReq scanner registration req

swagger:model ScannerRegistrationReq

func (*ScannerRegistrationReq) MarshalBinary

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

MarshalBinary interface implementation

func (*ScannerRegistrationReq) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScannerRegistrationReq) Validate

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

Validate validates this scanner registration req

type ScannerRegistrationSettings

type ScannerRegistrationSettings struct {

	// An optional value of the HTTP Authorization header sent with each request to the Scanner Adapter API.
	//
	AccessCredential string `json:"access_credential,omitempty"`

	// Specify what authentication approach is adopted for the HTTP communications.
	// Supported types Basic", "Bearer" and api key header "X-ScannerAdapter-API-Key"
	//
	Auth string `json:"auth,omitempty"`

	// The name of this registration
	// Required: true
	Name *string `json:"name"`

	// A base URL of the scanner adapter.
	// Required: true
	// Format: uri
	URL *strfmt.URI `json:"url"`
}

ScannerRegistrationSettings scanner registration settings

swagger:model ScannerRegistrationSettings

func (*ScannerRegistrationSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*ScannerRegistrationSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScannerRegistrationSettings) Validate

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

Validate validates this scanner registration settings

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 next time to schedule to run the job.
	// Format: date-time
	NextScheduledTime strfmt.DateTime `json:"next_scheduled_time,omitempty"`

	// The schedule type. The valid values are 'Hourly', 'Daily', 'Weekly', 'Custom', 'Manual', 'None' and 'Schedule'.
	// 'Manual' means to trigger it right away, 'Schedule' means to trigger it by a specified cron schedule and
	// 'None' means to cancel the schedule.
	//
	// Enum: [Hourly Daily Weekly Custom Manual None Schedule]
	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 ScheduleTask added in v5.2.0

type ScheduleTask struct {

	// the cron of the current schedule task
	Cron string `json:"cron,omitempty"`

	// the id of the Schedule task
	ID int64 `json:"id,omitempty"`

	// the update time of the schedule task
	// Format: date-time
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`

	// the vendor id of the current task
	VendorID int64 `json:"vendor_id,omitempty"`

	// the vendor type of the current schedule task
	VendorType string `json:"vendor_type,omitempty"`
}

ScheduleTask the schedule task info

swagger:model ScheduleTask

func (*ScheduleTask) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*ScheduleTask) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*ScheduleTask) Validate added in v5.2.0

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

Validate validates this schedule task

type SchedulerStatus added in v5.2.0

type SchedulerStatus struct {

	// if the scheduler is paused
	Paused bool `json:"paused"`
}

SchedulerStatus the scheduler status

swagger:model SchedulerStatus

func (*SchedulerStatus) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*SchedulerStatus) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*SchedulerStatus) Validate added in v5.2.0

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

Validate validates this scheduler status

type Search struct {

	// Search results of the projects that matched the filter keywords.
	Project []*Project `json:"project"`

	// Search results of the repositories that matched the filter keywords.
	Repository []*SearchRepository `json:"repository"`
}

Search search

swagger:model Search

func (*Search) MarshalBinary

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

MarshalBinary interface implementation

func (*Search) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Search) Validate

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

Validate validates this search

type SearchRepository

type SearchRepository struct {

	// The count of artifacts in the repository
	ArtifactCount int64 `json:"artifact_count,omitempty"`

	// The ID of the project that the repository belongs to
	ProjectID int64 `json:"project_id,omitempty"`

	// The name of the project that the repository belongs to
	ProjectName string `json:"project_name,omitempty"`

	// The flag to indicate the publicity of the project that the repository belongs to (1 is public, 0 is not)
	ProjectPublic bool `json:"project_public,omitempty"`

	// The count how many times the repository is pulled
	PullCount int64 `json:"pull_count,omitempty"`

	// The name of the repository
	RepositoryName string `json:"repository_name,omitempty"`
}

SearchRepository search repository

swagger:model SearchRepository

func (*SearchRepository) MarshalBinary

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

MarshalBinary interface implementation

func (*SearchRepository) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SearchRepository) Validate

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

Validate validates this search repository

type SecuritySummary added in v5.6.0

type SecuritySummary struct {

	// the count of critical vulnerabilities
	CriticalCnt int64 `json:"critical_cnt"`

	// the list of dangerous artifacts
	DangerousArtifacts []*DangerousArtifact `json:"dangerous_artifacts,omitempty"`

	// the list of dangerous CVEs
	DangerousCves []*DangerousCVE `json:"dangerous_cves,omitempty"`

	// the count of fixable vulnerabilities
	FixableCnt int64 `json:"fixable_cnt"`

	// the count of high vulnerabilities
	HighCnt int64 `json:"high_cnt,omitempty"`

	// the count of low vulnerabilities
	LowCnt int64 `json:"low_cnt"`

	// the count of medium vulnerabilities
	MediumCnt int64 `json:"medium_cnt"`

	// the count of none vulnerabilities
	NoneCnt int64 `json:"none_cnt,omitempty"`

	// the count of scanned artifacts
	ScannedCnt int64 `json:"scanned_cnt"`

	// the total count of artifacts
	TotalArtifact int64 `json:"total_artifact"`

	// the count of total vulnerabilities
	TotalVuls int64 `json:"total_vuls"`

	// the count of unknown vulnerabilities
	UnknownCnt int64 `json:"unknown_cnt,omitempty"`
}

SecuritySummary the security summary

swagger:model SecuritySummary

func (*SecuritySummary) MarshalBinary added in v5.6.0

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

MarshalBinary interface implementation

func (*SecuritySummary) UnmarshalBinary added in v5.6.0

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

UnmarshalBinary interface implementation

func (*SecuritySummary) Validate added in v5.6.0

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

Validate validates this security summary

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 Statistic

type Statistic struct {

	// The count of the private projects
	PrivateProjectCount int64 `json:"private_project_count"`

	// The count of the private repositories
	PrivateRepoCount int64 `json:"private_repo_count"`

	// The count of the public projects
	PublicProjectCount int64 `json:"public_project_count"`

	// The count of the public repositories
	PublicRepoCount int64 `json:"public_repo_count"`

	// The count of the total projects, only be seen by the system admin
	TotalProjectCount int64 `json:"total_project_count"`

	// The count of the total repositories, only be seen by the system admin
	TotalRepoCount int64 `json:"total_repo_count"`

	// The total storage consumption of blobs, only be seen by the system admin
	TotalStorageConsumption int64 `json:"total_storage_consumption"`
}

Statistic statistic

swagger:model Statistic

func (*Statistic) MarshalBinary

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

MarshalBinary interface implementation

func (*Statistic) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Statistic) Validate

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

Validate validates this statistic

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 StringConfigItem

type StringConfigItem struct {

	// The configure item can be updated or not
	Editable bool `json:"editable"`

	// The string value of current config item
	Value string `json:"value"`
}

StringConfigItem string config item

swagger:model StringConfigItem

func (*StringConfigItem) MarshalBinary

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

MarshalBinary interface implementation

func (*StringConfigItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StringConfigItem) Validate

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

Validate validates this string config item

type SupportedWebhookEventTypes

type SupportedWebhookEventTypes struct {

	// event type
	EventType []EventType `json:"event_type"`

	// notify type
	NotifyType []NotifyType `json:"notify_type"`

	// payload formats
	PayloadFormats []*PayloadFormat `json:"payload_formats"`
}

SupportedWebhookEventTypes Supported webhook event types and notify types.

swagger:model SupportedWebhookEventTypes

func (*SupportedWebhookEventTypes) MarshalBinary

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

MarshalBinary interface implementation

func (*SupportedWebhookEventTypes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SupportedWebhookEventTypes) Validate

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

Validate validates this supported webhook event types

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

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 UserCreationReq

type UserCreationReq struct {

	// comment
	Comment string `json:"comment,omitempty"`

	// email
	// Max Length: 255
	Email string `json:"email,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// realname
	Realname string `json:"realname,omitempty"`

	// username
	// Max Length: 255
	Username string `json:"username,omitempty"`
}

UserCreationReq user creation req

swagger:model UserCreationReq

func (*UserCreationReq) MarshalBinary

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

MarshalBinary interface implementation

func (*UserCreationReq) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserCreationReq) Validate

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

Validate validates this user creation req

type UserEntity

type UserEntity struct {

	// The ID of the user.
	UserID int64 `json:"user_id,omitempty"`

	// The name of the user.
	Username string `json:"username,omitempty"`
}

UserEntity user entity

swagger:model UserEntity

func (*UserEntity) MarshalBinary

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

MarshalBinary interface implementation

func (*UserEntity) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserEntity) Validate

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

Validate validates this user entity

type UserGroup

type UserGroup struct {

	// The name of the user group
	GroupName string `json:"group_name,omitempty"`

	// The group type, 1 for LDAP group, 2 for HTTP group, 3 for OIDC group.
	GroupType int64 `json:"group_type,omitempty"`

	// The ID of the user group
	ID int64 `json:"id,omitempty"`

	// The DN of the LDAP group if group type is 1 (LDAP group).
	LdapGroupDn string `json:"ldap_group_dn,omitempty"`
}

UserGroup user group

swagger:model UserGroup

func (*UserGroup) MarshalBinary

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

MarshalBinary interface implementation

func (*UserGroup) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserGroup) Validate

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

Validate validates this user group

type UserGroupSearchItem added in v5.0.3

type UserGroupSearchItem struct {

	// The name of the user group
	GroupName string `json:"group_name,omitempty"`

	// The group type, 1 for LDAP group, 2 for HTTP group, 3 for OIDC group.
	GroupType int64 `json:"group_type,omitempty"`

	// The ID of the user group
	ID int64 `json:"id,omitempty"`
}

UserGroupSearchItem user group search item

swagger:model UserGroupSearchItem

func (*UserGroupSearchItem) MarshalBinary added in v5.0.3

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

MarshalBinary interface implementation

func (*UserGroupSearchItem) UnmarshalBinary added in v5.0.3

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

UnmarshalBinary interface implementation

func (*UserGroupSearchItem) Validate added in v5.0.3

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

Validate validates this user group search item

type UserProfile

type UserProfile struct {

	// comment
	Comment string `json:"comment,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// realname
	Realname string `json:"realname,omitempty"`
}

UserProfile user profile

swagger:model UserProfile

func (*UserProfile) MarshalBinary

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

MarshalBinary interface implementation

func (*UserProfile) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserProfile) Validate

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

Validate validates this user profile

type UserResp

type UserResp struct {

	// indicate the admin privilege is grant by authenticator (LDAP), is always false unless it is the current login user
	AdminRoleInAuth bool `json:"admin_role_in_auth"`

	// comment
	Comment string `json:"comment,omitempty"`

	// The creation time of the user.
	// Format: date-time
	CreationTime strfmt.DateTime `json:"creation_time,omitempty"`

	// email
	Email string `json:"email,omitempty"`

	// oidc user meta
	OIDCUserMeta *OIDCUserInfo `json:"oidc_user_meta,omitempty"`

	// realname
	Realname string `json:"realname,omitempty"`

	// sysadmin flag
	SysadminFlag bool `json:"sysadmin_flag"`

	// The update time of the user.
	// Format: date-time
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`

	// user id
	UserID int64 `json:"user_id,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UserResp user resp

swagger:model UserResp

func (*UserResp) MarshalBinary

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

MarshalBinary interface implementation

func (*UserResp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserResp) Validate

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

Validate validates this user resp

type UserSearch

type UserSearch struct {

	// The ID of the user.
	UserID int64 `json:"user_id,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UserSearch user search

swagger:model UserSearch

func (*UserSearch) MarshalBinary

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

MarshalBinary interface implementation

func (*UserSearch) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserSearch) Validate

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

Validate validates this user search

type UserSearchRespItem

type UserSearchRespItem struct {

	// The ID of the user.
	UserID int64 `json:"user_id,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UserSearchRespItem user search resp item

swagger:model UserSearchRespItem

func (*UserSearchRespItem) MarshalBinary

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

MarshalBinary interface implementation

func (*UserSearchRespItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserSearchRespItem) Validate

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

Validate validates this user search resp item

type UserSysAdminFlag

type UserSysAdminFlag struct {

	// true-admin, false-not admin.
	SysadminFlag bool `json:"sysadmin_flag,omitempty"`
}

UserSysAdminFlag user sys admin flag

swagger:model UserSysAdminFlag

func (*UserSysAdminFlag) MarshalBinary

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

MarshalBinary interface implementation

func (*UserSysAdminFlag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserSysAdminFlag) Validate

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

Validate validates this user sys admin flag

type VulnerabilityItem added in v5.6.0

type VulnerabilityItem struct {

	// the CVE id of the vulnerability.
	CVEID string `json:"cve_id,omitempty"`

	// the nvd cvss v3 score of the vulnerability
	CvssV3Score float32 `json:"cvss_v3_score,omitempty"`

	// The description of the vulnerability
	Desc string `json:"desc,omitempty"`

	// the digest of the artifact
	Digest string `json:"digest,omitempty"`

	// the fixed version of the package
	FixedVersion string `json:"fixed_version,omitempty"`

	// Links of the vulnerability
	Links []string `json:"links"`

	// the package of the vulnerability
	Package string `json:"package,omitempty"`

	// the project ID of the artifact
	ProjectID int64 `json:"project_id,omitempty"`

	// the repository name of the artifact
	RepositoryName string `json:"repository_name,omitempty"`

	// the severity of the vulnerability
	Severity string `json:"severity,omitempty"`

	// the tags of the artifact
	Tags []string `json:"tags"`

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

VulnerabilityItem the vulnerability item info

swagger:model VulnerabilityItem

func (*VulnerabilityItem) MarshalBinary added in v5.6.0

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

MarshalBinary interface implementation

func (*VulnerabilityItem) UnmarshalBinary added in v5.6.0

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

UnmarshalBinary interface implementation

func (*VulnerabilityItem) Validate added in v5.6.0

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

Validate validates this vulnerability item

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

type WebhookJob

type WebhookJob struct {

	// The webhook job creation time.
	// Format: date-time
	CreationTime strfmt.DateTime `json:"creation_time,omitempty"`

	// The webhook job event type.
	EventType string `json:"event_type,omitempty"`

	// The webhook job ID.
	ID int64 `json:"id,omitempty"`

	// The webhook job notify detailed data.
	JobDetail string `json:"job_detail,omitempty"`

	// The webhook job notify type.
	NotifyType string `json:"notify_type,omitempty"`

	// The webhook policy ID.
	PolicyID int64 `json:"policy_id,omitempty"`

	// The webhook job status.
	Status string `json:"status,omitempty"`

	// The webhook job update time.
	// Format: date-time
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`
}

WebhookJob The webhook job.

swagger:model WebhookJob

func (*WebhookJob) MarshalBinary

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

MarshalBinary interface implementation

func (*WebhookJob) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WebhookJob) Validate

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

Validate validates this webhook job

type WebhookLastTrigger

type WebhookLastTrigger struct {

	// The creation time of webhook policy.
	// Format: date-time
	CreationTime strfmt.DateTime `json:"creation_time,omitempty"`

	// Whether or not the webhook policy enabled.
	Enabled bool `json:"enabled,omitempty"`

	// The webhook event type.
	EventType string `json:"event_type,omitempty"`

	// The last trigger time of webhook policy.
	// Format: date-time
	LastTriggerTime strfmt.DateTime `json:"last_trigger_time,omitempty"`

	// The webhook policy name.
	PolicyName string `json:"policy_name,omitempty"`
}

WebhookLastTrigger The webhook policy and last trigger time group by event type.

swagger:model WebhookLastTrigger

func (*WebhookLastTrigger) MarshalBinary

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

MarshalBinary interface implementation

func (*WebhookLastTrigger) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WebhookLastTrigger) Validate

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

Validate validates this webhook last trigger

type WebhookPolicy

type WebhookPolicy struct {

	// The create time of the webhook policy.
	// Format: date-time
	CreationTime strfmt.DateTime `json:"creation_time,omitempty"`

	// The creator of the webhook policy.
	Creator string `json:"creator,omitempty"`

	// The description of webhook policy.
	Description string `json:"description,omitempty"`

	// Whether the webhook policy is enabled or not.
	Enabled bool `json:"enabled"`

	// event types
	EventTypes []string `json:"event_types"`

	// The webhook policy ID.
	ID int64 `json:"id,omitempty"`

	// The name of webhook policy.
	Name string `json:"name,omitempty"`

	// The project ID of webhook policy.
	ProjectID int64 `json:"project_id,omitempty"`

	// targets
	Targets []*WebhookTargetObject `json:"targets"`

	// The update time of the webhook policy.
	// Format: date-time
	UpdateTime strfmt.DateTime `json:"update_time,omitempty"`
}

WebhookPolicy The webhook policy object

swagger:model WebhookPolicy

func (*WebhookPolicy) MarshalBinary

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

MarshalBinary interface implementation

func (*WebhookPolicy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WebhookPolicy) Validate

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

Validate validates this webhook policy

type WebhookTargetObject

type WebhookTargetObject struct {

	// The webhook target address.
	Address string `json:"address,omitempty"`

	// The webhook auth header.
	AuthHeader string `json:"auth_header,omitempty"`

	// The payload format of webhook, by default is Default for http type.
	PayloadFormat PayloadFormatType `json:"payload_format,omitempty"`

	// Whether or not to skip cert verify.
	SkipCertVerify bool `json:"skip_cert_verify,omitempty"`

	// The webhook target notify type.
	Type string `json:"type,omitempty"`
}

WebhookTargetObject The webhook policy target object.

swagger:model WebhookTargetObject

func (*WebhookTargetObject) MarshalBinary

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

MarshalBinary interface implementation

func (*WebhookTargetObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WebhookTargetObject) Validate

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

Validate validates this webhook target object

type Worker added in v5.2.0

type Worker struct {

	// the checkin of the running job in the worker
	CheckIn string `json:"check_in,omitempty"`

	// The checkin time of the worker
	// Format: date-time
	CheckinAt *strfmt.DateTime `json:"checkin_at,omitempty"`

	// the id of the worker
	ID string `json:"id,omitempty"`

	// the id of the running job in the worker
	JobID string `json:"job_id,omitempty"`

	// the name of the running job in the worker
	JobName string `json:"job_name,omitempty"`

	// the id of the worker pool
	PoolID string `json:"pool_id,omitempty"`

	// The start time of the worker
	// Format: date-time
	StartAt *strfmt.DateTime `json:"start_at,omitempty"`
}

Worker worker in the pool

swagger:model Worker

func (*Worker) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*Worker) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*Worker) Validate added in v5.2.0

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

Validate validates this worker

type WorkerPool added in v5.2.0

type WorkerPool struct {

	// The concurrency of the work pool
	Concurrency int64 `json:"concurrency,omitempty"`

	// The heartbeat time of the work pool
	// Format: date-time
	HeartbeatAt strfmt.DateTime `json:"heartbeat_at,omitempty"`

	// The host of the work pool
	Host string `json:"host,omitempty"`

	// the process id of jobservice
	Pid int64 `json:"pid,omitempty"`

	// The start time of the work pool
	// Format: date-time
	StartAt strfmt.DateTime `json:"start_at,omitempty"`

	// the id of the worker pool
	WorkerPoolID string `json:"worker_pool_id,omitempty"`
}

WorkerPool the worker pool of job service

swagger:model WorkerPool

func (*WorkerPool) MarshalBinary added in v5.2.0

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

MarshalBinary interface implementation

func (*WorkerPool) UnmarshalBinary added in v5.2.0

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

UnmarshalBinary interface implementation

func (*WorkerPool) Validate added in v5.2.0

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

Validate validates this worker pool

Source Files

Jump to

Keyboard shortcuts

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