Documentation ¶
Index ¶
- Constants
- type ErrAuditLogBadRequest
- type ErrAuditLogInternalServerError
- type ErrAuditLogUnauthorized
- type ErrBadRequest
- type ErrConfigureInternalServerError
- type ErrConfigureNoPermission
- type ErrConfigureUnauthorized
- type ErrConflict
- type ErrForbidden
- type ErrInternalErrors
- type ErrMemberAlreadyExists
- type ErrMultipleResults
- type ErrNoMemberFound
- type ErrNotFound
- type ErrProjectIDNotExists
- type ErrProjectIllegalIDFormat
- type ErrProjectInternalErrors
- type ErrProjectInvalidRequest
- type ErrProjectMemberIllegalFormat
- type ErrProjectMemberMismatch
- type ErrProjectMetadataAlreadyExists
- type ErrProjectMetadataInvalidRequest
- type ErrProjectMetadataKeyUndefined
- type ErrProjectMetadataUndefined
- type ErrProjectMetadataValueAutoScanUndefined
- type ErrProjectMetadataValueEnableContentTrustUndefined
- type ErrProjectMetadataValuePreventVulUndefined
- type ErrProjectMetadataValuePublicUndefined
- type ErrProjectMetadataValueRetentionIDUndefined
- type ErrProjectMetadataValueReuseSysCveAllowlistUndefined
- type ErrProjectMetadataValueSeverityUndefined
- type ErrProjectMismatch
- type ErrProjectNameAlreadyExists
- type ErrProjectNameNotProvided
- type ErrProjectNoMemberProvided
- type ErrProjectNoPermission
- type ErrProjectNoWebhookPolicyProvided
- type ErrProjectNotFound
- type ErrProjectNotProvided
- type ErrProjectUnknownResource
- type ErrQuotaIllegalIDFormat
- type ErrQuotaInternalServerErrors
- type ErrQuotaNoPermission
- type ErrQuotaRefNotFound
- type ErrQuotaUnauthorized
- type ErrQuotaUnknownResource
- type ErrRegistryIDNotExists
- type ErrRegistryIllegalIDFormat
- type ErrRegistryInternalErrors
- type ErrRegistryMismatch
- type ErrRegistryNameAlreadyExists
- type ErrRegistryNoPermission
- type ErrRegistryNotFound
- type ErrRegistryNotProvided
- type ErrRegistryUnauthorized
- type ErrRobotAccountInternalErrors
- type ErrRobotAccountInvalid
- type ErrRobotAccountNoPermission
- type ErrRobotAccountUnauthorized
- type ErrRobotAccountUnknownResource
- type ErrSystemGcInProgress
- type ErrSystemGcScheduleIdentical
- type ErrSystemGcScheduleNotProvided
- type ErrSystemGcScheduleParametersUndefined
- type ErrSystemGcScheduleUndefined
- type ErrSystemGcUndefined
- type ErrSystemInternalErrors
- type ErrSystemInvalidSchedule
- type ErrSystemNoPermission
- type ErrSystemUnauthorized
- type ErrUnauthorized
- type ErrUnsupportedMediaType
- type ErrUserAlreadyExists
- type ErrUserBadRequest
- type ErrUserIDNotExists
- type ErrUserInvalidID
- type ErrUserMismatch
- type ErrUserNotFound
- type ErrUserPasswordInvalid
Constants ¶
const ( // ErrAuditLogBadRequestMsg is the error message for ErrAuditLogBadRequest error. ErrAuditLogBadRequestMsg = "unsatisfied with constraints of the auditlog request" ErrAuditLogUnauthorizedMsg = "unauthorized" // ErrAuditLogInternalServerErrorMsg is the error message for ErrAuditLogInternalServerError error. ErrAuditLogInternalServerErrorMsg = "unexpected internal errors" )
const ( // ErrConfigureNoPermissionMsg is the error message for ErrConfigureNoPermission error. ErrConfigureNoPermissionMsg = "user does not have permission of admin role" // ErrConfigureInternalServerErrorMsg is the error message for ErrConfigureInternalServerError error. ErrConfigureInternalServerErrorMsg = "unexpected internal errors" )ErrConfigureUnauthorizedMsg = "unauthorized"
const ( ErrBadRequestMsg = "bad request" ErrForbiddenMsg = "forbidden" ErrConflictMsg = "conflict" ErrNotFoundMsg = "not found" ErrMultipleResultsMsg = "multiple results found" ErrUnsupportedMediaTypeMsg = "unsupported media type" ErrInternalErrorsMsg = "internal server error" )
const ( // ErrSystemInvalidScheduleMsg describes an invalid schedule type request ErrSystemInvalidScheduleMsg = "invalid schedule type" // ErrSystemGcInProgressMsg describes that a gc progress is already running ErrSystemGcInProgressMsg = "the system is already running a gc job" ErrSystemUnauthorizedMsg = "unauthorized" // ErrSystemInternalErrorsMsg describes server-side internal errors ErrSystemInternalErrorsMsg = "unexpected internal errors" // ErrSystemNoPermissionMsg describes a request error without permission ErrSystemNoPermissionMsg = "user does not have permission to the System" // ErrSystemGcUndefinedMsg describes a server-side response returning an empty GC schedule ErrSystemGcUndefinedMsg = "no schedule defined" // ErrSystemGcScheduleIdenticalMsg describes equality between two GC schedules ErrSystemGcScheduleIdenticalMsg = "the provided schedule is identical to the existing schedule" // ErrSystemGcScheduleNotProvidedMsg describes the absence of a required schedule ErrSystemGcScheduleNotProvidedMsg = "no schedule provided" // ErrSystemGcScheduleUndefinedMsg describes an error when the GC schedule is undefined ErrSystemGcScheduleUndefinedMsg = "the garbage collection schedule is undefined" // ErrSystemGcScheduleParametersUndefinedMsg describes an error when a GC schedule's parameters are undefined ErrSystemGcScheduleParametersUndefinedMsg = "garbage collection schedule parameters are undefined" )
const ( // ErrProjectNoMemberProvidedMsg is the error message for ErrProjectNoMemberProvided error. ErrProjectNoMemberProvidedMsg = "no project member provided" // ErrProjectMemberMismatchMsg is the error message for ErrProjectMemberMismatch error. ErrProjectMemberMismatchMsg = "no user or group with id/name pair found on server side" // ErrProjectMemberIllegalFormatMsg is the error message for ErrProjectMemberIllegalFormat error. ErrProjectMemberIllegalFormatMsg = "illegal format of project member or project id is invalid, or LDAP DN is invalid" ErrNoMemberFoundMsg = "no project members found" ErrMemberAlreadyExistsMsg = "member already exists" )
const ( // ErrProjectIllegalIDFormatMsg is the error message for ErrProjectIllegalIDFormat error. ErrProjectIllegalIDFormatMsg = "illegal format of provided ID value" // ErrProjectInternalErrorsMsg is the error message for ErrProjectInternalErrors error. ErrProjectInternalErrorsMsg = "unexpected internal errors" // ErrProjectNoPermissionMsg is the error message for ErrProjectNoPermission error. ErrProjectNoPermissionMsg = "user does not have permission to the project" // ErrProjectIDNotExistsMsg is the error message for ErrProjectIDNotExists error. ErrProjectIDNotExistsMsg = "project ID does not exist" // ErrProjectNameAlreadyExistsMsg is the error message for ErrProjectNameAlreadyExists error. ErrProjectNameAlreadyExistsMsg = "project name already exists" // ErrProjectMismatchMsg is the error message for ErrProjectMismatch error. ErrProjectMismatchMsg = "id/name pair not found on server side" // ErrProjectNotFoundMsg is the error message for ErrProjectNotFound error. ErrProjectNotFoundMsg = "project not found on server side" // ErrProjectNotProvidedMsg is the error message for ErrProjectNotProvided error. ErrProjectNotProvidedMsg = "no project provided" // ErrProjectInvalidRequestMsg is the error message for ErrProjectInvalidRequest error. ErrProjectInvalidRequestMsg = "invalid request" // ErrProjectUnknownResourceMsg is the error message for ErrProjectUnknownResource error. ErrProjectUnknownResourceMsg = "resource unknown" // ErrProjectNameNotProvidedMsg is the error message for ErrProjectNameNotProvided error. ErrProjectNameNotProvidedMsg = "project name not provided" // ErrProjectNoWebhookPolicyProvidedMsg is the error message for ErrProjectNoWebhookPolicyProvided error. ErrProjectNoWebhookPolicyProvidedMsg = "no webhook policy provided" )
const ( // ErrProjectMetadataAlreadyExistsMsg is the error message for ErrProjectMetadataAlreadyExists error. ErrProjectMetadataAlreadyExistsMsg = "metadata key already exists" // ErrProjectMetadataUndefinedMsg is the error message for ErrProjectMetadataUndefined error. ErrProjectMetadataUndefinedMsg = "project metadata undefined" // ErrProjectMetadataValueUndefinedMsg is the error message used for MetadataKey's being undefined or nil. ErrProjectMetadataValueUndefinedMsg = "project metadata value is empty: " ErrProjectMetadataInvalidRequestMsg = "request invalid" ErrProjectMetadataKeyUndefinedMsg = "metadata key is undefined" )
const ( // ErrQuotaIllegalIDFormatMsg is the error for message for ErrQuotaIllegalIDFormat errors. ErrQuotaIllegalIDFormatMsg = "illegal format in quota update request" ErrQuotaUnauthorizedMsg = "unauthorized" // ErrQuotaInternalServerErrorsMsg is the error message for ErrQuotaInternalServerErrors errors. ErrQuotaInternalServerErrorsMsg = "unexpected internal errors" // ErrQuotaNoPermissionMsg is the error message for ErrQuotaNoPermission errors. ErrQuotaNoPermissionMsg = "user does not have permission to the quota" // ErrQuotaUnknownResourceMsg is the errors message for ErrQuotaUnknownResource errors. ErrQuotaUnknownResourceMsg = "quota does not exist" ErrQuotaRefNotFoundMsg = "quota could not be found or contains unexpected reference object" )
const ( ErrRegistryIllegalIDFormatMsg = "illegal format of provided ID value" ErrRegistryInternalErrorsMsg = "unexpected internal errors" ErrRegistryNoPermissionMsg = "user does not have permission to the registry" ErrRegistryIDNotExistsMsg = "registry ID does not exist" ErrRegistryNameAlreadyExistsMsg = "registry name already exists" ErrRegistryMismatchMsg = "id/name pair not found on server side" ErrRegistryNotFoundMsg = "registry not found on server side" ErrRegistryNotProvidedMsg = "no registry provided" )
const ( // ErrRobotAccountInvalidMsg is the error message for ErrRobotAccountInvalid error. ErrRobotAccountInvalidMsg = "the robot account is invalid" ErrRobotAccountUnauthorizedMsg = "unauthorized" // ErrRobotAccountNoPermissionMsg is the error message for ErrRobotAccountNoPermission error. ErrRobotAccountNoPermissionMsg = "user does not have permission to the robot account" // ErrRobotAccountUnknownResourceMsg is the error message for ErrRobotAccountUnknownResource error. ErrRobotAccountUnknownResourceMsg = "resource unknown" // ErrRobotAccountInternalErrorsMsg is the error message for ErrRobotAccountInternalErrors error. ErrRobotAccountInternalErrorsMsg = "internal server error" )
const ( // ErrUserNotFoundMsg is the error message for ErrUserNotFound error. ErrUserNotFoundMsg = "user not found on server side" // ErrUserBadRequestMsg is the error message for ErrUserBadRequest error. ErrUserBadRequestMsg = "unsatisfied with constraints of the user creation/modification." // ErrUserMismatchMsg is the error message for ErrUserMismatch error. ErrUserMismatchMsg = "id/name pair not found on server side" // ErrUserAlreadyExistsMsg is the error message for ErrUserAlreadyExists error. ErrUserAlreadyExistsMsg = "user with this username already exists" // ErrUserInvalidIDMsg is the error message for ErrUserInvalidID error. ErrUserInvalidIDMsg = "invalid user ID" // ErrUserIDNotExistsMsg is the error message for ErrUserIDNotExists error. ErrUserIDNotExistsMsg = "user id does not exist" // ErrUserPasswordInvalidMsg is the error message for ErrUserPasswordInvalid error. ErrUserPasswordInvalidMsg = "invalid user password" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrAuditLogBadRequest ¶
type ErrAuditLogBadRequest struct{}
ErrAuditLogBadRequest describes an error when a request to the auditlog API is malformed.
func (*ErrAuditLogBadRequest) Error ¶
func (e *ErrAuditLogBadRequest) Error() string
Error returns the error message.
type ErrAuditLogInternalServerError ¶
type ErrAuditLogInternalServerError struct{}
ErrAuditLogInternalServerError describes server-side internal errors.
func (*ErrAuditLogInternalServerError) Error ¶
func (e *ErrAuditLogInternalServerError) Error() string
Error returns the error message.
type ErrAuditLogUnauthorized ¶
type ErrAuditLogUnauthorized struct{}
ErrAuditLogUnauthorized describes an unauthorized request.
func (*ErrAuditLogUnauthorized) Error ¶
func (e *ErrAuditLogUnauthorized) Error() string
Error returns the error message.
type ErrBadRequest ¶
type ErrBadRequest struct{}
ErrBadRequest describes a malformed / invalid request.
func (*ErrBadRequest) Error ¶
func (e *ErrBadRequest) Error() string
type ErrConfigureInternalServerError ¶ added in v5.3.2
type ErrConfigureInternalServerError struct{}
ErrConfigureInternalServerError describes server-side internal errors.
func (*ErrConfigureInternalServerError) Error ¶ added in v5.3.2
func (e *ErrConfigureInternalServerError) Error() string
Error returns the error message.
type ErrConfigureNoPermission ¶ added in v5.3.2
type ErrConfigureNoPermission struct{}
ErrConfigureNoPermission describes a request error without permission.
func (*ErrConfigureNoPermission) Error ¶ added in v5.3.2
func (e *ErrConfigureNoPermission) Error() string
Error returns the error message.
type ErrConfigureUnauthorized ¶ added in v5.3.2
type ErrConfigureUnauthorized struct{}
ErrConfigureUnauthorized describes an unauthorized request.
func (*ErrConfigureUnauthorized) Error ¶ added in v5.3.2
func (e *ErrConfigureUnauthorized) Error() string
Error returns the error message.
type ErrConflict ¶ added in v5.1.0
type ErrConflict struct{}
ErrConflict describes an error when a resource already exists.
func (*ErrConflict) Error ¶ added in v5.1.0
func (e *ErrConflict) Error() string
type ErrForbidden ¶
type ErrForbidden struct{}
ErrForbidden describes a forbidden request.
func (*ErrForbidden) Error ¶
func (e *ErrForbidden) Error() string
type ErrInternalErrors ¶
type ErrInternalErrors struct{}
ErrInternalErrors describes a generic error that led to an internal server error.
func (*ErrInternalErrors) Error ¶
func (e *ErrInternalErrors) Error() string
type ErrMemberAlreadyExists ¶
type ErrMemberAlreadyExists struct{}
func (*ErrMemberAlreadyExists) Error ¶
func (e *ErrMemberAlreadyExists) Error() string
type ErrMultipleResults ¶
type ErrMultipleResults struct{}
ErrMultipleResults describes an error when multiple resources were found by an API call that should return only one.
func (*ErrMultipleResults) Error ¶
func (e *ErrMultipleResults) Error() string
type ErrNoMemberFound ¶
type ErrNoMemberFound struct{}
func (*ErrNoMemberFound) Error ¶
func (e *ErrNoMemberFound) Error() string
type ErrNotFound ¶
type ErrNotFound struct{}
ErrNotFound describes an error when no corresponding resources could be found.
func (*ErrNotFound) Error ¶
func (e *ErrNotFound) Error() string
type ErrProjectIDNotExists ¶
type ErrProjectIDNotExists struct{}
ErrProjectIDNotExists describes an error when no proper project ID is found.
func (*ErrProjectIDNotExists) Error ¶
func (e *ErrProjectIDNotExists) Error() string
Error returns the error message.
type ErrProjectIllegalIDFormat ¶
type ErrProjectIllegalIDFormat struct{}
ErrProjectIllegalIDFormat describes an illegal request format.
func (*ErrProjectIllegalIDFormat) Error ¶
func (e *ErrProjectIllegalIDFormat) Error() string
Error returns the error message.
type ErrProjectInternalErrors ¶
type ErrProjectInternalErrors struct{}
ErrProjectInternalErrors describes server-side internal errors.
func (*ErrProjectInternalErrors) Error ¶
func (e *ErrProjectInternalErrors) Error() string
Error returns the error message.
type ErrProjectInvalidRequest ¶
type ErrProjectInvalidRequest struct{}
ErrProjectInvalidRequest describes a communication error when performing project member operations.
func (*ErrProjectInvalidRequest) Error ¶
func (e *ErrProjectInvalidRequest) Error() string
Error returns the error message.
type ErrProjectMemberIllegalFormat ¶
type ErrProjectMemberIllegalFormat struct{}
ErrProjectMemberIllegalFormat describes a communication error when performing project member operations.
func (*ErrProjectMemberIllegalFormat) Error ¶
func (e *ErrProjectMemberIllegalFormat) Error() string
Error returns the error message.
type ErrProjectMemberMismatch ¶
type ErrProjectMemberMismatch struct{}
ErrProjectMemberMismatch describes an error when user does not exist in context of project member operations.
func (*ErrProjectMemberMismatch) Error ¶
func (e *ErrProjectMemberMismatch) Error() string
Error returns the error message.
type ErrProjectMetadataAlreadyExists ¶
type ErrProjectMetadataAlreadyExists struct{}
ErrProjectMetadataAlreadyExists describes an error, which happens when a metadata key of a project is tried to be created a second time.
func (*ErrProjectMetadataAlreadyExists) Error ¶
func (e *ErrProjectMetadataAlreadyExists) Error() string
Error returns the error message.
type ErrProjectMetadataInvalidRequest ¶
type ErrProjectMetadataInvalidRequest struct{}
func (*ErrProjectMetadataInvalidRequest) Error ¶
func (e *ErrProjectMetadataInvalidRequest) Error() string
type ErrProjectMetadataKeyUndefined ¶
type ErrProjectMetadataKeyUndefined struct{}
func (*ErrProjectMetadataKeyUndefined) Error ¶
func (e *ErrProjectMetadataKeyUndefined) Error() string
type ErrProjectMetadataUndefined ¶
type ErrProjectMetadataUndefined struct{}
func (*ErrProjectMetadataUndefined) Error ¶
func (e *ErrProjectMetadataUndefined) Error() string
Error returns the error message.
type ErrProjectMetadataValueAutoScanUndefined ¶
type ErrProjectMetadataValueAutoScanUndefined struct{}
ErrProjectMetadataValueAutoScanUndefined describes an error regarding a metadata value being undefined or nil.
func (*ErrProjectMetadataValueAutoScanUndefined) Error ¶
func (e *ErrProjectMetadataValueAutoScanUndefined) Error() string
Error returns the error message.
type ErrProjectMetadataValueEnableContentTrustUndefined ¶
type ErrProjectMetadataValueEnableContentTrustUndefined struct{}
ErrProjectMetadataValueEnableContentTrustUndefined describes an error regarding a metadata value being undefined or nil.
func (*ErrProjectMetadataValueEnableContentTrustUndefined) Error ¶
func (e *ErrProjectMetadataValueEnableContentTrustUndefined) Error() string
Error returns the error message.
type ErrProjectMetadataValuePreventVulUndefined ¶
type ErrProjectMetadataValuePreventVulUndefined struct{}
ErrProjectMetadataValuePreventVulUndefined describes an error regarding a metadata value being undefined or nil.
func (*ErrProjectMetadataValuePreventVulUndefined) Error ¶
func (e *ErrProjectMetadataValuePreventVulUndefined) Error() string
Error returns the error message.
type ErrProjectMetadataValuePublicUndefined ¶
type ErrProjectMetadataValuePublicUndefined struct{}
ErrProjectMetadataValuePublicUndefined describes an error regarding a metadata value being undefined or nil.
func (*ErrProjectMetadataValuePublicUndefined) Error ¶
func (e *ErrProjectMetadataValuePublicUndefined) Error() string
Error returns the error message.
type ErrProjectMetadataValueRetentionIDUndefined ¶
type ErrProjectMetadataValueRetentionIDUndefined struct{}
func (*ErrProjectMetadataValueRetentionIDUndefined) Error ¶
func (e *ErrProjectMetadataValueRetentionIDUndefined) Error() string
Error returns the error message.
type ErrProjectMetadataValueReuseSysCveAllowlistUndefined ¶
type ErrProjectMetadataValueReuseSysCveAllowlistUndefined struct{}
ErrProjectMetadataValueReuseSysCveAllowlistUndefined describes an error regarding a metadata value being undefined or nil.
func (*ErrProjectMetadataValueReuseSysCveAllowlistUndefined) Error ¶
func (e *ErrProjectMetadataValueReuseSysCveAllowlistUndefined) Error() string
Error returns the error message.
type ErrProjectMetadataValueSeverityUndefined ¶
type ErrProjectMetadataValueSeverityUndefined struct{}
ErrProjectMetadataValueSeverityUndefined describes an error regarding a metadata value being undefined or nil.
func (*ErrProjectMetadataValueSeverityUndefined) Error ¶
func (e *ErrProjectMetadataValueSeverityUndefined) Error() string
Error returns the error message.
type ErrProjectMismatch ¶
type ErrProjectMismatch struct{}
ErrProjectMismatch describes a failed lookup of a project with name/id pair.
func (*ErrProjectMismatch) Error ¶
func (e *ErrProjectMismatch) Error() string
Error returns the error message.
type ErrProjectNameAlreadyExists ¶
type ErrProjectNameAlreadyExists struct{}
ErrProjectNameAlreadyExists describes a duplicate project name error.
func (*ErrProjectNameAlreadyExists) Error ¶
func (e *ErrProjectNameAlreadyExists) Error() string
Error returns the error message.
type ErrProjectNameNotProvided ¶
type ErrProjectNameNotProvided struct{}
ErrProjectNameNotProvided describes a missing project name.
func (*ErrProjectNameNotProvided) Error ¶
func (e *ErrProjectNameNotProvided) Error() string
Error returns the error message.
type ErrProjectNoMemberProvided ¶
type ErrProjectNoMemberProvided struct{}
ErrProjectNoMemberProvided describes an error when a project's member is not provided.
func (*ErrProjectNoMemberProvided) Error ¶
func (e *ErrProjectNoMemberProvided) Error() string
Error returns the error message.
type ErrProjectNoPermission ¶
type ErrProjectNoPermission struct{}
ErrProjectNoPermission describes a request error without permission.
func (*ErrProjectNoPermission) Error ¶
func (e *ErrProjectNoPermission) Error() string
Error returns the error message.
type ErrProjectNoWebhookPolicyProvided ¶
type ErrProjectNoWebhookPolicyProvided struct{}
ErrProjectNoWebhookPolicyProvided describes an error when no webhook policy is provided.
func (*ErrProjectNoWebhookPolicyProvided) Error ¶
func (e *ErrProjectNoWebhookPolicyProvided) Error() string
Error returns the error message.
type ErrProjectNotFound ¶
type ErrProjectNotFound struct{}
ErrProjectNotFound describes an error when a specific project is not found.
func (*ErrProjectNotFound) Error ¶
func (e *ErrProjectNotFound) Error() string
Error returns the error message.
type ErrProjectNotProvided ¶
type ErrProjectNotProvided struct{}
func (*ErrProjectNotProvided) Error ¶
func (e *ErrProjectNotProvided) Error() string
Error returns the error message.
type ErrProjectUnknownResource ¶
type ErrProjectUnknownResource struct{}
ErrProjectUnknownResource describes an error after requesting an unknown resource.
func (*ErrProjectUnknownResource) Error ¶
func (e *ErrProjectUnknownResource) Error() string
Error returns the error message.
type ErrQuotaIllegalIDFormat ¶
type ErrQuotaIllegalIDFormat struct{}
ErrQuotaIllegalIDFormat describes an error due to an illegal request format.
func (*ErrQuotaIllegalIDFormat) Error ¶
func (e *ErrQuotaIllegalIDFormat) Error() string
Error returns the error message.
type ErrQuotaInternalServerErrors ¶
type ErrQuotaInternalServerErrors struct{}
ErrQuotaInternalServerErrors describes miscellaneous internal server errors.
func (*ErrQuotaInternalServerErrors) Error ¶
func (e *ErrQuotaInternalServerErrors) Error() string
Error returns the error message.
type ErrQuotaNoPermission ¶
type ErrQuotaNoPermission struct{}
ErrQuotaNoPermission describes an error in the request due to the lack of permissions.
func (*ErrQuotaNoPermission) Error ¶
func (e *ErrQuotaNoPermission) Error() string
Error returns the error message.
type ErrQuotaRefNotFound ¶
type ErrQuotaRefNotFound struct{}
ErrQuotaRefNotFound describes an error when the quota reference could not be found.
func (*ErrQuotaRefNotFound) Error ¶
func (e *ErrQuotaRefNotFound) Error() string
type ErrQuotaUnauthorized ¶
type ErrQuotaUnauthorized struct{}
ErrQuotaUnauthorized describes an unauthorized request.
func (*ErrQuotaUnauthorized) Error ¶
func (e *ErrQuotaUnauthorized) Error() string
Error returns the error message.
type ErrQuotaUnknownResource ¶
type ErrQuotaUnknownResource struct{}
ErrQuotaUnknownResource describes an error when the specified quota could not be found.
func (*ErrQuotaUnknownResource) Error ¶
func (e *ErrQuotaUnknownResource) Error() string
Error returns the error message.
type ErrRegistryIDNotExists ¶
type ErrRegistryIDNotExists struct{}
ErrRegistryIDNotExists describes an error when no proper registry ID is found.
func (*ErrRegistryIDNotExists) Error ¶
func (e *ErrRegistryIDNotExists) Error() string
Error returns the error message.
type ErrRegistryIllegalIDFormat ¶
type ErrRegistryIllegalIDFormat struct{}
ErrRegistryIllegalIDFormat describes an illegal request format.
func (*ErrRegistryIllegalIDFormat) Error ¶
func (e *ErrRegistryIllegalIDFormat) Error() string
Error returns the error message.
type ErrRegistryInternalErrors ¶
type ErrRegistryInternalErrors struct{}
ErrRegistryInternalErrors describes server-side internal errors.
func (*ErrRegistryInternalErrors) Error ¶
func (e *ErrRegistryInternalErrors) Error() string
Error returns the error message.
type ErrRegistryMismatch ¶
type ErrRegistryMismatch struct{}
ErrRegistryMismatch describes a failed lookup of a registry with name/id pair.
func (*ErrRegistryMismatch) Error ¶
func (e *ErrRegistryMismatch) Error() string
Error returns the error message.
type ErrRegistryNameAlreadyExists ¶
type ErrRegistryNameAlreadyExists struct{}
ErrRegistryNameAlreadyExists describes a duplicate registry name error.
func (*ErrRegistryNameAlreadyExists) Error ¶
func (e *ErrRegistryNameAlreadyExists) Error() string
Error returns the error message.
type ErrRegistryNoPermission ¶
type ErrRegistryNoPermission struct{}
ErrRegistryNoPermission describes a request error without permission.
func (*ErrRegistryNoPermission) Error ¶
func (e *ErrRegistryNoPermission) Error() string
Error returns the error message.
type ErrRegistryNotFound ¶
type ErrRegistryNotFound struct{}
ErrRegistryNotFound describes an error when a specific registry is not found.
func (*ErrRegistryNotFound) Error ¶
func (e *ErrRegistryNotFound) Error() string
Error returns the error message.
type ErrRegistryNotProvided ¶
type ErrRegistryNotProvided struct{}
ErrRegistryNotProvided describes an error when no registry was provided.
func (*ErrRegistryNotProvided) Error ¶
func (e *ErrRegistryNotProvided) Error() string
Error returns the error message.
type ErrRegistryUnauthorized ¶
type ErrRegistryUnauthorized struct{}
ErrRegistryUnauthorized describes an unauthorized request.
func (*ErrRegistryUnauthorized) Error ¶
func (e *ErrRegistryUnauthorized) Error() string
Error returns the error message.
type ErrRobotAccountInternalErrors ¶
type ErrRobotAccountInternalErrors struct{}
ErrRobotAccountInternalErrors describes server-sided internal errors.
func (*ErrRobotAccountInternalErrors) Error ¶
func (e *ErrRobotAccountInternalErrors) Error() string
Error returns the error message.
type ErrRobotAccountInvalid ¶
type ErrRobotAccountInvalid struct{}
ErrRobotAccountInvalid describes an invalid robot account error.
func (*ErrRobotAccountInvalid) Error ¶
func (e *ErrRobotAccountInvalid) Error() string
Error returns the error message.
type ErrRobotAccountNoPermission ¶
type ErrRobotAccountNoPermission struct{}
ErrRobotAccountNoPermission describes a request error without permission.
func (*ErrRobotAccountNoPermission) Error ¶
func (e *ErrRobotAccountNoPermission) Error() string
Error returns the error message.
type ErrRobotAccountUnauthorized ¶
type ErrRobotAccountUnauthorized struct{}
ErrRobotAccountUnauthorized describes an unauthorized request to the 'robots' API.
func (*ErrRobotAccountUnauthorized) Error ¶
func (e *ErrRobotAccountUnauthorized) Error() string
Error returns the error message.
type ErrRobotAccountUnknownResource ¶
type ErrRobotAccountUnknownResource struct{}
ErrRobotAccountUnknownResource describes an error when the specified robot account could not be found.
func (*ErrRobotAccountUnknownResource) Error ¶
func (e *ErrRobotAccountUnknownResource) Error() string
Error returns the error message.
type ErrSystemGcInProgress ¶
type ErrSystemGcInProgress struct{}
ErrSystemGcInProgress describes that a gc progress is already running.
func (*ErrSystemGcInProgress) Error ¶
func (e *ErrSystemGcInProgress) Error() string
Error returns the error message.
type ErrSystemGcScheduleIdentical ¶
type ErrSystemGcScheduleIdentical struct{}
ErrSystemGcScheduleIdentical describes equality between two GC schedules.
func (*ErrSystemGcScheduleIdentical) Error ¶
func (e *ErrSystemGcScheduleIdentical) Error() string
Error returns the error message.
type ErrSystemGcScheduleNotProvided ¶
type ErrSystemGcScheduleNotProvided struct{}
ErrSystemGcScheduleNotProvided describes the absence of a required schedule.
func (*ErrSystemGcScheduleNotProvided) Error ¶
func (e *ErrSystemGcScheduleNotProvided) Error() string
Error returns the error message.
type ErrSystemGcScheduleParametersUndefined ¶
type ErrSystemGcScheduleParametersUndefined struct{}
ErrSystemGcScheduleParametersUndefined describes an error when a GC schedule's parameters are undefined
func (*ErrSystemGcScheduleParametersUndefined) Error ¶
func (e *ErrSystemGcScheduleParametersUndefined) Error() string
Error returns the error message.
type ErrSystemGcScheduleUndefined ¶
type ErrSystemGcScheduleUndefined struct{}
ErrSystemGcScheduleUndefined describes an error when the fetched gc schedule is undefined.
func (*ErrSystemGcScheduleUndefined) Error ¶
func (e *ErrSystemGcScheduleUndefined) Error() string
Error returns the error message.
type ErrSystemGcUndefined ¶
type ErrSystemGcUndefined struct{}
ErrSystemGcUndefined describes a server-side response returning an empty GC schedule.
func (*ErrSystemGcUndefined) Error ¶
func (e *ErrSystemGcUndefined) Error() string
Error returns the error message.
type ErrSystemInternalErrors ¶
type ErrSystemInternalErrors struct{}
ErrSystemInternalErrors describes server-side internal errors.
func (*ErrSystemInternalErrors) Error ¶
func (e *ErrSystemInternalErrors) Error() string
Error returns the error message.
type ErrSystemInvalidSchedule ¶
type ErrSystemInvalidSchedule struct{}
ErrSystemInvalidSchedule describes an invalid schedule type request.
func (*ErrSystemInvalidSchedule) Error ¶
func (e *ErrSystemInvalidSchedule) Error() string
Error returns the error message.
type ErrSystemNoPermission ¶
type ErrSystemNoPermission struct{}
ErrSystemNoPermission describes a request error without permission.
func (*ErrSystemNoPermission) Error ¶
func (e *ErrSystemNoPermission) Error() string
Error returns the error message.
type ErrSystemUnauthorized ¶
type ErrSystemUnauthorized struct{}
ErrSystemUnauthorized describes an unauthorized request.
func (*ErrSystemUnauthorized) Error ¶
func (e *ErrSystemUnauthorized) Error() string
Error returns the error message.
type ErrUnauthorized ¶
type ErrUnauthorized struct{}
ErrUnauthorized describes an unauthorized request.
func (*ErrUnauthorized) Error ¶
func (e *ErrUnauthorized) Error() string
Error returns the error message.
type ErrUnsupportedMediaType ¶ added in v5.1.0
type ErrUnsupportedMediaType struct{}
ErrUnsupportedMediaType describes an error when the request contains an unsupported media type.
func (*ErrUnsupportedMediaType) Error ¶ added in v5.1.0
func (e *ErrUnsupportedMediaType) Error() string
type ErrUserAlreadyExists ¶
type ErrUserAlreadyExists struct{}
ErrUserAlreadyExists describes an error indicating that this user already exists.
func (*ErrUserAlreadyExists) Error ¶
func (e *ErrUserAlreadyExists) Error() string
type ErrUserBadRequest ¶
type ErrUserBadRequest struct{}
ErrUserBadRequest describes a formal error when creating or updating a user (such as bad password).
func (*ErrUserBadRequest) Error ¶
func (e *ErrUserBadRequest) Error() string
type ErrUserIDNotExists ¶
type ErrUserIDNotExists struct{}
ErrUserIDNotExists describes an error indicating a nonexistent user id.
func (*ErrUserIDNotExists) Error ¶
func (e *ErrUserIDNotExists) Error() string
type ErrUserInvalidID ¶
type ErrUserInvalidID struct{}
ErrUserInvalidID describes an error indicating an invalid user id.
func (*ErrUserInvalidID) Error ¶
func (e *ErrUserInvalidID) Error() string
type ErrUserMismatch ¶
type ErrUserMismatch struct{}
ErrUserMismatch describes an error when the id and name of a user do not match on server side.
func (*ErrUserMismatch) Error ¶
func (e *ErrUserMismatch) Error() string
type ErrUserNotFound ¶
type ErrUserNotFound struct{}
ErrUserNotFound describes an error when a specific user was not found on server side.
func (*ErrUserNotFound) Error ¶
func (e *ErrUserNotFound) Error() string
type ErrUserPasswordInvalid ¶
type ErrUserPasswordInvalid struct{}
ErrUserPasswordInvalid describes an error indicating an invalid password.
func (*ErrUserPasswordInvalid) Error ¶
func (e *ErrUserPasswordInvalid) Error() string