model

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLog

type AccessLog struct {

	// The ID of the log entry.
	LogID int64 `json:"log_id,omitempty"`

	// The time when this operation is triggered.
	OpTime string `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.
	RepoName string `json:"repo_name,omitempty"`

	// Tag of the repository in this log entry.
	RepoTag string `json:"repo_tag,omitempty"`

	// Username of the user in this log entry.
	Username string `json:"username,omitempty"`
}

AccessLog access log

swagger:model AccessLog

func (*AccessLog) ContextValidate

func (m *AccessLog) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this access log based on context it is used

func (*AccessLog) MarshalBinary

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

MarshalBinary interface implementation

func (*AccessLog) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AccessLog) Validate

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

Validate validates this access log

type AdminJobSchedule

type AdminJobSchedule struct {

	// schedule
	Schedule *AdminJobScheduleObj `json:"schedule,omitempty"`
}

AdminJobSchedule admin job schedule

swagger:model AdminJobSchedule

func (*AdminJobSchedule) ContextValidate

func (m *AdminJobSchedule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this admin job schedule based on the context it is used

func (*AdminJobSchedule) MarshalBinary

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

MarshalBinary interface implementation

func (*AdminJobSchedule) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AdminJobSchedule) Validate

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

Validate validates this admin job schedule

type AdminJobScheduleObj

type AdminJobScheduleObj struct {

	// A cron expression, a time-based job scheduler.
	Cron string `json:"cron,omitempty"`

	// The schedule type. The valid values are 'Hourly', 'Daily', 'Weekly', 'Custom', 'Manually' and 'None'.
	// 'Manually' means to trigger it right away and 'None' means to cancel the schedule.
	//
	Type string `json:"type,omitempty"`
}

AdminJobScheduleObj admin job schedule obj

swagger:model AdminJobScheduleObj

func (*AdminJobScheduleObj) ContextValidate

func (m *AdminJobScheduleObj) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this admin job schedule obj based on context it is used

func (*AdminJobScheduleObj) MarshalBinary

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

MarshalBinary interface implementation

func (*AdminJobScheduleObj) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AdminJobScheduleObj) Validate

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

Validate validates this admin job schedule obj

type BadRequestFormatedError

type BadRequestFormatedError struct {
	ChartAPIError
}

BadRequestFormatedError Bad request

swagger:model BadRequestFormatedError

func (*BadRequestFormatedError) ContextValidate

func (m *BadRequestFormatedError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bad request formated error based on the context it is used

func (*BadRequestFormatedError) MarshalBinary

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

MarshalBinary interface implementation

func (BadRequestFormatedError) MarshalJSON

func (m BadRequestFormatedError) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*BadRequestFormatedError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BadRequestFormatedError) UnmarshalJSON

func (m *BadRequestFormatedError) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*BadRequestFormatedError) Validate

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

Validate validates this bad request formated error

type BoolConfigItem

type BoolConfigItem struct {

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

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

BoolConfigItem bool config item

swagger:model BoolConfigItem

func (*BoolConfigItem) ContextValidate

func (m *BoolConfigItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this bool config item based on context it is used

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 CVEWhitelist

type CVEWhitelist struct {

	// the time for expiration of the whitelist, in the form of seconds since epoch.  This is an optional attribute, if it's not set the CVE whitelist does not expire.
	ExpiresAt int64 `json:"expires_at,omitempty"`

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

	// items
	Items []*CVEWhitelistItem `json:"items"`

	// ID of the project which the whitelist belongs to.  For system level whitelist this attribute is zero.
	ProjectID int64 `json:"project_id,omitempty"`
}

CVEWhitelist The CVE Whitelist for system or project

swagger:model CVEWhitelist

func (*CVEWhitelist) ContextValidate

func (m *CVEWhitelist) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this c v e whitelist based on the context it is used

func (*CVEWhitelist) MarshalBinary

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

MarshalBinary interface implementation

func (*CVEWhitelist) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CVEWhitelist) Validate

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

Validate validates this c v e whitelist

type CVEWhitelistItem

type CVEWhitelistItem struct {

	// The ID of the CVE, such as "CVE-2019-10164"
	CveID string `json:"cve_id,omitempty"`
}

CVEWhitelistItem The item in CVE whitelist

swagger:model CVEWhitelistItem

func (*CVEWhitelistItem) ContextValidate

func (m *CVEWhitelistItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this c v e whitelist item based on context it is used

func (*CVEWhitelistItem) MarshalBinary

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

MarshalBinary interface implementation

func (*CVEWhitelistItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CVEWhitelistItem) Validate

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

Validate validates this c v e whitelist item

type ChartAPIError

type ChartAPIError struct {

	// The error message returned by the chart API
	// Required: true
	Error *string `json:"error"`
}

ChartAPIError The error object returned by chart repository API

swagger:model ChartAPIError

func (*ChartAPIError) ContextValidate

func (m *ChartAPIError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this chart API error based on context it is used

func (*ChartAPIError) MarshalBinary

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

MarshalBinary interface implementation

func (*ChartAPIError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ChartAPIError) Validate

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

Validate validates this chart API error

type ChartInfoEntry

type ChartInfoEntry struct {

	// The created time of chart
	// Required: true
	Created *string `json:"created"`

	// Flag to indicate if the chart is deprecated
	Deprecated bool `json:"deprecated,omitempty"`

	// The home website of chart
	Home string `json:"home,omitempty"`

	// The icon path of chart
	Icon string `json:"icon,omitempty"`

	// latest version of chart
	LatestVersion string `json:"latest_version,omitempty"`

	// Name of chart
	// Required: true
	Name *string `json:"name"`

	// Total count of chart versions
	// Required: true
	TotalVersions *int64 `json:"total_versions"`

	// The created time of chart
	Updated string `json:"updated,omitempty"`
}

ChartInfoEntry The object contains basic chart information

swagger:model ChartInfoEntry

func (*ChartInfoEntry) ContextValidate

func (m *ChartInfoEntry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this chart info entry based on context it is used

func (*ChartInfoEntry) MarshalBinary

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

MarshalBinary interface implementation

func (*ChartInfoEntry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ChartInfoEntry) Validate

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

Validate validates this chart info entry

type ChartInfoList

type ChartInfoList []*ChartInfoEntry

ChartInfoList The chart list under the project

swagger:model ChartInfoList

func (ChartInfoList) ContextValidate

func (m ChartInfoList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this chart info list based on the context it is used

func (ChartInfoList) Validate

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

Validate validates this chart info list

type ChartMetadata

type ChartMetadata struct {

	// The API version of this chart
	// Required: true
	APIVersion *string `json:"apiVersion"`

	// The version of the application enclosed in the chart
	// Required: true
	AppVersion *string `json:"appVersion"`

	// Whether or not this chart is deprecated
	Deprecated bool `json:"deprecated,omitempty"`

	// A one-sentence description of chart
	Description string `json:"description,omitempty"`

	// The name of template engine
	// Required: true
	Engine *string `json:"engine"`

	// The URL to the relevant project page
	Home string `json:"home,omitempty"`

	// The URL to an icon file
	// Required: true
	Icon *string `json:"icon"`

	// A list of string keywords
	Keywords []string `json:"keywords"`

	// The name of the chart
	// Required: true
	Name *string `json:"name"`

	// The URL to the source code of chart
	Sources []string `json:"sources"`

	// A SemVer 2 version of chart
	// Required: true
	Version *string `json:"version"`
}

ChartMetadata The metadata of chart version

swagger:model ChartMetadata

func (*ChartMetadata) ContextValidate

func (m *ChartMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this chart metadata based on context it is used

func (*ChartMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*ChartMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ChartMetadata) Validate

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

Validate validates this chart metadata

type ChartVersion

type ChartVersion struct {
	ChartMetadata

	// The created time of the chart entry
	Created string `json:"created,omitempty"`

	// The digest value of the chart entry
	Digest string `json:"digest,omitempty"`

	// A flag to indicate if the chart entry is removed
	Removed bool `json:"removed,omitempty"`

	// The urls of the chart entry
	Urls []string `json:"urls"`

	// labels
	Labels Labels `json:"labels,omitempty"`
}

ChartVersion A specified chart entry

swagger:model ChartVersion

func (*ChartVersion) ContextValidate

func (m *ChartVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this chart version based on the context it is used

func (*ChartVersion) MarshalBinary

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

MarshalBinary interface implementation

func (ChartVersion) MarshalJSON

func (m ChartVersion) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ChartVersion) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ChartVersion) UnmarshalJSON

func (m *ChartVersion) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ChartVersion) Validate

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

Validate validates this chart version

type ChartVersionDetails

type ChartVersionDetails struct {

	// dependencies
	Dependencies []*Dependency `json:"dependencies"`

	// files
	Files map[string]string `json:"files,omitempty"`

	// labels
	Labels Labels `json:"labels,omitempty"`

	// metadata
	Metadata *ChartVersion `json:"metadata,omitempty"`

	// security
	Security *SecurityReport `json:"security,omitempty"`

	// values
	Values map[string]interface{} `json:"values,omitempty"`
}

ChartVersionDetails The detailed information of the chart entry

swagger:model ChartVersionDetails

func (*ChartVersionDetails) ContextValidate

func (m *ChartVersionDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this chart version details based on the context it is used

func (*ChartVersionDetails) MarshalBinary

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

MarshalBinary interface implementation

func (*ChartVersionDetails) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ChartVersionDetails) Validate

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

Validate validates this chart version details

type ChartVersions

type ChartVersions []*ChartVersion

ChartVersions A list of chart entry

swagger:model ChartVersions

func (ChartVersions) ContextValidate

func (m ChartVersions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this chart versions based on the context it is used

func (ChartVersions) Validate

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

Validate validates this chart versions

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
	Status string `json:"status,omitempty"`
}

ComponentHealthStatus The health status of component

swagger:model ComponentHealthStatus

func (*ComponentHealthStatus) ContextValidate

func (m *ComponentHealthStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this component health status based on context it is used

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 ComponentOverviewEntry

type ComponentOverviewEntry struct {

	// number of the components with certain severity.
	Count int64 `json:"count,omitempty"`

	// 1-None/Negligible, 2-Unknown, 3-Low, 4-Medium, 5-High
	Severity int64 `json:"severity,omitempty"`
}

ComponentOverviewEntry component overview entry

swagger:model ComponentOverviewEntry

func (*ComponentOverviewEntry) ContextValidate

func (m *ComponentOverviewEntry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this component overview entry based on context it is used

func (*ComponentOverviewEntry) MarshalBinary

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

MarshalBinary interface implementation

func (*ComponentOverviewEntry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ComponentOverviewEntry) Validate

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

Validate validates this component overview entry

type Configurations

type Configurations struct {

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

	// The default count quota for the new created projects.
	CountPerProject string `json:"count_per_project,omitempty"`

	// The sender name for Email notification.
	EmailFrom string `json:"email_from,omitempty"`

	// The hostname of SMTP server that sends Email notification.
	EmailHost string `json:"email_host,omitempty"`

	// By default it's empty so the email_username is picked.
	EmailIdentity string `json:"email_identity,omitempty"`

	// Whether or not the certificate will be verified when Harbor tries to access the email server.
	EmailInsecure bool `json:"email_insecure,omitempty"`

	// The port of SMTP server.
	EmailPort int64 `json:"email_port,omitempty"`

	// When it's set to true the system will access Email server via TLS by default.  If it's set to false, it still will handle "STARTTLS" from server side.
	EmailSsl bool `json:"email_ssl,omitempty"`

	// The username for authenticate against SMTP server.
	EmailUsername string `json:"email_username,omitempty"`

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

	// The filter for LDAP binding.
	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 filter to search the ldap group.
	LdapGroupSearchFilter string `json:"ldap_group_search_filter,omitempty"`

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

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

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

	// The client id of the OIDC.
	OidcClientID string `json:"oidc_client_id,omitempty"`

	// The client secret of the OIDC.
	OidcClientSecret string `json:"oidc_client_secret,omitempty"`

	// The URL of an OIDC-complaint server, must start with 'https://'.
	OidcEndpoint string `json:"oidc_endpoint,omitempty"`

	// The name of the OIDC provider.
	OidcName string `json:"oidc_name,omitempty"`

	// The scope sent to OIDC server during authentication, should be separated by comma. It has to contain “openid”, and “offline_access”. If you are using google, please remove “offline_access” from this field.
	OidcScope string `json:"oidc_scope,omitempty"`

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

	// This attribute restricts what users have the permission to create project.  It can be "everyone" or "adminonly".
	ProjectCreationRestriction string `json:"project_creation_restriction,omitempty"`

	// This attribute indicates whether quota per project enabled in harbor
	QuotaPerProjectEnable bool `json:"quota_per_project_enable,omitempty"`

	// 'docker push' is prohibited by Harbor if you set it to true.
	ReadOnly bool `json:"read_only,omitempty"`

	// scan all policy
	ScanAllPolicy *ConfigurationsScanAllPolicy `json:"scan_all_policy,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 default storage quota for the new created projects.
	StoragePerProject string `json:"storage_per_project,omitempty"`

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

	// Whether or not the certificate will be verified when Harbor tries to access a remote Harbor instance for replication.
	VerifyRemoteCert bool `json:"verify_remote_cert,omitempty"`
}

Configurations configurations

swagger:model Configurations

func (*Configurations) ContextValidate

func (m *Configurations) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this configurations based on the context it is used

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 auth mode of current system, such as "db_auth", "ldap_auth"
	AuthMode *StringConfigItem `json:"auth_mode,omitempty"`

	// The default count quota for the new created projects.
	CountPerProject *IntegerConfigItem `json:"count_per_project,omitempty"`

	// The sender name for Email notification.
	EmailFrom *StringConfigItem `json:"email_from,omitempty"`

	// The hostname of SMTP server that sends Email notification.
	EmailHost *StringConfigItem `json:"email_host,omitempty"`

	// By default it's empty so the email_username is picked.
	EmailIdentity *StringConfigItem `json:"email_identity,omitempty"`

	// Whether or not the certificate will be verified when Harbor tries to access the email server.
	EmailInsecure *BoolConfigItem `json:"email_insecure,omitempty"`

	// The port of SMTP server.
	EmailPort *IntegerConfigItem `json:"email_port,omitempty"`

	// When it's set to true the system will access Email server via TLS by default.  If it's set to false, it still will handle "STARTTLS" from server side.
	EmailSsl *BoolConfigItem `json:"email_ssl,omitempty"`

	// The username for authenticate against SMTP server.
	EmailUsername *StringConfigItem `json:"email_username,omitempty"`

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

	// The filter for LDAP binding.
	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 filter to search the ldap group.
	LdapGroupSearchFilter *StringConfigItem `json:"ldap_group_search_filter,omitempty"`

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

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

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

	// The client id of the OIDC.
	OidcClientID *StringConfigItem `json:"oidc_client_id,omitempty"`

	// The URL of an OIDC-complaint server, must start with 'https://'.
	OidcEndpoint *StringConfigItem `json:"oidc_endpoint,omitempty"`

	// The name of the OIDC provider.
	OidcName *StringConfigItem `json:"oidc_name,omitempty"`

	// The scope sent to OIDC server during authentication, should be separated by comma. It has to contain “openid”, and “offline_access”. If you are using google, please remove “offline_access” from this field.
	OidcScope *StringConfigItem `json:"oidc_scope,omitempty"`

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

	// This attribute restricts what users have the permission to create project.  It can be "everyone" or "adminonly".
	ProjectCreationRestriction *StringConfigItem `json:"project_creation_restriction,omitempty"`

	// This attribute indicates whether quota per project enabled in harbor
	QuotaPerProjectEnable *BoolConfigItem `json:"quota_per_project_enable,omitempty"`

	// 'docker push' is prohibited by Harbor if you set it to true.
	ReadOnly *BoolConfigItem `json:"read_only,omitempty"`

	// scan all policy
	ScanAllPolicy *ConfigurationsResponseScanAllPolicy `json:"scan_all_policy,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 default storage quota for the new created projects.
	StoragePerProject *IntegerConfigItem `json:"storage_per_project,omitempty"`

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

	// Whether or not the certificate will be verified when Harbor tries to access a remote Harbor instance for replication.
	VerifyRemoteCert *BoolConfigItem `json:"verify_remote_cert,omitempty"`
}

ConfigurationsResponse configurations response

swagger:model ConfigurationsResponse

func (*ConfigurationsResponse) ContextValidate

func (m *ConfigurationsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this configurations response based on the context it is used

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

func (m *ConfigurationsResponseScanAllPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this configurations response scan all policy based on the context it is used

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 dependant on the type of the policy.

swagger:model ConfigurationsResponseScanAllPolicyParameter

func (*ConfigurationsResponseScanAllPolicyParameter) ContextValidate

ContextValidate validates this configurations response scan all policy parameter based on context it is used

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 ConfigurationsScanAllPolicy

type ConfigurationsScanAllPolicy struct {

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

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

ConfigurationsScanAllPolicy configurations scan all policy

swagger:model ConfigurationsScanAllPolicy

func (*ConfigurationsScanAllPolicy) ContextValidate

func (m *ConfigurationsScanAllPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this configurations scan all policy based on the context it is used

func (*ConfigurationsScanAllPolicy) MarshalBinary

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

MarshalBinary interface implementation

func (*ConfigurationsScanAllPolicy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigurationsScanAllPolicy) Validate

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

Validate validates this configurations scan all policy

type ConfigurationsScanAllPolicyParameter

type ConfigurationsScanAllPolicyParameter struct {

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

ConfigurationsScanAllPolicyParameter The parameters of the policy, the values are dependant on the type of the policy.

swagger:model ConfigurationsScanAllPolicyParameter

func (*ConfigurationsScanAllPolicyParameter) ContextValidate

func (m *ConfigurationsScanAllPolicyParameter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this configurations scan all policy parameter based on context it is used

func (*ConfigurationsScanAllPolicyParameter) MarshalBinary

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

MarshalBinary interface implementation

func (*ConfigurationsScanAllPolicyParameter) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigurationsScanAllPolicyParameter) Validate

Validate validates this configurations scan all policy parameter

type ConflictFormatedError

type ConflictFormatedError struct {
	ChartAPIError
}

ConflictFormatedError Conflicts

swagger:model ConflictFormatedError

func (*ConflictFormatedError) ContextValidate

func (m *ConflictFormatedError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this conflict formated error based on the context it is used

func (*ConflictFormatedError) MarshalBinary

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

MarshalBinary interface implementation

func (ConflictFormatedError) MarshalJSON

func (m ConflictFormatedError) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ConflictFormatedError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConflictFormatedError) UnmarshalJSON

func (m *ConflictFormatedError) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ConflictFormatedError) Validate

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

Validate validates this conflict formated error

type Dependency

type Dependency struct {

	// The name of the chart denpendency
	// Required: true
	Name *string `json:"name"`

	// The URL to the repository
	Repository string `json:"repository,omitempty"`

	// The version of the chart dependency
	// Required: true
	Version *string `json:"version"`
}

Dependency Another chart the chart depends on

swagger:model Dependency

func (*Dependency) ContextValidate

func (m *Dependency) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this dependency based on context it is used

func (*Dependency) MarshalBinary

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

MarshalBinary interface implementation

func (*Dependency) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Dependency) Validate

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

Validate validates this dependency

type DetailedTag

type DetailedTag struct {

	// The architecture of the image.
	Architecture string `json:"architecture,omitempty"`

	// The author of the image.
	Author string `json:"author,omitempty"`

	// The build time of the image.
	Created string `json:"created,omitempty"`

	// The digest of the tag.
	Digest string `json:"digest,omitempty"`

	// The version of docker which builds the image.
	DockerVersion string `json:"docker_version,omitempty"`

	// The label list.
	Labels []*Label `json:"labels"`

	// The name of the tag.
	Name string `json:"name,omitempty"`

	// The os of the image.
	Os string `json:"os,omitempty"`

	// The overview of the scan result.
	ScanOverview ScanOverview `json:"scan_overview,omitempty"`

	// The signature of image, defined by RepoSignature. If it is null, the image is unsigned.
	Signature interface{} `json:"signature,omitempty"`

	// The size of the image.
	Size int64 `json:"size,omitempty"`
}

DetailedTag detailed tag

swagger:model DetailedTag

func (*DetailedTag) ContextValidate

func (m *DetailedTag) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this detailed tag based on the context it is used

func (*DetailedTag) MarshalBinary

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

MarshalBinary interface implementation

func (*DetailedTag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DetailedTag) Validate

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

Validate validates this detailed tag

type DigitalSignature

type DigitalSignature struct {

	// The URL of the provance file
	ProvFile string `json:"prov_file,omitempty"`

	// A flag to indicate if the chart is signed
	Signed bool `json:"signed,omitempty"`
}

DigitalSignature The signature of the chart

swagger:model DigitalSignature

func (*DigitalSignature) ContextValidate

func (m *DigitalSignature) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this digital signature based on context it is used

func (*DigitalSignature) MarshalBinary

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

MarshalBinary interface implementation

func (*DigitalSignature) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DigitalSignature) Validate

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

Validate validates this digital signature

type EmailServerSetting

type EmailServerSetting struct {

	// The host of email server.
	EmailHost string `json:"email_host,omitempty"`

	// The dentity of email server.
	EmailIdentity string `json:"email_identity,omitempty"`

	// The password of email server.
	EmailPassword string `json:"email_password,omitempty"`

	// The port of email server.
	EmailPort int64 `json:"email_port,omitempty"`

	// Use ssl/tls or not.
	EmailSsl bool `json:"email_ssl,omitempty"`

	// The username of email server.
	EmailUsername string `json:"email_username,omitempty"`
}

EmailServerSetting email server setting

swagger:model EmailServerSetting

func (*EmailServerSetting) ContextValidate

func (m *EmailServerSetting) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this email server setting based on context it is used

func (*EmailServerSetting) MarshalBinary

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

MarshalBinary interface implementation

func (*EmailServerSetting) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EmailServerSetting) Validate

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

Validate validates this email server setting

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

func (m *FilterStyle) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this filter style based on context it is used

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 ForbiddenChartAPIError

type ForbiddenChartAPIError struct {
	ChartAPIError
}

ForbiddenChartAPIError Operation is forbidden or quota exceeded

swagger:model ForbiddenChartAPIError

func (*ForbiddenChartAPIError) ContextValidate

func (m *ForbiddenChartAPIError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this forbidden chart API error based on the context it is used

func (*ForbiddenChartAPIError) MarshalBinary

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

MarshalBinary interface implementation

func (ForbiddenChartAPIError) MarshalJSON

func (m ForbiddenChartAPIError) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*ForbiddenChartAPIError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ForbiddenChartAPIError) UnmarshalJSON

func (m *ForbiddenChartAPIError) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*ForbiddenChartAPIError) Validate

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

Validate validates this forbidden chart API error

type GCResult

type GCResult struct {

	// the creation time of gc job.
	CreationTime string `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 status of gc job.
	JobStatus string `json:"job_status,omitempty"`

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

	// the update time of gc job.
	UpdateTime string `json:"update_time,omitempty"`
}

GCResult g c result

swagger:model GCResult

func (*GCResult) ContextValidate

func (m *GCResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this g c result based on the context it is used

func (*GCResult) MarshalBinary

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

MarshalBinary interface implementation

func (*GCResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GCResult) Validate

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

Validate validates this g c result

type GeneralInfo

type GeneralInfo struct {

	// The url of the endpoint of admiral instance.
	AdmiralEndpoint string `json:"admiral_endpoint,omitempty"`

	// The auth mode of current Harbor instance.
	AuthMode string `json:"auth_mode,omitempty"`

	// clair vulnerability status
	ClairVulnerabilityStatus *GeneralInfoClairVulnerabilityStatus `json:"clair_vulnerability_status,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 UTC time in milliseconds, after which user can call scanAll API to scan all images.
	NextScanAll int64 `json:"next_scan_all,omitempty"`

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

	// The url of registry against which the docker command should be issued.
	RegistryURL string `json:"registry_url,omitempty"`

	// Indicate whether the Harbor instance enable user to register himself.
	SelfRegistration bool `json:"self_registration,omitempty"`

	// If the Harbor instance is deployed with Admiral.
	WithAdmiral bool `json:"with_admiral,omitempty"`

	// If the Harbor instance is deployed with nested clair.
	WithClair bool `json:"with_clair,omitempty"`

	// If the Harbor instance is deployed with nested notary.
	WithNotary bool `json:"with_notary,omitempty"`
}

GeneralInfo general info

swagger:model GeneralInfo

func (*GeneralInfo) ContextValidate

func (m *GeneralInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this general info based on the context it is used

func (*GeneralInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*GeneralInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GeneralInfo) Validate

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

Validate validates this general info

type GeneralInfoClairVulnerabilityStatus

type GeneralInfoClairVulnerabilityStatus struct {

	// Detail timestamp of different namespace.  This is introduced to handle the case when some updaters are executed successfully and some not.
	Details []*VulnNamespaceTimestamp `json:"details"`

	// The UTC timestamp in milliseconds of last successful update for Clair vulnerability data, when all the updaters are successfully executed.
	OverallLastUpdate int64 `json:"overall_last_update,omitempty"`
}

GeneralInfoClairVulnerabilityStatus The status of vulnerability data of Clair.

swagger:model GeneralInfoClairVulnerabilityStatus

func (*GeneralInfoClairVulnerabilityStatus) ContextValidate

func (m *GeneralInfoClairVulnerabilityStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this general info clair vulnerability status based on the context it is used

func (*GeneralInfoClairVulnerabilityStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*GeneralInfoClairVulnerabilityStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GeneralInfoClairVulnerabilityStatus) Validate

Validate validates this general info clair vulnerability status

type HasAdminRole

type HasAdminRole struct {

	// 1-has admin, 0-not.
	HasAdminRole bool `json:"has_admin_role,omitempty"`
}

HasAdminRole has admin role

swagger:model HasAdminRole

func (*HasAdminRole) ContextValidate

func (m *HasAdminRole) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this has admin role based on context it is used

func (*HasAdminRole) MarshalBinary

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

MarshalBinary interface implementation

func (*HasAdminRole) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HasAdminRole) Validate

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

Validate validates this has admin role

type ImmutableTagRule

type ImmutableTagRule struct {

	// enabled
	Enabled bool `json:"enabled,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

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

	// tag filter
	TagFilter string `json:"tag_filter,omitempty"`
}

ImmutableTagRule immutable tag rule

swagger:model ImmutableTagRule

func (*ImmutableTagRule) ContextValidate

func (m *ImmutableTagRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this immutable tag rule based on context it is used

func (*ImmutableTagRule) MarshalBinary

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

MarshalBinary interface implementation

func (*ImmutableTagRule) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImmutableTagRule) Validate

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

Validate validates this immutable tag rule

type InsufficientStorageChartAPIError

type InsufficientStorageChartAPIError struct {
	ChartAPIError
}

InsufficientStorageChartAPIError Insufficient storage

swagger:model InsufficientStorageChartAPIError

func (*InsufficientStorageChartAPIError) ContextValidate

func (m *InsufficientStorageChartAPIError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this insufficient storage chart API error based on the context it is used

func (*InsufficientStorageChartAPIError) MarshalBinary

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

MarshalBinary interface implementation

func (InsufficientStorageChartAPIError) MarshalJSON

func (m InsufficientStorageChartAPIError) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*InsufficientStorageChartAPIError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*InsufficientStorageChartAPIError) UnmarshalJSON

func (m *InsufficientStorageChartAPIError) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*InsufficientStorageChartAPIError) Validate

Validate validates this insufficient storage chart API error

type IntegerConfigItem

type IntegerConfigItem struct {

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

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

IntegerConfigItem integer config item

swagger:model IntegerConfigItem

func (*IntegerConfigItem) ContextValidate

func (m *IntegerConfigItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this integer config item based on context it is used

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 InternalChartAPIError

type InternalChartAPIError struct {
	ChartAPIError
}

InternalChartAPIError Internal server error occurred

swagger:model InternalChartAPIError

func (*InternalChartAPIError) ContextValidate

func (m *InternalChartAPIError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this internal chart API error based on the context it is used

func (*InternalChartAPIError) MarshalBinary

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

MarshalBinary interface implementation

func (InternalChartAPIError) MarshalJSON

func (m InternalChartAPIError) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*InternalChartAPIError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*InternalChartAPIError) UnmarshalJSON

func (m *InternalChartAPIError) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*InternalChartAPIError) Validate

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

Validate validates this internal chart API error

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

func (m *IsDefault) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this is default based on context it is used

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 JobStatus

type JobStatus struct {

	// The creation time of the job.
	CreationTime string `json:"creation_time,omitempty"`

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

	// The operation of the job.
	Operation string `json:"operation,omitempty"`

	// The ID of the policy that triggered this job.
	PolicyID int64 `json:"policy_id,omitempty"`

	// The repository handled by the job.
	Repository string `json:"repository,omitempty"`

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

	// The repository's used tag list.
	Tags []*Tags `json:"tags"`

	// The update time of the job.
	UpdateTime string `json:"update_time,omitempty"`
}

JobStatus job status

swagger:model JobStatus

func (*JobStatus) ContextValidate

func (m *JobStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this job status based on the context it is used

func (*JobStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*JobStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JobStatus) Validate

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

Validate validates this job status

type Label

type Label struct {

	// The color of label.
	Color string `json:"color,omitempty"`

	// The creation time of label.
	CreationTime string `json:"creation_time,omitempty"`

	// The label is deleted or not.
	Deleted bool `json:"deleted,omitempty"`

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

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

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

	// The project ID if the label is a project label.
	ProjectID int64 `json:"project_id,omitempty"`

	// The scope of label, g for global labels and p for project labels.
	Scope string `json:"scope,omitempty"`

	// The update time of label.
	UpdateTime string `json:"update_time,omitempty"`
}

Label label

swagger:model Label

func (*Label) ContextValidate

func (m *Label) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this label based on context it is used

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 Labels

type Labels []*Label

Labels A list of label

swagger:model Labels

func (Labels) ContextValidate

func (m Labels) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this labels based on the context it is used

func (Labels) Validate

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

Validate validates this labels

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

LdapConf ldap conf

swagger:model LdapConf

func (*LdapConf) ContextValidate

func (m *LdapConf) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ldap conf based on context it is used

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 LdapFailedImportUsers

type LdapFailedImportUsers struct {

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

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

LdapFailedImportUsers ldap failed import users

swagger:model LdapFailedImportUsers

func (*LdapFailedImportUsers) ContextValidate

func (m *LdapFailedImportUsers) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ldap failed import users based on context it is used

func (*LdapFailedImportUsers) MarshalBinary

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

MarshalBinary interface implementation

func (*LdapFailedImportUsers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LdapFailedImportUsers) Validate

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

Validate validates this ldap failed import users

type LdapImportUsers

type LdapImportUsers struct {

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

LdapImportUsers ldap import users

swagger:model LdapImportUsers

func (*LdapImportUsers) ContextValidate

func (m *LdapImportUsers) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ldap import users based on context it is used

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 LdapUsers

type LdapUsers struct {

	// system will try to guess the user email address form "mail" or "email" attribute.
	LdapEmail string `json:"ldap_email,omitempty"`

	// system will try to guess the user realname form "uid" or "cn" attribute.
	LdapRealname string `json:"ldap_realname,omitempty"`

	// search ldap user name based on ldapconf.
	LdapUsername string `json:"ldap_username,omitempty"`
}

LdapUsers ldap users

swagger:model LdapUsers

func (*LdapUsers) ContextValidate

func (m *LdapUsers) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ldap users based on context it is used

func (*LdapUsers) MarshalBinary

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

MarshalBinary interface implementation

func (*LdapUsers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LdapUsers) Validate

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

Validate validates this ldap users

type Manifest

type Manifest struct {

	// The config of the repository.
	Config string `json:"config,omitempty"`

	// The detail of manifest.
	Manifest interface{} `json:"manifest,omitempty"`
}

Manifest manifest

swagger:model Manifest

func (*Manifest) ContextValidate

func (m *Manifest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this manifest based on context it is used

func (*Manifest) MarshalBinary

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

MarshalBinary interface implementation

func (*Manifest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Manifest) Validate

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

Validate validates this manifest

type Namespace

type Namespace struct {

	// The metadata of namespace
	Metadata interface{} `json:"metadata,omitempty"`

	// The name of namespace
	Name string `json:"name,omitempty"`
}

Namespace The namespace of registry

swagger:model Namespace

func (*Namespace) ContextValidate

func (m *Namespace) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this namespace based on context it is used

func (*Namespace) MarshalBinary

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

MarshalBinary interface implementation

func (*Namespace) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Namespace) Validate

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

Validate validates this namespace

type NativeReportSummary

type NativeReportSummary struct {

	// The seconds spent for generating the report
	// Example: 300
	Duration int64 `json:"duration,omitempty"`

	// The end time of the scan process that generating report
	// Example: 2006-01-02T15:04:05
	// Format: date-time
	EndTime strfmt.DateTime `json:"end_time,omitempty"`

	// id of the native scan report
	// Example: 5f62c830-f996-11e9-957f-0242c0a89008
	ReportID string `json:"report_id,omitempty"`

	// The status of the report generating process
	// Example: Success
	ScanStatus string `json:"scan_status,omitempty"`

	// The overall severity
	// Example: High
	Severity string `json:"severity,omitempty"`

	// The start time of the scan process that generating report
	// Example: 2006-01-02T14:04:05
	// Format: date-time
	StartTime strfmt.DateTime `json:"start_time,omitempty"`

	// summary
	Summary *VulnerabilitySummary `json:"summary,omitempty"`
}

NativeReportSummary The summary for the native report

swagger:model NativeReportSummary

func (*NativeReportSummary) ContextValidate

func (m *NativeReportSummary) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this native report summary based on the context it is used

func (*NativeReportSummary) MarshalBinary

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

MarshalBinary interface implementation

func (*NativeReportSummary) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NativeReportSummary) Validate

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

Validate validates this native report summary

type NotFoundChartAPIError

type NotFoundChartAPIError struct {
	ChartAPIError
}

NotFoundChartAPIError Not found

swagger:model NotFoundChartAPIError

func (*NotFoundChartAPIError) ContextValidate

func (m *NotFoundChartAPIError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this not found chart API error based on the context it is used

func (*NotFoundChartAPIError) MarshalBinary

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

MarshalBinary interface implementation

func (NotFoundChartAPIError) MarshalJSON

func (m NotFoundChartAPIError) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*NotFoundChartAPIError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NotFoundChartAPIError) UnmarshalJSON

func (m *NotFoundChartAPIError) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*NotFoundChartAPIError) Validate

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

Validate validates this not found chart API error

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

func (m *OverallHealthStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this overall health status based on the context it is used

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 Password

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

Password password

swagger:model Password

func (*Password) ContextValidate

func (m *Password) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this password based on context it is used

func (*Password) MarshalBinary

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

MarshalBinary interface implementation

func (*Password) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Password) Validate

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

Validate validates this password

type Permission

type Permission struct {

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

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

Permission The permission

swagger:model Permission

func (*Permission) ContextValidate

func (m *Permission) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this permission based on context it is used

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 PingRegistry

type PingRegistry 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 ID of the registry
	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 address URL string.
	URL string `json:"url,omitempty"`
}

PingRegistry ping registry

swagger:model PingRegistry

func (*PingRegistry) ContextValidate

func (m *PingRegistry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ping registry based on context it is used

func (*PingRegistry) MarshalBinary

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

MarshalBinary interface implementation

func (*PingRegistry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PingRegistry) Validate

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

Validate validates this ping registry

type Project

type Project struct {

	// The total number of charts under this project.
	ChartCount int64 `json:"chart_count,omitempty"`

	// The creation time of the project.
	CreationTime string `json:"creation_time,omitempty"`

	// The role ID with highest permission of the current user who triggered the API (for UI)
	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 whitelist of this project.
	CveWhitelist *CVEWhitelist `json:"cve_whitelist,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 number of the repositories under this project.
	RepoCount int64 `json:"repo_count,omitempty"`

	// Correspond to the UI about whether the project's publicity is  updatable (for UI)
	Togglable bool `json:"togglable,omitempty"`

	// The update time of the project.
	UpdateTime string `json:"update_time,omitempty"`
}

Project project

swagger:model Project

func (*Project) ContextValidate

func (m *Project) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project based on the context it is used

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 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 master
	RoleID int64 `json:"role_id,omitempty"`
}

ProjectMember project member

swagger:model ProjectMember

func (*ProjectMember) ContextValidate

func (m *ProjectMember) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project member based on the context it is used

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

func (m *ProjectMemberEntity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this project member entity based on context it is used

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

	// Whether this project reuse the system level CVE whitelist as the whitelist of its own.  The valid values are "true", "false". If it is set to "true" the actual whitelist associate with this project, if any, will be ignored.
	ReuseSysCveWhitelist string `json:"reuse_sys_cve_whitelist,omitempty"`

	// If the vulnerability is high than severity defined here, the images can't be pulled. The valid values are "none", "low", "medium", "high", "critical".
	Severity string `json:"severity,omitempty"`
}

ProjectMetadata project metadata

swagger:model ProjectMetadata

func (*ProjectMetadata) ContextValidate

func (m *ProjectMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this project metadata based on context it is used

func (*ProjectMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectMetadata) Validate

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

Validate validates this project metadata

type ProjectReq

type ProjectReq struct {

	// The count quota of the project.
	CountLimit int64 `json:"count_limit,omitempty"`

	// The CVE whitelist of the project.
	CveWhitelist *CVEWhitelist `json:"cve_whitelist,omitempty"`

	// The metadata of the project.
	Metadata *ProjectMetadata `json:"metadata,omitempty"`

	// The name of the project.
	ProjectName string `json:"project_name,omitempty"`

	// The storage quota of the project.
	StorageLimit int64 `json:"storage_limit,omitempty"`
}

ProjectReq project req

swagger:model ProjectReq

func (*ProjectReq) ContextValidate

func (m *ProjectReq) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project req based on the context it is used

func (*ProjectReq) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectReq) UnmarshalBinary

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

UnmarshalBinary interface implementation

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
	UUID string `json:"uuid,omitempty"`
}

ProjectScanner project scanner

swagger:model ProjectScanner

func (*ProjectScanner) ContextValidate

func (m *ProjectScanner) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this project scanner based on context it is used

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 charts under this project.
	ChartCount int64 `json:"chart_count,omitempty"`

	// The total number of developer members.
	DeveloperCount int64 `json:"developer_count,omitempty"`

	// The total number of guest members.
	GuestCount int64 `json:"guest_count,omitempty"`

	// The total number of master members.
	MasterCount int64 `json:"master_count,omitempty"`

	// The total number of project admin members.
	ProjectAdminCount int64 `json:"project_admin_count,omitempty"`

	// quota
	Quota *ProjectSummaryQuota `json:"quota,omitempty"`

	// The number of the repositories under this project.
	RepoCount int64 `json:"repo_count,omitempty"`
}

ProjectSummary project summary

swagger:model ProjectSummary

func (*ProjectSummary) ContextValidate

func (m *ProjectSummary) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project summary based on the context it is used

func (*ProjectSummary) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectSummary) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

func (m *ProjectSummaryQuota) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project summary quota based on the context it is used

func (*ProjectSummaryQuota) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectSummaryQuota) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectSummaryQuota) Validate

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

Validate validates this project summary quota

type PutRegistry

type PutRegistry 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 address URL string.
	URL string `json:"url,omitempty"`
}

PutRegistry put registry

swagger:model PutRegistry

func (*PutRegistry) ContextValidate

func (m *PutRegistry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this put registry based on context it is used

func (*PutRegistry) MarshalBinary

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

MarshalBinary interface implementation

func (*PutRegistry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PutRegistry) Validate

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

Validate validates this put registry

type Quota

type Quota struct {

	// the creation time of the quota
	CreationTime string `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
	UpdateTime string `json:"update_time,omitempty"`

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

Quota The quota object

swagger:model Quota

func (*Quota) ContextValidate

func (m *Quota) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this quota based on the context it is used

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 QuotaSwitcher

type QuotaSwitcher struct {

	// The quota is enable or disable
	Enabled bool `json:"enabled,omitempty"`
}

QuotaSwitcher quota switcher

swagger:model QuotaSwitcher

func (*QuotaSwitcher) ContextValidate

func (m *QuotaSwitcher) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this quota switcher based on context it is used

func (*QuotaSwitcher) MarshalBinary

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

MarshalBinary interface implementation

func (*QuotaSwitcher) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*QuotaSwitcher) Validate

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

Validate validates this quota switcher

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

func (m *QuotaUpdateReq) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this quota update req based on the context it is used

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 Registry

type Registry struct {

	// The create time of the policy.
	CreationTime string `json:"creation_time,omitempty"`

	// credential
	Credential *RegistryCredential `json:"credential,omitempty"`

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

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

	// Whether or not the certificate will be verified when Harbor tries to access the server.
	Insecure bool `json:"insecure,omitempty"`

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

	// Health status of the registry.
	Status string `json:"status,omitempty"`

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

	// The update time of the policy.
	UpdateTime string `json:"update_time,omitempty"`

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

Registry registry

swagger:model Registry

func (*Registry) ContextValidate

func (m *Registry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this registry based on the context it is used

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

func (m *RegistryCredential) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this registry credential based on context it is used

func (*RegistryCredential) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryCredential) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryCredential) Validate

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

Validate validates this registry credential

type RegistryInfo

type RegistryInfo struct {

	// The description
	Description string `json:"description,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) ContextValidate

func (m *RegistryInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this registry info based on the context it is used

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 ReplicationExecution

type ReplicationExecution struct {

	// The end time
	EndTime string `json:"end_time,omitempty"`

	// The count of failed tasks
	Failed int64 `json:"failed,omitempty"`

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

	// The count of in_progress tasks
	InProgress int64 `json:"in_progress,omitempty"`

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

	// The start time
	StartTime string `json:"start_time,omitempty"`

	// The status
	Status string `json:"status,omitempty"`

	// The status text
	StatusText string `json:"status_text,omitempty"`

	// The count of stopped tasks
	Stopped int64 `json:"stopped,omitempty"`

	// The count of succeed tasks
	Succeed int64 `json:"succeed,omitempty"`

	// The total count of all tasks
	Total int64 `json:"total,omitempty"`

	// The trigger mode
	Trigger string `json:"trigger,omitempty"`
}

ReplicationExecution The replication execution

swagger:model ReplicationExecution

func (*ReplicationExecution) ContextValidate

func (m *ReplicationExecution) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this replication execution based on context it is used

func (*ReplicationExecution) MarshalBinary

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

MarshalBinary interface implementation

func (*ReplicationExecution) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ReplicationExecution) Validate

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

Validate validates this replication execution

type ReplicationFilter

type ReplicationFilter struct {

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

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

ReplicationFilter replication filter

swagger:model ReplicationFilter

func (*ReplicationFilter) ContextValidate

func (m *ReplicationFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this replication filter based on context it is used

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 {

	// The create time of the policy.
	CreationTime string `json:"creation_time,omitempty"`

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

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

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

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

	// The update time of the policy.
	UpdateTime string `json:"update_time,omitempty"`
}

ReplicationPolicy replication policy

swagger:model ReplicationPolicy

func (*ReplicationPolicy) ContextValidate

func (m *ReplicationPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this replication policy based on the context it is used

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
	DstResource string `json:"dst_resource,omitempty"`

	// The end time
	EndTime string `json:"end_time,omitempty"`

	// The execution ID
	ExecutionID int64 `json:"execution_id,omitempty"`

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

	// The job ID
	JobID string `json:"job_id,omitempty"`

	// The resource type
	ResourceType string `json:"resource_type,omitempty"`

	// The source resource
	SrcResource string `json:"src_resource,omitempty"`

	// The start time
	StartTime string `json:"start_time,omitempty"`

	// The status
	Status string `json:"status,omitempty"`
}

ReplicationTask The replication task

swagger:model ReplicationTask

func (*ReplicationTask) ContextValidate

func (m *ReplicationTask) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this replication task based on context it is used

func (*ReplicationTask) MarshalBinary

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

MarshalBinary interface implementation

func (*ReplicationTask) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ReplicationTask) Validate

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

Validate validates this replication task

type ReplicationTrigger

type ReplicationTrigger struct {

	// trigger settings
	TriggerSettings *TriggerSettings `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) ContextValidate

func (m *ReplicationTrigger) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this replication trigger based on the context it is used

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 RepoSignature

type RepoSignature struct {

	// The JSON object of the hash of the image.
	Hashes interface{} `json:"hashes,omitempty"`

	// The tag of image.
	Tag string `json:"tag,omitempty"`
}

RepoSignature repo signature

swagger:model RepoSignature

func (*RepoSignature) ContextValidate

func (m *RepoSignature) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this repo signature based on context it is used

func (*RepoSignature) MarshalBinary

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

MarshalBinary interface implementation

func (*RepoSignature) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RepoSignature) Validate

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

Validate validates this repo signature

type Report

type Report struct {

	// Time of generating this report
	// Example: 2006-01-02T15:04:05
	GeneratedAt string `json:"generated_at,omitempty"`

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

	// A standard scale for measuring the severity of a vulnerability.
	// Example: high
	Severity string `json:"severity,omitempty"`

	// vulnerabilities
	Vulnerabilities []*VulnerabilityItem `json:"vulnerabilities"`
}

Report The harbor native report format

swagger:model Report

func (*Report) ContextValidate

func (m *Report) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this report based on the context it is used

func (*Report) MarshalBinary

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

MarshalBinary interface implementation

func (*Report) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Report) Validate

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

Validate validates this report

type Repository

type Repository struct {

	// The creation time of repository.
	CreationTime string `json:"creation_time,omitempty"`

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

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

	// The label list.
	Labels []*Label `json:"labels"`

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

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

	// The pull count of repository.
	PullCount int64 `json:"pull_count,omitempty"`

	// The star count of repository.
	StarCount int64 `json:"star_count,omitempty"`

	// The tags count of repository.
	TagsCount int64 `json:"tags_count,omitempty"`

	// The update time of repository.
	UpdateTime string `json:"update_time,omitempty"`
}

Repository repository

swagger:model Repository

func (*Repository) ContextValidate

func (m *Repository) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this repository based on the context it is used

func (*Repository) MarshalBinary

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

MarshalBinary interface implementation

func (*Repository) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Repository) Validate

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

Validate validates this repository

type RepositoryDescription

type RepositoryDescription struct {

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

RepositoryDescription repository description

swagger:model RepositoryDescription

func (*RepositoryDescription) ContextValidate

func (m *RepositoryDescription) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this repository description based on context it is used

func (*RepositoryDescription) MarshalBinary

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

MarshalBinary interface implementation

func (*RepositoryDescription) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RepositoryDescription) Validate

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

Validate validates this repository description

type Resource

type Resource struct {

	// The replication policy list.
	ReplicationPolicies []*ReplicationPolicy `json:"replication_policies"`
}

Resource resource

swagger:model Resource

func (*Resource) ContextValidate

func (m *Resource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resource based on the context it is used

func (*Resource) MarshalBinary

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

MarshalBinary interface implementation

func (*Resource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Resource) Validate

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

Validate validates this resource

type ResourceList

type ResourceList map[string]int64

ResourceList resource list

swagger:model ResourceList

func (ResourceList) ContextValidate

func (m ResourceList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resource list based on context it is used

func (ResourceList) Validate

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

Validate validates this resource list

type RetagReq

type RetagReq struct {

	// If target tag already exists, whether to override it
	Override bool `json:"override,omitempty"`

	// Source image to be retagged, e.g. 'stage/app:v1.0'
	SrcImage string `json:"src_image,omitempty"`

	// new tag to be created
	Tag string `json:"tag,omitempty"`
}

RetagReq retag req

swagger:model RetagReq

func (*RetagReq) ContextValidate

func (m *RetagReq) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this retag req based on context it is used

func (*RetagReq) MarshalBinary

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

MarshalBinary interface implementation

func (*RetagReq) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetagReq) Validate

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

Validate validates this retag req

type RetentionExecution

type RetentionExecution struct {

	// dry run
	DryRun bool `json:"dry_run,omitempty"`

	// end time
	EndTime string `json:"end_time,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// policy id
	PolicyID int64 `json:"policy_id,omitempty"`

	// start time
	StartTime string `json:"start_time,omitempty"`

	// status
	Status string `json:"status,omitempty"`

	// trigger
	Trigger string `json:"trigger,omitempty"`
}

RetentionExecution retention execution

swagger:model RetentionExecution

func (*RetentionExecution) ContextValidate

func (m *RetentionExecution) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this retention execution based on context it is used

func (*RetentionExecution) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionExecution) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

	// start time
	StartTime string `json:"start_time,omitempty"`

	// status
	Status string `json:"status,omitempty"`

	// status code
	StatusCode int64 `json:"status_code,omitempty"`

	// status revision
	StatusRevision int64 `json:"status_revision,omitempty"`

	// total
	Total int64 `json:"total,omitempty"`
}

RetentionExecutionTask retention execution task

swagger:model RetentionExecutionTask

func (*RetentionExecutionTask) ContextValidate

func (m *RetentionExecutionTask) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this retention execution task based on context it is used

func (*RetentionExecutionTask) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionExecutionTask) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

func (m *RetentionMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this retention metadata based on the context it is used

func (*RetentionMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

func (m *RetentionPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this retention policy based on the context it is used

func (*RetentionPolicy) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionPolicy) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

func (m *RetentionPolicyScope) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this retention policy scope based on context it is used

func (*RetentionPolicyScope) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionPolicyScope) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

func (m *RetentionRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this retention rule based on the context it is used

func (*RetentionRule) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRule) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

func (m *RetentionRuleMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this retention rule metadata based on the context it is used

func (*RetentionRuleMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRuleMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

func (m *RetentionRuleParamMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this retention rule param metadata based on context it is used

func (*RetentionRuleParamMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRuleParamMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

func (m *RetentionRuleTrigger) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this retention rule trigger based on context it is used

func (*RetentionRuleTrigger) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRuleTrigger) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

	// kind
	Kind string `json:"kind,omitempty"`

	// pattern
	Pattern string `json:"pattern,omitempty"`
}

RetentionSelector retention selector

swagger:model RetentionSelector

func (*RetentionSelector) ContextValidate

func (m *RetentionSelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this retention selector based on context it is used

func (*RetentionSelector) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionSelector) UnmarshalBinary

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

UnmarshalBinary interface implementation

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

func (m *RetentionSelectorMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this retention selector metadata based on context it is used

func (*RetentionSelectorMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionSelectorMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionSelectorMetadata) Validate

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

Validate validates this retention selector metadata

type RobotAccount

type RobotAccount struct {

	// The creation time of the robot account
	CreationTime string `json:"creation_time,omitempty"`

	// The description of robot account
	Description string `json:"description,omitempty"`

	// The robot account is disable or enable
	Disabled bool `json:"disabled,omitempty"`

	// The expiration of robot account (in seconds)
	ExpiresAt int64 `json:"expires_at,omitempty"`

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

	// The name of robot account
	Name string `json:"name,omitempty"`

	// The project id of robot account
	ProjectID int64 `json:"project_id,omitempty"`

	// The update time of the robot account
	UpdateTime string `json:"update_time,omitempty"`
}

RobotAccount The object of robot account

swagger:model RobotAccount

func (*RobotAccount) ContextValidate

func (m *RobotAccount) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this robot account based on context it is used

func (*RobotAccount) MarshalBinary

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

MarshalBinary interface implementation

func (*RobotAccount) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RobotAccount) Validate

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

Validate validates this robot account

type RobotAccountAccess

type RobotAccountAccess struct {

	// the action to resource that perdefined in harbor rbac
	Action string `json:"action,omitempty"`

	// the resource of harbor
	Resource string `json:"resource,omitempty"`
}

RobotAccountAccess robot account access

swagger:model RobotAccountAccess

func (*RobotAccountAccess) ContextValidate

func (m *RobotAccountAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this robot account access based on context it is used

func (*RobotAccountAccess) MarshalBinary

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

MarshalBinary interface implementation

func (*RobotAccountAccess) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RobotAccountAccess) Validate

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

Validate validates this robot account access

type RobotAccountCreate

type RobotAccountCreate struct {

	// The permission of robot account
	Access []*RobotAccountAccess `json:"access"`

	// The description of robot account
	Description string `json:"description,omitempty"`

	// The name of robot account
	Name string `json:"name,omitempty"`
}

RobotAccountCreate robot account create

swagger:model RobotAccountCreate

func (*RobotAccountCreate) ContextValidate

func (m *RobotAccountCreate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this robot account create based on the context it is used

func (*RobotAccountCreate) MarshalBinary

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

MarshalBinary interface implementation

func (*RobotAccountCreate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RobotAccountCreate) Validate

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

Validate validates this robot account create

type RobotAccountPostRep

type RobotAccountPostRep struct {

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

	// the token of robot account
	Token string `json:"token,omitempty"`
}

RobotAccountPostRep robot account post rep

swagger:model RobotAccountPostRep

func (*RobotAccountPostRep) ContextValidate

func (m *RobotAccountPostRep) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this robot account post rep based on context it is used

func (*RobotAccountPostRep) MarshalBinary

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

MarshalBinary interface implementation

func (*RobotAccountPostRep) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RobotAccountPostRep) Validate

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

Validate validates this robot account post rep

type RobotAccountUpdate

type RobotAccountUpdate struct {

	// The robot account is disable or enable
	Disabled bool `json:"disabled,omitempty"`
}

RobotAccountUpdate robot account update

swagger:model RobotAccountUpdate

func (*RobotAccountUpdate) ContextValidate

func (m *RobotAccountUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this robot account update based on context it is used

func (*RobotAccountUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*RobotAccountUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RobotAccountUpdate) Validate

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

Validate validates this robot account update

type Role

type Role struct {

	// Description of permissions for the role.
	RoleCode string `json:"role_code,omitempty"`

	// ID in table.
	RoleID int32 `json:"role_id,omitempty"`

	// role mask
	RoleMask string `json:"role_mask,omitempty"`

	// Name the the role.
	RoleName string `json:"role_name,omitempty"`
}

Role role

swagger:model Role

func (*Role) ContextValidate

func (m *Role) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this role based on context it is used

func (*Role) MarshalBinary

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

MarshalBinary interface implementation

func (*Role) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Role) Validate

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

Validate validates this role

type RoleParam

type RoleParam struct {

	// Role ID for updating project role member.
	Roles []int32 `json:"roles"`

	// Username relevant to a project role member.
	Username string `json:"username,omitempty"`
}

RoleParam role param

swagger:model RoleParam

func (*RoleParam) ContextValidate

func (m *RoleParam) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this role param based on context it is used

func (*RoleParam) MarshalBinary

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

MarshalBinary interface implementation

func (*RoleParam) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RoleParam) Validate

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

Validate validates this role param

type RoleRequest

type RoleRequest struct {

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

RoleRequest role request

swagger:model RoleRequest

func (*RoleRequest) ContextValidate

func (m *RoleRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this role request based on context it is used

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 ScanOverview

type ScanOverview map[string]NativeReportSummary

ScanOverview The scan overview attached in the metadata of tag

swagger:model ScanOverview

func (ScanOverview) ContextValidate

func (m ScanOverview) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this scan overview based on the context it is used

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
	// Example: Clair
	Name string `json:"name,omitempty"`

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

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

Scanner scanner

swagger:model Scanner

func (*Scanner) ContextValidate

func (m *Scanner) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this scanner based on context it is used

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

	// name
	Name *Scanner `json:"name,omitempty"`

	// properties
	// Example: {"harbor.scanner-adapter/registry-authorization-type":"Bearer"}
	Properties map[string]string `json:"properties,omitempty"`
}

ScannerAdapterMetadata The metadata info of the scanner adapter

swagger:model ScannerAdapterMetadata

func (*ScannerAdapterMetadata) ContextValidate

func (m *ScannerAdapterMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this scanner adapter metadata based on the context it is used

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

func (m *ScannerCapability) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this scanner capability based on context it is used

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.
	//
	// Example: Bearer: JWTTOKENGOESHERE
	AccessCredential string `json:"access_credential,omitempty"`

	// Optional property to describe the name of the scanner registration
	// Example: Clair
	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"
	//
	// Example: Bearer
	Auth string `json:"auth,omitempty"`

	// An optional description of this registration.
	// Example: A free-to-use tool that scans container images for package vulnerabilities.\n
	Description string `json:"description,omitempty"`

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

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

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

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

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

	// A base URL of the scanner adapter
	// Example: http://harbor-scanner-clair:8080
	URL string `json:"url,omitempty"`

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

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

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

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

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

swagger:model ScannerRegistration

func (*ScannerRegistration) ContextValidate

func (m *ScannerRegistration) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this scanner registration based on context it is used

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.
	//
	// Example: Bearer: JWTTOKENGOESHERE
	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"
	//
	// Example: Bearer
	Auth string `json:"auth,omitempty"`

	// An optional description of this registration.
	// Example: A free-to-use tool that scans container images for package vulnerabilities.\n
	Description string `json:"description,omitempty"`

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

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

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

	// A base URL of the scanner adapter.
	// Example: http://harbor-scanner-clair:8080
	URL string `json:"url,omitempty"`

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

func (m *ScannerRegistrationReq) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this scanner registration req based on context it is used

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.
	//
	// Example: Bearer: JWTTOKENGOESHERE
	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
	// Example: Clair
	Name string `json:"name,omitempty"`

	// A base URL of the scanner adapter.
	// Example: http://harbor-scanner-clair:8080
	URL string `json:"url,omitempty"`
}

ScannerRegistrationSettings scanner registration settings

swagger:model ScannerRegistrationSettings

func (*ScannerRegistrationSettings) ContextValidate

func (m *ScannerRegistrationSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this scanner registration settings based on context it is used

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 Search struct {

	// Search results of the charts that macthed the filter keywords.
	Chart []*SearchResult `json:"chart"`

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

func (m *Search) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search based on the context it is used

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

	// The count of tags in the repository
	TagsCount int64 `json:"tags_count,omitempty"`
}

SearchRepository search repository

swagger:model SearchRepository

func (*SearchRepository) ContextValidate

func (m *SearchRepository) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this search repository based on context it is used

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 SearchResult

type SearchResult struct {

	// chart
	Chart *ChartVersion `json:"chart,omitempty"`

	// The chart name with repo name
	Name string `json:"name,omitempty"`

	// The matched level
	Score int64 `json:"score,omitempty"`
}

SearchResult The chart search result item

swagger:model SearchResult

func (*SearchResult) ContextValidate

func (m *SearchResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search result based on the context it is used

func (*SearchResult) MarshalBinary

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

MarshalBinary interface implementation

func (*SearchResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SearchResult) Validate

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

Validate validates this search result

type SecurityReport

type SecurityReport struct {

	// signature
	Signature *DigitalSignature `json:"signature,omitempty"`
}

SecurityReport The security information of the chart

swagger:model SecurityReport

func (*SecurityReport) ContextValidate

func (m *SecurityReport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this security report based on the context it is used

func (*SecurityReport) MarshalBinary

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

MarshalBinary interface implementation

func (*SecurityReport) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SecurityReport) Validate

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

Validate validates this security report

type StatisticMap

type StatisticMap struct {

	// The count of the private projects which the user is a member of.
	PrivateProjectCount int32 `json:"private_project_count,omitempty"`

	// The count of the private repositories belonging to the projects which the user is a member of.
	PrivateRepoCount int32 `json:"private_repo_count,omitempty"`

	// The count of the public projects.
	PublicProjectCount int32 `json:"public_project_count,omitempty"`

	// The count of the public repositories belonging to the public projects which the user is a member of.
	PublicRepoCount int32 `json:"public_repo_count,omitempty"`

	// The count of the total projects, only be seen when the is admin.
	TotalProjectCount int32 `json:"total_project_count,omitempty"`

	// The count of the total repositories, only be seen when the user is admin.
	TotalRepoCount int32 `json:"total_repo_count,omitempty"`
}

StatisticMap statistic map

swagger:model StatisticMap

func (*StatisticMap) ContextValidate

func (m *StatisticMap) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this statistic map based on context it is used

func (*StatisticMap) MarshalBinary

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

MarshalBinary interface implementation

func (*StatisticMap) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StatisticMap) Validate

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

Validate validates this statistic map

type Stats

type Stats struct {

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

	// The metrics data for the each status
	// Example: {"Error":"2,","Running":3,"Success":5}
	Metrics map[string]int64 `json:"metrics,omitempty"`

	// The requester identity which usually uses the ID of the scan all job
	// Example: 28
	Requester string `json:"requester,omitempty"`

	// The total number of scan processes triggered by the scan all action
	// Example: 100
	Total int64 `json:"total,omitempty"`
}

Stats Stats provides the overall progress of the scan all process.

swagger:model Stats

func (*Stats) ContextValidate

func (m *Stats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stats based on context it is used

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 int64 `json:"free,omitempty"`

	// Total volume size.
	Total int64 `json:"total,omitempty"`
}

Storage storage

swagger:model Storage

func (*Storage) ContextValidate

func (m *Storage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this storage based on context it is used

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

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

StringConfigItem string config item

swagger:model StringConfigItem

func (*StringConfigItem) ContextValidate

func (m *StringConfigItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this string config item based on context it is used

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 SystemInfo

type SystemInfo struct {

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

SystemInfo system info

swagger:model SystemInfo

func (*SystemInfo) ContextValidate

func (m *SystemInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this system info based on the context it is used

func (*SystemInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*SystemInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SystemInfo) Validate

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

Validate validates this system info

type Tags

type Tags struct {

	// The repository's used tag.
	Tag string `json:"tag,omitempty"`
}

Tags tags

swagger:model Tags

func (*Tags) ContextValidate

func (m *Tags) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this tags based on context it is used

func (*Tags) MarshalBinary

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

MarshalBinary interface implementation

func (*Tags) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Tags) Validate

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

Validate validates this tags

type TriggerSettings

type TriggerSettings struct {

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

TriggerSettings trigger settings

swagger:model TriggerSettings

func (*TriggerSettings) ContextValidate

func (m *TriggerSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this trigger settings based on context it is used

func (*TriggerSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*TriggerSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TriggerSettings) Validate

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

Validate validates this trigger settings

type UnauthorizedChartAPIError

type UnauthorizedChartAPIError struct {
	ChartAPIError
}

UnauthorizedChartAPIError Unauthorized

swagger:model UnauthorizedChartAPIError

func (*UnauthorizedChartAPIError) ContextValidate

func (m *UnauthorizedChartAPIError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this unauthorized chart API error based on the context it is used

func (*UnauthorizedChartAPIError) MarshalBinary

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

MarshalBinary interface implementation

func (UnauthorizedChartAPIError) MarshalJSON

func (m UnauthorizedChartAPIError) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*UnauthorizedChartAPIError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UnauthorizedChartAPIError) UnmarshalJSON

func (m *UnauthorizedChartAPIError) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*UnauthorizedChartAPIError) Validate

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

Validate validates this unauthorized chart API error

type User

type User struct {

	// salt
	Salt string `json:"Salt,omitempty"`

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

	// creation time
	CreationTime string `json:"creation_time,omitempty"`

	// deleted
	Deleted bool `json:"deleted,omitempty"`

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

	// has admin role
	HasAdminRole bool `json:"has_admin_role,omitempty"`

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

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

	// reset uuid
	ResetUUID string `json:"reset_uuid,omitempty"`

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

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

	// update time
	UpdateTime string `json:"update_time,omitempty"`

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

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

User user

swagger:model User

func (*User) ContextValidate

func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user based on context it is used

func (*User) MarshalBinary

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

MarshalBinary interface implementation

func (*User) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*User) Validate

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

Validate validates this user

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

func (m *UserEntity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user entity based on context it is used

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.
	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) ContextValidate

func (m *UserGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user group based on context it is used

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 UserProfile

type UserProfile struct {

	// The new comment.
	Comment string `json:"comment,omitempty"`

	// The new email.
	Email string `json:"email,omitempty"`

	// The new realname.
	Realname string `json:"realname,omitempty"`
}

UserProfile user profile

swagger:model UserProfile

func (*UserProfile) ContextValidate

func (m *UserProfile) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user profile based on context it is used

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

func (m *UserSearch) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this user search based on context it is used

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 VulnNamespaceTimestamp

type VulnNamespaceTimestamp struct {

	// The UTC timestamp in miliseconds of last successful update for vulnerability data.
	LastUpdate int64 `json:"last_update,omitempty"`

	// The namespace of the Vulnerability
	Namespace string `json:"namespace,omitempty"`
}

VulnNamespaceTimestamp vuln namespace timestamp

swagger:model VulnNamespaceTimestamp

func (*VulnNamespaceTimestamp) ContextValidate

func (m *VulnNamespaceTimestamp) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this vuln namespace timestamp based on context it is used

func (*VulnNamespaceTimestamp) MarshalBinary

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

MarshalBinary interface implementation

func (*VulnNamespaceTimestamp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VulnNamespaceTimestamp) Validate

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

Validate validates this vuln namespace timestamp

type VulnerabilityItem

type VulnerabilityItem struct {

	// Description of the CVE
	// Example: dpkg-source in dpkg 1.3.0 through 1.18.23 is able to use a non-GNU patch program
	Description string `json:"description,omitempty"`

	// The version of the package containing the fix if available.
	// Example: 1.18.0
	FixVersion string `json:"fix_version,omitempty"`

	// ID of the CVE.
	// Example: CVE-2017-8283
	ID string `json:"id,omitempty"`

	// The list of link to the upstream database with the full description of the vulnerability.
	Links []string `json:"links"`

	// An operating system or software dependency package containing the vulnerability.
	// Example: dpkg
	Package string `json:"package,omitempty"`

	// A standard scale for measuring the severity of a vulnerability.
	// Example: high
	Severity string `json:"severity,omitempty"`

	// The version of the package containing the vulnerability.
	// Example: 1.17.27
	Version string `json:"version,omitempty"`
}

VulnerabilityItem vulnerability item

swagger:model VulnerabilityItem

func (*VulnerabilityItem) ContextValidate

func (m *VulnerabilityItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this vulnerability item based on context it is used

func (*VulnerabilityItem) MarshalBinary

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

MarshalBinary interface implementation

func (*VulnerabilityItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VulnerabilityItem) Validate

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

Validate validates this vulnerability item

type VulnerabilitySummary

type VulnerabilitySummary struct {

	// The number of the fixable vulnerabilities
	// Example: 100
	Fixable int64 `json:"fixable,omitempty"`

	// Numbers of the vulnerabilities with different severity
	// Example: {"Critical":5,"High":5}
	Summary map[string]int64 `json:"summary,omitempty"`

	// The total number of the found vulnerabilities
	// Example: 500
	Total int64 `json:"total,omitempty"`
}

VulnerabilitySummary VulnerabilitySummary contains the total number of the foun d vulnerabilities number and numbers of each severity level.

swagger:model VulnerabilitySummary

func (*VulnerabilitySummary) ContextValidate

func (m *VulnerabilitySummary) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this vulnerability summary based on context it is used

func (*VulnerabilitySummary) MarshalBinary

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

MarshalBinary interface implementation

func (*VulnerabilitySummary) UnmarshalBinary

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

UnmarshalBinary interface implementation

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.
	CreationTime string `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.
	UpdateTime string `json:"update_time,omitempty"`
}

WebhookJob The webhook job.

swagger:model WebhookJob

func (*WebhookJob) ContextValidate

func (m *WebhookJob) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this webhook job based on context it is used

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.
	CreationTime string `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.
	LastTriggerTime string `json:"last_trigger_time,omitempty"`
}

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

swagger:model WebhookLastTrigger

func (*WebhookLastTrigger) ContextValidate

func (m *WebhookLastTrigger) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this webhook last trigger based on context it is used

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.
	CreationTime string `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,omitempty"`

	// 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.
	UpdateTime string `json:"update_time,omitempty"`
}

WebhookPolicy The webhook policy object

swagger:model WebhookPolicy

func (*WebhookPolicy) ContextValidate

func (m *WebhookPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this webhook policy based on the context it is used

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

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

func (m *WebhookTargetObject) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this webhook target object based on context it is used

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

Source Files

Jump to

Keyboard shortcuts

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