legacy

package
v2.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminJobSchedule

type AdminJobSchedule struct {

	// The parameters of admin job
	Parameters map[string]bool `json:"parameters,omitempty"`

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

AdminJobSchedule admin job schedule

swagger:model AdminJobSchedule

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

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

MarshalBinary interface implementation

func (*ConfigurationsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigurationsResponse) Validate

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

Validate validates this configurations response

type ConfigurationsResponseScanAllPolicy

type ConfigurationsResponseScanAllPolicy struct {

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

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

ConfigurationsResponseScanAllPolicy configurations response scan all policy

swagger:model ConfigurationsResponseScanAllPolicy

func (*ConfigurationsResponseScanAllPolicy) MarshalBinary

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

MarshalBinary interface implementation

func (*ConfigurationsResponseScanAllPolicy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigurationsResponseScanAllPolicy) Validate

Validate validates this configurations response scan all policy

type ConfigurationsResponseScanAllPolicyParameter

type ConfigurationsResponseScanAllPolicyParameter struct {

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

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

swagger:model ConfigurationsResponseScanAllPolicyParameter

func (*ConfigurationsResponseScanAllPolicyParameter) MarshalBinary

MarshalBinary interface implementation

func (*ConfigurationsResponseScanAllPolicyParameter) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ConfigurationsResponseScanAllPolicyParameter) Validate

Validate validates this configurations response scan all policy parameter

type 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) 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) 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) 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 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) 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 EventType

type EventType string

EventType Webhook supportted event type.

swagger:model EventType

func (EventType) Validate

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

Validate validates this event type

type FilterStyle

type FilterStyle struct {

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

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

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

FilterStyle The style of the resource filter

swagger:model FilterStyle

func (*FilterStyle) MarshalBinary

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

MarshalBinary interface implementation

func (*FilterStyle) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FilterStyle) Validate

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

Validate validates this filter style

type ForbiddenChartAPIError

type ForbiddenChartAPIError struct {
	ChartAPIError
}

ForbiddenChartAPIError Operation is forbidden or quota exceeded

swagger:model ForbiddenChartAPIError

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 job parameters of gc job.
	JobParameters string `json:"job_parameters,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) 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 auth mode of current Harbor instance.
	AuthMode string `json:"auth_mode,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"`

	// 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 nested chartmuseum.
	WithChartmuseum bool `json:"with_chartmuseum,omitempty"`

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

GeneralInfo general info

swagger:model GeneralInfo

func (*GeneralInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*GeneralInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GeneralInfo) Validate

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

Validate validates this general info

type 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) 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) 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) 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) 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) 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 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) 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) 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) 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) 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) 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) 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 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) 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 NotFoundChartAPIError

type NotFoundChartAPIError struct {
	ChartAPIError
}

NotFoundChartAPIError Not found

swagger:model NotFoundChartAPIError

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 NotifyType

type NotifyType string

NotifyType Webhook supportted notify type.

swagger:model NotifyType

func (NotifyType) Validate

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

Validate validates this notify type

type OverallHealthStatus

type OverallHealthStatus struct {

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

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

OverallHealthStatus The system health status

swagger:model OverallHealthStatus

func (*OverallHealthStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*OverallHealthStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OverallHealthStatus) Validate

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

Validate validates this overall health status

type 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) 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) 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) 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).  This attribute is deprecated and will be removed in future versions.
	CurrentUserRoleID int64 `json:"current_user_role_id,omitempty"`

	// The list of role ID of the current user who triggered the API (for UI)
	CurrentUserRoleIds []int32 `json:"current_user_role_ids"`

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

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

MarshalBinary interface implementation

func (*ProjectMember) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectMember) Validate

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

Validate validates this project member

type ProjectMemberEntity

type ProjectMemberEntity struct {

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

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

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

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

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

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

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

ProjectMemberEntity project member entity

swagger:model ProjectMemberEntity

func (*ProjectMemberEntity) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectMemberEntity) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectMemberEntity) Validate

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

Validate validates this project member entity

type ProjectMetadata

type ProjectMetadata struct {

	// Whether scan images automatically when pushing. The valid values are "true", "false".
	AutoScan string `json:"auto_scan,omitempty"`

	// Whether content trust is enabled or not. If it is enabled, user can't pull unsigned images from this project. The valid values are "true", "false".
	EnableContentTrust string `json:"enable_content_trust,omitempty"`

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

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

MarshalBinary interface implementation

func (*ProjectSummary) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectSummary) Validate

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

Validate validates this project summary

type ProjectSummaryQuota

type ProjectSummaryQuota struct {

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

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

ProjectSummaryQuota project summary quota

swagger:model ProjectSummaryQuota

func (*ProjectSummaryQuota) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectSummaryQuota) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectSummaryQuota) Validate

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

Validate validates this project summary quota

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

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

MarshalBinary interface implementation

func (*Registry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Registry) Validate

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

Validate validates this registry

type RegistryCredential

type RegistryCredential struct {

	// Access key, e.g. user name when credential type is 'basic'.
	AccessKey string `json:"access_key,omitempty"`

	// Access secret, e.g. password when credential type is 'basic'.
	AccessSecret string `json:"access_secret,omitempty"`

	// Credential type, such as 'basic', 'oauth'.
	Type string `json:"type,omitempty"`
}

RegistryCredential registry credential

swagger:model RegistryCredential

func (*RegistryCredential) MarshalBinary

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

MarshalBinary interface implementation

func (*RegistryCredential) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RegistryCredential) Validate

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

Validate validates this registry credential

type 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) 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) 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) 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) 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) 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) 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 ResourceList

type ResourceList map[string]int64

ResourceList resource list

swagger:model ResourceList

func (ResourceList) Validate

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

Validate validates this resource list

type RetentionExecution

type RetentionExecution struct {

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

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

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

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

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

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

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

RetentionExecution retention execution

swagger:model RetentionExecution

func (*RetentionExecution) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionExecution) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionExecution) Validate

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

Validate validates this retention execution

type RetentionExecutionTask

type RetentionExecutionTask struct {

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

	// execution id
	ExecutionID int64 `json:"execution_id,omitempty"`

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

	// job id
	JobID string `json:"job_id,omitempty"`

	// repository
	Repository string `json:"repository,omitempty"`

	// retained
	Retained int64 `json:"retained,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) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionExecutionTask) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionExecutionTask) Validate

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

Validate validates this retention execution task

type RetentionMetadata

type RetentionMetadata struct {

	// supported scope selectors
	ScopeSelectors []*RetentionSelectorMetadata `json:"scope_selectors"`

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

	// templates
	Templates []*RetentionRuleMetadata `json:"templates"`
}

RetentionMetadata the tag retention metadata

swagger:model RetentionMetadata

func (*RetentionMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionMetadata) Validate

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

Validate validates this retention metadata

type RetentionPolicy

type RetentionPolicy struct {

	// algorithm
	Algorithm string `json:"algorithm,omitempty"`

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

	// rules
	Rules []*RetentionRule `json:"rules"`

	// scope
	Scope *RetentionPolicyScope `json:"scope,omitempty"`

	// trigger
	Trigger *RetentionRuleTrigger `json:"trigger,omitempty"`
}

RetentionPolicy retention policy

swagger:model RetentionPolicy

func (*RetentionPolicy) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionPolicy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionPolicy) Validate

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

Validate validates this retention policy

type RetentionPolicyScope

type RetentionPolicyScope struct {

	// level
	Level string `json:"level,omitempty"`

	// ref
	Ref int64 `json:"ref,omitempty"`
}

RetentionPolicyScope retention policy scope

swagger:model RetentionPolicyScope

func (*RetentionPolicyScope) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionPolicyScope) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionPolicyScope) Validate

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

Validate validates this retention policy scope

type RetentionRule

type RetentionRule struct {

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

	// disabled
	Disabled bool `json:"disabled,omitempty"`

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

	// params
	Params map[string]interface{} `json:"params,omitempty"`

	// priority
	Priority int64 `json:"priority,omitempty"`

	// scope selectors
	ScopeSelectors map[string][]RetentionSelector `json:"scope_selectors,omitempty"`

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

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

RetentionRule retention rule

swagger:model RetentionRule

func (*RetentionRule) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRule) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionRule) Validate

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

Validate validates this retention rule

type RetentionRuleMetadata

type RetentionRuleMetadata struct {

	// rule action
	Action string `json:"action,omitempty"`

	// rule display text
	DisplayText string `json:"display_text,omitempty"`

	// rule params
	Params []*RetentionRuleParamMetadata `json:"params"`

	// rule id
	RuleTemplate string `json:"rule_template,omitempty"`
}

RetentionRuleMetadata the tag retention rule metadata

swagger:model RetentionRuleMetadata

func (*RetentionRuleMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRuleMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionRuleMetadata) Validate

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

Validate validates this retention rule metadata

type RetentionRuleParamMetadata

type RetentionRuleParamMetadata struct {

	// required
	Required bool `json:"required,omitempty"`

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

	// unit
	Unit string `json:"unit,omitempty"`
}

RetentionRuleParamMetadata rule param

swagger:model RetentionRuleParamMetadata

func (*RetentionRuleParamMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRuleParamMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionRuleParamMetadata) Validate

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

Validate validates this retention rule param metadata

type RetentionRuleTrigger

type RetentionRuleTrigger struct {

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

	// references
	References interface{} `json:"references,omitempty"`

	// settings
	Settings interface{} `json:"settings,omitempty"`
}

RetentionRuleTrigger retention rule trigger

swagger:model RetentionRuleTrigger

func (*RetentionRuleTrigger) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionRuleTrigger) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionRuleTrigger) Validate

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

Validate validates this retention rule trigger

type RetentionSelector

type RetentionSelector struct {

	// decoration
	Decoration string `json:"decoration,omitempty"`

	// extras
	Extras string `json:"extras,omitempty"`

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

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

RetentionSelector retention selector

swagger:model RetentionSelector

func (*RetentionSelector) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionSelector) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionSelector) Validate

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

Validate validates this retention selector

type RetentionSelectorMetadata

type RetentionSelectorMetadata struct {

	// decorations
	Decorations []string `json:"decorations"`

	// display text
	DisplayText string `json:"display_text,omitempty"`

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

RetentionSelectorMetadata retention selector

swagger:model RetentionSelectorMetadata

func (*RetentionSelectorMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*RetentionSelectorMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RetentionSelectorMetadata) Validate

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

Validate validates this retention selector metadata

type 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) 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) 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 expiration time on or after which the JWT MUST NOT be accepted for processing.
	ExpiresAt int64 `json:"expires_at,omitempty"`

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

RobotAccountCreate robot account create

swagger:model RobotAccountCreate

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

type Scanner struct {

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

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

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

Scanner scanner

swagger:model Scanner

func (*Scanner) MarshalBinary

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

MarshalBinary interface implementation

func (*Scanner) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Scanner) Validate

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

Validate validates this scanner

type ScannerAdapterMetadata

type ScannerAdapterMetadata struct {

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

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

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

ScannerAdapterMetadata The metadata info of the scanner adapter

swagger:model ScannerAdapterMetadata

func (*ScannerAdapterMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*ScannerAdapterMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScannerAdapterMetadata) Validate

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

Validate validates this scanner adapter metadata

type ScannerCapability

type ScannerCapability struct {

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

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

ScannerCapability scanner capability

swagger:model ScannerCapability

func (*ScannerCapability) MarshalBinary

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

MarshalBinary interface implementation

func (*ScannerCapability) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScannerCapability) Validate

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

Validate validates this scanner capability

type ScannerRegistration

type ScannerRegistration struct {

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

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

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

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

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

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

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

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

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

	// A base URL of the scanner adapter
	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
	Vendor string `json:"vendor,omitempty"`

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

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

swagger:model ScannerRegistration

func (*ScannerRegistration) MarshalBinary

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

MarshalBinary interface implementation

func (*ScannerRegistration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScannerRegistration) Validate

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

Validate validates this scanner registration

type ScannerRegistrationReq

type ScannerRegistrationReq struct {

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

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

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

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

	// The name of this registration
	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.
	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) MarshalBinary

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

MarshalBinary interface implementation

func (*ScannerRegistrationReq) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScannerRegistrationReq) Validate

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

Validate validates this scanner registration req

type ScannerRegistrationSettings

type ScannerRegistrationSettings struct {

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

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

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

	// A base URL of the scanner adapter.
	URL string `json:"url,omitempty"`
}

ScannerRegistrationSettings scanner registration settings

swagger:model ScannerRegistrationSettings

func (*ScannerRegistrationSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*ScannerRegistrationSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ScannerRegistrationSettings) Validate

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

Validate validates this scanner registration settings

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

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

MarshalBinary interface implementation

func (*Search) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Search) Validate

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

Validate validates this search

type SearchRepository

type SearchRepository struct {

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

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

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

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

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

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

SearchRepository search repository

swagger:model SearchRepository

func (*SearchRepository) MarshalBinary

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

MarshalBinary interface implementation

func (*SearchRepository) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SearchRepository) Validate

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

Validate validates this search repository

type 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) 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 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) 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
	Completed int64 `json:"completed,omitempty"`

	// The metrics data for the each status
	Metrics map[string]int64 `json:"metrics,omitempty"`

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

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

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

swagger:model Stats

func (*Stats) MarshalBinary

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

MarshalBinary interface implementation

func (*Stats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Stats) Validate

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

Validate validates this stats

type Storage

type Storage struct {

	// Free volume size.
	Free int64 `json:"free,omitempty"`

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

Storage storage

swagger:model Storage

func (*Storage) MarshalBinary

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

MarshalBinary interface implementation

func (*Storage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Storage) Validate

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

Validate validates this storage

type StringConfigItem

type StringConfigItem struct {

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

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

StringConfigItem string config item

swagger:model StringConfigItem

func (*StringConfigItem) MarshalBinary

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

MarshalBinary interface implementation

func (*StringConfigItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StringConfigItem) Validate

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

Validate validates this string config item

type SupportedWebhookEventTypes

type SupportedWebhookEventTypes struct {

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

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

SupportedWebhookEventTypes Supportted webhook event types and notify types.

swagger:model SupportedWebhookEventTypes

func (*SupportedWebhookEventTypes) MarshalBinary

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

MarshalBinary interface implementation

func (*SupportedWebhookEventTypes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SupportedWebhookEventTypes) Validate

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

Validate validates this supported webhook event types

type SysAdminFlag

type SysAdminFlag struct {

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

SysAdminFlag sys admin flag

swagger:model SysAdminFlag

func (*SysAdminFlag) MarshalBinary

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

MarshalBinary interface implementation

func (*SysAdminFlag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SysAdminFlag) Validate

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

Validate validates this sys admin flag

type SystemInfo

type SystemInfo struct {

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

SystemInfo system info

swagger:model SystemInfo

func (*SystemInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*SystemInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SystemInfo) Validate

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

Validate validates this system info

type TriggerSettings

type TriggerSettings struct {

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

TriggerSettings trigger settings

swagger:model TriggerSettings

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

	// indicate the admin privilege is grant by authenticator (LDAP), is always false unless it is the current login user
	AdminRoleInAuth bool `json:"admin_role_in_auth,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"`

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

	// sysadmin flag
	SysadminFlag bool `json:"sysadmin_flag,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) 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) 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) 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) 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) 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 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) 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) 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) 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) 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