Documentation ¶
Index ¶
- type AccessLog
- type AdminJobSchedule
- type AdminJobScheduleObj
- type BadRequestFormatedError
- func (m *BadRequestFormatedError) MarshalBinary() ([]byte, error)
- func (m BadRequestFormatedError) MarshalJSON() ([]byte, error)
- func (m *BadRequestFormatedError) UnmarshalBinary(b []byte) error
- func (m *BadRequestFormatedError) UnmarshalJSON(raw []byte) error
- func (m *BadRequestFormatedError) Validate(formats strfmt.Registry) error
- type BoolConfigItem
- type CVEWhitelist
- type CVEWhitelistItem
- type ChartAPIError
- type ChartInfoEntry
- type ChartInfoList
- type ChartMetadata
- type ChartVersion
- type ChartVersionDetails
- type ChartVersions
- type ComponentHealthStatus
- type ComponentOverviewEntry
- type Configurations
- type ConfigurationsResponse
- type ConfigurationsResponseScanAllPolicy
- type ConfigurationsResponseScanAllPolicyParameter
- type ConfigurationsScanAllPolicy
- type ConfigurationsScanAllPolicyParameter
- type ConflictFormatedError
- func (m *ConflictFormatedError) MarshalBinary() ([]byte, error)
- func (m ConflictFormatedError) MarshalJSON() ([]byte, error)
- func (m *ConflictFormatedError) UnmarshalBinary(b []byte) error
- func (m *ConflictFormatedError) UnmarshalJSON(raw []byte) error
- func (m *ConflictFormatedError) Validate(formats strfmt.Registry) error
- type Dependency
- type DetailedTag
- type DigitalSignature
- type EmailServerSetting
- type FilterStyle
- type ForbiddenChartAPIError
- func (m *ForbiddenChartAPIError) MarshalBinary() ([]byte, error)
- func (m ForbiddenChartAPIError) MarshalJSON() ([]byte, error)
- func (m *ForbiddenChartAPIError) UnmarshalBinary(b []byte) error
- func (m *ForbiddenChartAPIError) UnmarshalJSON(raw []byte) error
- func (m *ForbiddenChartAPIError) Validate(formats strfmt.Registry) error
- type GCResult
- type GeneralInfo
- type GeneralInfoClairVulnerabilityStatus
- type HasAdminRole
- type ImmutableTagRule
- type InsufficientStorageChartAPIError
- func (m *InsufficientStorageChartAPIError) MarshalBinary() ([]byte, error)
- func (m InsufficientStorageChartAPIError) MarshalJSON() ([]byte, error)
- func (m *InsufficientStorageChartAPIError) UnmarshalBinary(b []byte) error
- func (m *InsufficientStorageChartAPIError) UnmarshalJSON(raw []byte) error
- func (m *InsufficientStorageChartAPIError) Validate(formats strfmt.Registry) error
- type IntegerConfigItem
- type InternalChartAPIError
- func (m *InternalChartAPIError) MarshalBinary() ([]byte, error)
- func (m InternalChartAPIError) MarshalJSON() ([]byte, error)
- func (m *InternalChartAPIError) UnmarshalBinary(b []byte) error
- func (m *InternalChartAPIError) UnmarshalJSON(raw []byte) error
- func (m *InternalChartAPIError) Validate(formats strfmt.Registry) error
- type IsDefault
- type JobStatus
- type Label
- type Labels
- type LdapConf
- type LdapFailedImportUsers
- type LdapImportUsers
- type LdapUsers
- type Manifest
- type Namespace
- type NativeReportSummary
- type NotFoundChartAPIError
- func (m *NotFoundChartAPIError) MarshalBinary() ([]byte, error)
- func (m NotFoundChartAPIError) MarshalJSON() ([]byte, error)
- func (m *NotFoundChartAPIError) UnmarshalBinary(b []byte) error
- func (m *NotFoundChartAPIError) UnmarshalJSON(raw []byte) error
- func (m *NotFoundChartAPIError) Validate(formats strfmt.Registry) error
- type OverallHealthStatus
- type Password
- type Permission
- type PingRegistry
- type Project
- type ProjectMember
- type ProjectMemberEntity
- type ProjectMetadata
- type ProjectReq
- type ProjectScanner
- type ProjectSummary
- type ProjectSummaryQuota
- type PutRegistry
- type Quota
- type QuotaRefObject
- type QuotaSwitcher
- type QuotaUpdateReq
- type Registry
- type RegistryCredential
- type RegistryInfo
- type ReplicationExecution
- type ReplicationFilter
- type ReplicationPolicy
- type ReplicationTask
- type ReplicationTrigger
- type RepoSignature
- type Report
- type Repository
- type RepositoryDescription
- type Resource
- type ResourceList
- type RetagReq
- type RetentionExecution
- type RetentionExecutionTask
- type RetentionMetadata
- type RetentionPolicy
- type RetentionPolicyScope
- type RetentionRule
- type RetentionRuleMetadata
- type RetentionRuleParamMetadata
- type RetentionRuleTrigger
- type RetentionSelector
- type RetentionSelectorMetadata
- type RobotAccount
- type RobotAccountAccess
- type RobotAccountCreate
- type RobotAccountPostRep
- type RobotAccountUpdate
- type Role
- type RoleParam
- type RoleRequest
- type ScanOverview
- type Scanner
- type ScannerAdapterMetadata
- type ScannerCapability
- type ScannerRegistration
- type ScannerRegistrationReq
- type ScannerRegistrationSettings
- type Search
- type SearchRepository
- type SearchResult
- type SecurityReport
- type StatisticMap
- type Stats
- type Storage
- type StringConfigItem
- type SystemInfo
- type Tags
- type TriggerSettings
- type UnauthorizedChartAPIError
- func (m *UnauthorizedChartAPIError) MarshalBinary() ([]byte, error)
- func (m UnauthorizedChartAPIError) MarshalJSON() ([]byte, error)
- func (m *UnauthorizedChartAPIError) UnmarshalBinary(b []byte) error
- func (m *UnauthorizedChartAPIError) UnmarshalJSON(raw []byte) error
- func (m *UnauthorizedChartAPIError) Validate(formats strfmt.Registry) error
- type User
- type UserEntity
- type UserGroup
- type UserProfile
- type UserSearch
- type VulnNamespaceTimestamp
- type VulnerabilityItem
- type VulnerabilitySummary
- type WebhookJob
- type WebhookLastTrigger
- type WebhookPolicy
- type WebhookTargetObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLog ¶
type AccessLog struct { // The ID of the log entry. LogID int64 `json:"log_id,omitempty"` // The time when this operation is triggered. OpTime string `json:"op_time,omitempty"` // The operation against the repository in this log entry. Operation string `json:"operation,omitempty"` // Name of the repository in this log entry. RepoName string `json:"repo_name,omitempty"` // Tag of the repository in this log entry. RepoTag string `json:"repo_tag,omitempty"` // Username of the user in this log entry. Username string `json:"username,omitempty"` }
AccessLog access log
swagger:model AccessLog
func (*AccessLog) MarshalBinary ¶
MarshalBinary interface implementation
func (*AccessLog) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AdminJobSchedule ¶
type AdminJobSchedule struct { // 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
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
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
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
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
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
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
type ChartInfoEntry ¶
type ChartInfoEntry struct { // The created time of chart // Required: true Created *string `json:"created"` // Flag to indicate if the chart is deprecated Deprecated bool `json:"deprecated,omitempty"` // The home website of chart Home string `json:"home,omitempty"` // The icon path of chart Icon string `json:"icon,omitempty"` // latest version of chart LatestVersion string `json:"latest_version,omitempty"` // Name of chart // Required: true Name *string `json:"name"` // Total count of chart versions // Required: true TotalVersions *int64 `json:"total_versions"` // The created time of chart Updated string `json:"updated,omitempty"` }
ChartInfoEntry The object contains basic chart information
swagger:model ChartInfoEntry
func (*ChartInfoEntry) MarshalBinary ¶
func (m *ChartInfoEntry) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChartInfoEntry) UnmarshalBinary ¶
func (m *ChartInfoEntry) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChartInfoList ¶
type ChartInfoList []*ChartInfoEntry
ChartInfoList The chart list under the project
swagger:model ChartInfoList
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
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
type ChartVersionDetails ¶
type ChartVersionDetails struct { // dependencies Dependencies []*Dependency `json:"dependencies"` // files Files map[string]string `json:"files,omitempty"` // labels Labels Labels `json:"labels,omitempty"` // metadata Metadata *ChartVersion `json:"metadata,omitempty"` // security Security *SecurityReport `json:"security,omitempty"` // values Values map[string]interface{} `json:"values,omitempty"` }
ChartVersionDetails The detailed information of the chart entry
swagger:model ChartVersionDetails
func (*ChartVersionDetails) MarshalBinary ¶
func (m *ChartVersionDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChartVersionDetails) UnmarshalBinary ¶
func (m *ChartVersionDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChartVersions ¶
type ChartVersions []*ChartVersion
ChartVersions A list of chart entry
swagger:model ChartVersions
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
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
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
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
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
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 ¶
func (m *ConfigurationsResponseScanAllPolicyParameter) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ConfigurationsResponseScanAllPolicyParameter) UnmarshalBinary ¶
func (m *ConfigurationsResponseScanAllPolicyParameter) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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
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
type Dependency ¶
type Dependency struct { // The name of the chart denpendency // Required: true Name *string `json:"name"` // The URL to the repository Repository string `json:"repository,omitempty"` // The version of the chart dependency // Required: true Version *string `json:"version"` }
Dependency Another chart the chart depends on
swagger:model Dependency
func (*Dependency) MarshalBinary ¶
func (m *Dependency) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Dependency) UnmarshalBinary ¶
func (m *Dependency) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DetailedTag ¶
type DetailedTag struct { // The architecture of the image. Architecture string `json:"architecture,omitempty"` // The author of the image. Author string `json:"author,omitempty"` // The build time of the image. Created string `json:"created,omitempty"` // The digest of the tag. Digest string `json:"digest,omitempty"` // The version of docker which builds the image. DockerVersion string `json:"docker_version,omitempty"` // The label list. Labels []*Label `json:"labels"` // The name of the tag. Name string `json:"name,omitempty"` // The os of the image. Os string `json:"os,omitempty"` // The overview of the scan result. ScanOverview ScanOverview `json:"scan_overview,omitempty"` // The signature of image, defined by RepoSignature. If it is null, the image is unsigned. Signature interface{} `json:"signature,omitempty"` // The size of the image. Size int64 `json:"size,omitempty"` }
DetailedTag detailed tag
swagger:model DetailedTag
func (*DetailedTag) MarshalBinary ¶
func (m *DetailedTag) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DetailedTag) UnmarshalBinary ¶
func (m *DetailedTag) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DigitalSignature ¶
type DigitalSignature struct { // The URL of the provance file ProvFile string `json:"prov_file,omitempty"` // A flag to indicate if the chart is signed Signed bool `json:"signed,omitempty"` }
DigitalSignature The signature of the chart
swagger:model DigitalSignature
func (*DigitalSignature) MarshalBinary ¶
func (m *DigitalSignature) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DigitalSignature) UnmarshalBinary ¶
func (m *DigitalSignature) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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
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
type GCResult ¶
type GCResult struct { // the creation time of gc job. CreationTime string `json:"creation_time,omitempty"` // if gc job was deleted. Deleted bool `json:"deleted,omitempty"` // the id of gc job. ID int64 `json:"id,omitempty"` // the job kind of gc job. JobKind string `json:"job_kind,omitempty"` // the job name of gc job. JobName string `json:"job_name,omitempty"` // the status of gc job. JobStatus string `json:"job_status,omitempty"` // schedule Schedule *AdminJobScheduleObj `json:"schedule,omitempty"` // the update time of gc job. UpdateTime string `json:"update_time,omitempty"` }
GCResult g c result
swagger:model GCResult
func (*GCResult) MarshalBinary ¶
MarshalBinary interface implementation
func (*GCResult) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GeneralInfo ¶
type GeneralInfo struct { // The url of the endpoint of admiral instance. AdmiralEndpoint string `json:"admiral_endpoint,omitempty"` // The auth mode of current Harbor instance. AuthMode string `json:"auth_mode,omitempty"` // clair vulnerability status ClairVulnerabilityStatus *GeneralInfoClairVulnerabilityStatus `json:"clair_vulnerability_status,omitempty"` // The external URL of Harbor, with protocol. ExternalURL string `json:"external_url,omitempty"` // The build version of Harbor. HarborVersion string `json:"harbor_version,omitempty"` // Indicate whether there is a ca root cert file ready for download in the file system. HasCaRoot bool `json:"has_ca_root,omitempty"` // The UTC time in milliseconds, after which user can call scanAll API to scan all images. NextScanAll int64 `json:"next_scan_all,omitempty"` // Indicate who can create projects, it could be 'adminonly' or 'everyone'. ProjectCreationRestriction string `json:"project_creation_restriction,omitempty"` // The url of registry against which the docker command should be issued. RegistryURL string `json:"registry_url,omitempty"` // Indicate whether the Harbor instance enable user to register himself. SelfRegistration bool `json:"self_registration,omitempty"` // If the Harbor instance is deployed with Admiral. WithAdmiral bool `json:"with_admiral,omitempty"` // If the Harbor instance is deployed with nested clair. WithClair bool `json:"with_clair,omitempty"` // If the Harbor instance is deployed with nested notary. WithNotary bool `json:"with_notary,omitempty"` }
GeneralInfo general info
swagger:model GeneralInfo
func (*GeneralInfo) MarshalBinary ¶
func (m *GeneralInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GeneralInfo) UnmarshalBinary ¶
func (m *GeneralInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GeneralInfoClairVulnerabilityStatus ¶
type GeneralInfoClairVulnerabilityStatus struct { // Detail timestamp of different namespace. This is introduced to handle the case when some updaters are executed successfully and some not. Details []*VulnNamespaceTimestamp `json:"details"` // The UTC timestamp in milliseconds of last successful update for Clair vulnerability data, when all the updaters are successfully executed. OverallLastUpdate int64 `json:"overall_last_update,omitempty"` }
GeneralInfoClairVulnerabilityStatus The status of vulnerability data of Clair.
swagger:model GeneralInfoClairVulnerabilityStatus
func (*GeneralInfoClairVulnerabilityStatus) MarshalBinary ¶
func (m *GeneralInfoClairVulnerabilityStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GeneralInfoClairVulnerabilityStatus) UnmarshalBinary ¶
func (m *GeneralInfoClairVulnerabilityStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HasAdminRole ¶
type HasAdminRole struct { // 1-has admin, 0-not. HasAdminRole bool `json:"has_admin_role,omitempty"` }
HasAdminRole has admin role
swagger:model HasAdminRole
func (*HasAdminRole) MarshalBinary ¶
func (m *HasAdminRole) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HasAdminRole) UnmarshalBinary ¶
func (m *HasAdminRole) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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
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
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
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 ¶
MarshalBinary interface implementation
func (*IsDefault) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type JobStatus ¶
type JobStatus struct { // The creation time of the job. CreationTime string `json:"creation_time,omitempty"` // The job ID. ID int64 `json:"id,omitempty"` // The operation of the job. Operation string `json:"operation,omitempty"` // The ID of the policy that triggered this job. PolicyID int64 `json:"policy_id,omitempty"` // The repository handled by the job. Repository string `json:"repository,omitempty"` // The status of the job. Status string `json:"status,omitempty"` // The repository's used tag list. Tags []*Tags `json:"tags"` // The update time of the job. UpdateTime string `json:"update_time,omitempty"` }
JobStatus job status
swagger:model JobStatus
func (*JobStatus) MarshalBinary ¶
MarshalBinary interface implementation
func (*JobStatus) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Label) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*LdapConf) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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 ¶
MarshalBinary interface implementation
func (*LdapUsers) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Manifest ¶
type Manifest struct { // The config of the repository. Config string `json:"config,omitempty"` // The detail of manifest. Manifest interface{} `json:"manifest,omitempty"` }
Manifest manifest
swagger:model Manifest
func (*Manifest) MarshalBinary ¶
MarshalBinary interface implementation
func (*Manifest) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Namespace) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type NativeReportSummary ¶
type NativeReportSummary struct { // The seconds spent for generating the report Duration int64 `json:"duration,omitempty"` // The end time of the scan process that generating report // Format: date-time EndTime strfmt.DateTime `json:"end_time,omitempty"` // id of the native scan report ReportID string `json:"report_id,omitempty"` // The status of the report generating process ScanStatus string `json:"scan_status,omitempty"` // The overall severity Severity string `json:"severity,omitempty"` // The start time of the scan process that generating report // Format: date-time StartTime strfmt.DateTime `json:"start_time,omitempty"` // summary Summary *VulnerabilitySummary `json:"summary,omitempty"` }
NativeReportSummary The summary for the native report
swagger:model NativeReportSummary
func (*NativeReportSummary) MarshalBinary ¶
func (m *NativeReportSummary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NativeReportSummary) UnmarshalBinary ¶
func (m *NativeReportSummary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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
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 ¶
MarshalBinary interface implementation
func (*Password) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
type Project ¶
type Project struct { // The total number of charts under this project. ChartCount int64 `json:"chart_count,omitempty"` // The creation time of the project. CreationTime string `json:"creation_time,omitempty"` // The role ID with highest permission of the current user who triggered the API (for UI) CurrentUserRoleID int64 `json:"current_user_role_id,omitempty"` // The list of role ID of the current user who triggered the API (for UI) CurrentUserRoleIds []int32 `json:"current_user_role_ids"` // The CVE whitelist of this project. CveWhitelist *CVEWhitelist `json:"cve_whitelist,omitempty"` // A deletion mark of the project. Deleted bool `json:"deleted,omitempty"` // The metadata of the project. Metadata *ProjectMetadata `json:"metadata,omitempty"` // The name of the project. Name string `json:"name,omitempty"` // The owner ID of the project always means the creator of the project. OwnerID int32 `json:"owner_id,omitempty"` // The owner name of the project. OwnerName string `json:"owner_name,omitempty"` // Project ID ProjectID int32 `json:"project_id,omitempty"` // The number of the repositories under this project. RepoCount int64 `json:"repo_count,omitempty"` // Correspond to the UI about whether the project's publicity is updatable (for UI) Togglable bool `json:"togglable,omitempty"` // The update time of the project. UpdateTime string `json:"update_time,omitempty"` }
Project project
swagger:model Project
func (*Project) MarshalBinary ¶
MarshalBinary interface implementation
func (*Project) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
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
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
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
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
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 ¶
MarshalBinary interface implementation
func (*Quota) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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 ¶
MarshalBinary interface implementation
func (*Registry) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
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
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
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
type RepoSignature ¶
type RepoSignature struct { // The JSON object of the hash of the image. Hashes interface{} `json:"hashes,omitempty"` // The tag of image. Tag string `json:"tag,omitempty"` }
RepoSignature repo signature
swagger:model RepoSignature
func (*RepoSignature) MarshalBinary ¶
func (m *RepoSignature) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RepoSignature) UnmarshalBinary ¶
func (m *RepoSignature) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Report ¶
type Report struct { // Time of generating this report GeneratedAt string `json:"generated_at,omitempty"` // scanner Scanner *Scanner `json:"scanner,omitempty"` // A standard scale for measuring the severity of a vulnerability. Severity string `json:"severity,omitempty"` // vulnerabilities Vulnerabilities []*VulnerabilityItem `json:"vulnerabilities"` }
Report The harbor native report format
swagger:model Report
func (*Report) MarshalBinary ¶
MarshalBinary interface implementation
func (*Report) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Repository ¶
type Repository struct { // The creation time of repository. CreationTime string `json:"creation_time,omitempty"` // The description of repository. Description string `json:"description,omitempty"` // The ID of repository. ID int64 `json:"id,omitempty"` // The label list. Labels []*Label `json:"labels"` // The name of repository. Name string `json:"name,omitempty"` // The project ID of repository. ProjectID int64 `json:"project_id,omitempty"` // The pull count of repository. PullCount int64 `json:"pull_count,omitempty"` // The star count of repository. StarCount int64 `json:"star_count,omitempty"` // The tags count of repository. TagsCount int64 `json:"tags_count,omitempty"` // The update time of repository. UpdateTime string `json:"update_time,omitempty"` }
Repository repository
swagger:model Repository
func (*Repository) MarshalBinary ¶
func (m *Repository) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Repository) UnmarshalBinary ¶
func (m *Repository) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RepositoryDescription ¶
type RepositoryDescription struct { // The description of the repository. Description string `json:"description,omitempty"` }
RepositoryDescription repository description
swagger:model RepositoryDescription
func (*RepositoryDescription) MarshalBinary ¶
func (m *RepositoryDescription) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RepositoryDescription) UnmarshalBinary ¶
func (m *RepositoryDescription) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Resource ¶
type Resource struct { // The replication policy list. ReplicationPolicies []*ReplicationPolicy `json:"replication_policies"` }
Resource resource
swagger:model Resource
func (*Resource) MarshalBinary ¶
MarshalBinary interface implementation
func (*Resource) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RetagReq ¶
type RetagReq struct { // If target tag already exists, whether to override it Override bool `json:"override,omitempty"` // Source image to be retagged, e.g. 'stage/app:v1.0' SrcImage string `json:"src_image,omitempty"` // new tag to be created Tag string `json:"tag,omitempty"` }
RetagReq retag req
swagger:model RetagReq
func (*RetagReq) MarshalBinary ¶
MarshalBinary interface implementation
func (*RetagReq) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
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
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
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
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
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
type RetentionSelector ¶
type RetentionSelector struct { // decoration Decoration string `json:"decoration,omitempty"` // kind Kind string `json:"kind,omitempty"` // pattern Pattern string `json:"pattern,omitempty"` }
RetentionSelector retention selector
swagger:model RetentionSelector
func (*RetentionSelector) MarshalBinary ¶
func (m *RetentionSelector) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RetentionSelector) UnmarshalBinary ¶
func (m *RetentionSelector) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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
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
type RobotAccountCreate ¶
type RobotAccountCreate struct { // The permission of robot account Access []*RobotAccountAccess `json:"access"` // The description of robot account Description string `json:"description,omitempty"` // The name of robot account Name string `json:"name,omitempty"` }
RobotAccountCreate robot account create
swagger:model RobotAccountCreate
func (*RobotAccountCreate) MarshalBinary ¶
func (m *RobotAccountCreate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RobotAccountCreate) UnmarshalBinary ¶
func (m *RobotAccountCreate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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
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 ¶
MarshalBinary interface implementation
func (*Role) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*RoleParam) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
type ScanOverview ¶
type ScanOverview map[string]NativeReportSummary
ScanOverview The scan overview attached in the metadata of tag
swagger:model ScanOverview
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 ¶
MarshalBinary interface implementation
func (*Scanner) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
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
type Search ¶
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 ¶
MarshalBinary interface implementation
func (*Search) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SearchRepository ¶
type SearchRepository struct { // The ID of the project that the repository belongs to ProjectID int64 `json:"project_id,omitempty"` // The name of the project that the repository belongs to ProjectName string `json:"project_name,omitempty"` // The flag to indicate the publicity of the project that the repository belongs to (1 is public, 0 is not) ProjectPublic bool `json:"project_public,omitempty"` // The count how many times the repository is pulled PullCount int64 `json:"pull_count,omitempty"` // The name of the repository RepositoryName string `json:"repository_name,omitempty"` // The count of tags in the repository TagsCount int64 `json:"tags_count,omitempty"` }
SearchRepository search repository
swagger:model SearchRepository
func (*SearchRepository) MarshalBinary ¶
func (m *SearchRepository) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SearchRepository) UnmarshalBinary ¶
func (m *SearchRepository) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
type SecurityReport ¶
type SecurityReport struct { // signature Signature *DigitalSignature `json:"signature,omitempty"` }
SecurityReport The security information of the chart
swagger:model SecurityReport
func (*SecurityReport) MarshalBinary ¶
func (m *SecurityReport) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SecurityReport) UnmarshalBinary ¶
func (m *SecurityReport) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Stats) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Storage) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
type Tags ¶
type Tags struct { // The repository's used tag. Tag string `json:"tag,omitempty"` }
Tags tags
swagger:model Tags
func (*Tags) MarshalBinary ¶
MarshalBinary interface implementation
func (*Tags) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
type UnauthorizedChartAPIError ¶
type UnauthorizedChartAPIError struct {
}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
type User ¶
type User struct { // salt Salt string `json:"Salt,omitempty"` // comment Comment string `json:"comment,omitempty"` // creation time CreationTime string `json:"creation_time,omitempty"` // deleted Deleted bool `json:"deleted,omitempty"` // email Email string `json:"email,omitempty"` // has admin role HasAdminRole bool `json:"has_admin_role,omitempty"` // password Password string `json:"password,omitempty"` // realname Realname string `json:"realname,omitempty"` // reset uuid ResetUUID string `json:"reset_uuid,omitempty"` // role id RoleID int64 `json:"role_id,omitempty"` // role name RoleName string `json:"role_name,omitempty"` // update time UpdateTime string `json:"update_time,omitempty"` // The ID of the user. UserID int64 `json:"user_id,omitempty"` // username Username string `json:"username,omitempty"` }
User user
swagger:model User
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*UserGroup) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
type VulnNamespaceTimestamp ¶
type VulnNamespaceTimestamp struct { // The UTC timestamp in miliseconds of last successful update for vulnerability data. LastUpdate int64 `json:"last_update,omitempty"` // The namespace of the Vulnerability Namespace string `json:"namespace,omitempty"` }
VulnNamespaceTimestamp vuln namespace timestamp
swagger:model VulnNamespaceTimestamp
func (*VulnNamespaceTimestamp) MarshalBinary ¶
func (m *VulnNamespaceTimestamp) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VulnNamespaceTimestamp) UnmarshalBinary ¶
func (m *VulnNamespaceTimestamp) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type VulnerabilityItem ¶
type VulnerabilityItem struct { // Description of the CVE Description string `json:"description,omitempty"` // The version of the package containing the fix if available. FixVersion string `json:"fix_version,omitempty"` // ID of the CVE. ID string `json:"id,omitempty"` // The list of link to the upstream database with the full description of the vulnerability. Links []string `json:"links"` // An operating system or software dependency package containing the vulnerability. Package string `json:"package,omitempty"` // A standard scale for measuring the severity of a vulnerability. Severity string `json:"severity,omitempty"` // The version of the package containing the vulnerability. Version string `json:"version,omitempty"` }
VulnerabilityItem vulnerability item
swagger:model VulnerabilityItem
func (*VulnerabilityItem) MarshalBinary ¶
func (m *VulnerabilityItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VulnerabilityItem) UnmarshalBinary ¶
func (m *VulnerabilityItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type VulnerabilitySummary ¶
type VulnerabilitySummary struct { // The number of the fixable vulnerabilities Fixable int64 `json:"fixable,omitempty"` // Numbers of the vulnerabilities with different severity Summary map[string]int64 `json:"summary,omitempty"` // The total number of the found vulnerabilities Total int64 `json:"total,omitempty"` }
VulnerabilitySummary VulnerabilitySummary contains the total number of the foun d vulnerabilities number and numbers of each severity level.
swagger:model VulnerabilitySummary
func (*VulnerabilitySummary) MarshalBinary ¶
func (m *VulnerabilitySummary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VulnerabilitySummary) UnmarshalBinary ¶
func (m *VulnerabilitySummary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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
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
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
Source Files ¶
- access_log.go
- admin_job_schedule.go
- admin_job_schedule_obj.go
- bad_request_formated_error.go
- bool_config_item.go
- c_v_e_whitelist.go
- c_v_e_whitelist_item.go
- chart_api_error.go
- chart_info_entry.go
- chart_info_list.go
- chart_metadata.go
- chart_version.go
- chart_version_details.go
- chart_versions.go
- component_health_status.go
- component_overview_entry.go
- configurations.go
- configurations_response.go
- conflict_formated_error.go
- dependency.go
- detailed_tag.go
- digital_signature.go
- email_server_setting.go
- filter_style.go
- forbidden_chart_api_error.go
- g_c_result.go
- general_info.go
- has_admin_role.go
- immutable_tag_rule.go
- insufficient_storage_chart_api_error.go
- integer_config_item.go
- internal_chart_api_error.go
- is_default.go
- job_status.go
- label.go
- labels.go
- ldap_conf.go
- ldap_failed_import_users.go
- ldap_import_users.go
- ldap_users.go
- manifest.go
- namespace.go
- native_report_summary.go
- not_found_chart_api_error.go
- overall_health_status.go
- password.go
- permission.go
- ping_registry.go
- project.go
- project_member.go
- project_member_entity.go
- project_metadata.go
- project_req.go
- project_scanner.go
- project_summary.go
- put_registry.go
- quota.go
- quota_ref_object.go
- quota_switcher.go
- quota_update_req.go
- registry.go
- registry_credential.go
- registry_info.go
- replication_execution.go
- replication_filter.go
- replication_policy.go
- replication_task.go
- replication_trigger.go
- repo_signature.go
- report.go
- repository.go
- repository_description.go
- resource.go
- resource_list.go
- retag_req.go
- retention_execution.go
- retention_execution_task.go
- retention_metadata.go
- retention_policy.go
- retention_policy_scope.go
- retention_rule.go
- retention_rule_metadata.go
- retention_rule_param_metadata.go
- retention_rule_trigger.go
- retention_selector.go
- retention_selector_metadata.go
- robot_account.go
- robot_account_access.go
- robot_account_create.go
- robot_account_post_rep.go
- robot_account_update.go
- role.go
- role_param.go
- role_request.go
- scan_overview.go
- scanner.go
- scanner_adapter_metadata.go
- scanner_capability.go
- scanner_registration.go
- scanner_registration_req.go
- scanner_registration_settings.go
- search.go
- search_repository.go
- search_result.go
- security_report.go
- statistic_map.go
- stats.go
- storage.go
- string_config_item.go
- system_info.go
- tags.go
- trigger_settings.go
- unauthorized_chart_api_error.go
- user.go
- user_entity.go
- user_group.go
- user_profile.go
- user_search.go
- vuln_namespace_timestamp.go
- vulnerability_item.go
- vulnerability_summary.go
- webhook_job.go
- webhook_last_trigger.go
- webhook_policy.go
- webhook_target_object.go