problem

package
v0.0.0-...-b1a38c4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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) commondata.ProblemDetails

func CCAVerificationFailure

func CCAVerificationFailure(detail string) commondata.ProblemDetails

func ExtractBodyAndHttpResponse

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

func ExtractStatusCodeAndProblemDetails

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

func IncorrectLength

func IncorrectLength(detail string) commondata.ProblemDetails

func InsufficientResources

func InsufficientResources(detail string) commondata.ProblemDetails

func InvalidAPI

func InvalidAPI(detail string) commondata.ProblemDetails

func InvalidDiscoveryParam

func InvalidDiscoveryParam(detail string) commondata.ProblemDetails

func InvalidMsgFormat

func InvalidMsgFormat(detail string) commondata.ProblemDetails

func InvalidQueryParam

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

func MandatoryIEIncorrect

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

func MandatoryIEMissing

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

func MandatoryQueryParamIncorrect

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

func MandatoryQueryParamMissing

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

func MissingAccessTokenInfo

func MissingAccessTokenInfo(detail string) commondata.ProblemDetails

func ModificationNotAllowed

func ModificationNotAllowed(detail string) commondata.ProblemDetails

func NFCongestion

func NFCongestion(detail string) commondata.ProblemDetails

func NFCongestionRisk

func NFCongestionRisk(detail string) commondata.ProblemDetails

func NFDiscoveryFailure

func NFDiscoveryFailure(detail string) commondata.ProblemDetails

func NFFailover

func NFFailover(detail string) commondata.ProblemDetails

func NFServiceFailover

func NFServiceFailover(detail string) commondata.ProblemDetails

func NotImplemented

func NotImplemented() commondata.ProblemDetails

func OptionalIEIncorrect

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

func OptionalQueryParamIncorrect

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

func ResourceContextNotFound

func ResourceContextNotFound(detail string) commondata.ProblemDetails

func ResourceURIStructureNotFound

func ResourceURIStructureNotFound(detail string) commondata.ProblemDetails

func SubscriptionNotFound

func SubscriptionNotFound(detail string) commondata.ProblemDetails

func SystemFailure

func SystemFailure(detail string) commondata.ProblemDetails

func TargetNFNotReachable

func TargetNFNotReachable(detail string) commondata.ProblemDetails

func TimedOutRequest

func TimedOutRequest(detail string) commondata.ProblemDetails

func TokenCCAMismatch

func TokenCCAMismatch(detail string) commondata.ProblemDetails

func UnspecifiedMsgFailure

func UnspecifiedMsgFailure(detail string) commondata.ProblemDetails

func UnspecifiedNFFailure

func UnspecifiedNFFailure(detail string) commondata.ProblemDetails

Types

This section is empty.

Jump to

Keyboard shortcuts

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