problem

package
v0.0.0-...-e84ac6a Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CauseAccessTokenDenied            = "ACCESS_TOKEN_DENIED"
	CauseCCAVerificationFailure       = "CCA_VERIFICATION_FAILURE"
	CauseIncorrectLength              = "INCORRECT_LENGTH"
	CauseInsufficientResources        = "INSUFFICIENT_RESOURCES"
	CauseInvalidAPI                   = "INVALID_API"
	CauseInvalidDiscoveryParam        = "INVALID_DISCOVERY_PARAM"
	CauseInvalidMsgFormat             = "INVALID_MSG_FORMAT"
	CauseInvalidQueryParam            = "INVALID_QUERY_PARAM"
	CauseMandatoryIEIncorrect         = "MANDATORY_IE_INCORRECT"
	CauseMandatoryIEMissing           = "MANDATORY_IE_MISSING"
	CauseMandatoryQueryParamIncorrect = "MANDATORY_QUERY_PARAM_INCORRECT"
	CauseMandatoryQueryParamMissing   = "MANDATORY_QUERY_PARAM_MISSING"
	CauseMissingAccessTokenInfo       = "MISSING_ACCESS_TOKEN_INFO"
	CauseModificationNotAllowed       = "MODIFICATION_NOT_ALLOWED"
	CauseNFCongestion                 = "NF_CONGESTION"
	CauseNFCongestionRisk             = "NF_CONGESTION_RISK"
	CauseNFDiscoveryFailure           = "NF_DISCOVERY_FAILURE"
	CauseNFFailover                   = "NF_FAILOVER"
	CauseNFServiceFailover            = "NF_SERVICE_FAILOVER"
	CauseOptionalIEIncorrect          = "OPTIONAL_IE_INCORRECT"
	CauseOptionalQueryParamIncorrect  = "OPTIONAL_QUERY_PARAM_INCORRECT"
	CauseResourceContextNotFound      = "RESOURCE_CONTEXT_NOT_FOUND"
	CauseResourceURIStructureNotFound = "RESOURCE_URI_STRUCTURE_NOT_FOUND"
	CauseSubscriptionNotFound         = "SUBSCRIPTION_NOT_FOUND"
	CauseSystemFailure                = "SYSTEM_FAILURE"
	CauseTargetNFNotReachable         = "TARGET_NF_NOT_REACHABLE"
	CauseTimedOutRequest              = "TIMED_OUT_REQUEST"
	CauseTokenCCAMismatch             = "TOKEN_CCA_MISMATCH"
	CauseUnspecifiedMsgFailure        = "UNSPECIFIED_MSG_FAILURE"
	CauseUnspecifiedNFFailure         = "UNSPECIFIED_NF_FAILURE"
)

Variables

This section is empty.

Functions

func AccessTokenDenied

func AccessTokenDenied(detail string) models.ProblemDetails

func CCAVerificationFailure

func CCAVerificationFailure(detail string) models.ProblemDetails

func ExtractBodyAndHttpResponse

func ExtractBodyAndHttpResponse(v any) (body []byte, httpResponse *http.Response, err error)

func ExtractStatusCodeAndProblemDetails

func ExtractStatusCodeAndProblemDetails(v any) (statusCode int, problemDetails *models.ProblemDetails, err error)

func IncorrectLength

func IncorrectLength(detail string) models.ProblemDetails

func InsufficientResources

func InsufficientResources(detail string) models.ProblemDetails

func InvalidAPI

func InvalidAPI(detail string) models.ProblemDetails

func InvalidDiscoveryParam

func InvalidDiscoveryParam(detail string) models.ProblemDetails

func InvalidMsgFormat

func InvalidMsgFormat(detail string) models.ProblemDetails

func InvalidQueryParam

func InvalidQueryParam(invalidParams []models.InvalidParam, detail string) models.ProblemDetails

func MandatoryIEIncorrect

func MandatoryIEIncorrect(invalidParams []models.InvalidParam, detail string) models.ProblemDetails

func MandatoryIEMissing

func MandatoryIEMissing(invalidParams []models.InvalidParam, detail string) models.ProblemDetails

func MandatoryQueryParamIncorrect

func MandatoryQueryParamIncorrect(invalidParams []models.InvalidParam, detail string) models.ProblemDetails

func MandatoryQueryParamMissing

func MandatoryQueryParamMissing(invalidParams []models.InvalidParam, detail string) models.ProblemDetails

func MissingAccessTokenInfo

func MissingAccessTokenInfo(detail string) models.ProblemDetails

func ModificationNotAllowed

func ModificationNotAllowed(detail string) models.ProblemDetails

func NFCongestion

func NFCongestion(detail string) models.ProblemDetails

func NFCongestionRisk

func NFCongestionRisk(detail string) models.ProblemDetails

func NFDiscoveryFailure

func NFDiscoveryFailure(detail string) models.ProblemDetails

func NFFailover

func NFFailover(detail string) models.ProblemDetails

func NFServiceFailover

func NFServiceFailover(detail string) models.ProblemDetails

func NotImplemented

func NotImplemented() models.ProblemDetails

func OptionalIEIncorrect

func OptionalIEIncorrect(invalidParams []models.InvalidParam, detail string) models.ProblemDetails

func OptionalQueryParamIncorrect

func OptionalQueryParamIncorrect(invalidParams []models.InvalidParam, detail string) models.ProblemDetails

func ResourceContextNotFound

func ResourceContextNotFound(detail string) models.ProblemDetails

func ResourceURIStructureNotFound

func ResourceURIStructureNotFound(detail string) models.ProblemDetails

func SubscriptionNotFound

func SubscriptionNotFound(detail string) models.ProblemDetails

func SystemFailure

func SystemFailure(detail string) models.ProblemDetails

func TargetNFNotReachable

func TargetNFNotReachable(detail string) models.ProblemDetails

func TimedOutRequest

func TimedOutRequest(detail string) models.ProblemDetails

func TokenCCAMismatch

func TokenCCAMismatch(detail string) models.ProblemDetails

func UnspecifiedMsgFailure

func UnspecifiedMsgFailure(detail string) models.ProblemDetails

func UnspecifiedNFFailure

func UnspecifiedNFFailure(detail string) models.ProblemDetails

Types

This section is empty.

Jump to

Keyboard shortcuts

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