func()

in cns/types/codes.go [53:134]


func (c ResponseCode) String() string {
	switch c {
	case AddressUnavailable:
		return "AddressUnavailable"
	case CallToHostFailed:
		return "CallToHostFailed"
	case DockerContainerNotSpecified:
		return "DockerContainerNotSpecified"
	case EmptyOrchestratorContext:
		return "EmptyOrchestratorContext"
	case FailedToAllocateIPConfig:
		return "FailedToAllocateIpConfig"
	case InconsistentIPConfigState:
		return "InconsistentIPConfigState"
	case InvalidParameter:
		return "InvalidParameter"
	case InvalidPrimaryIPConfig:
		return "InvalidPrimaryIPConfig"
	case InvalidRequest:
		return "InvalidRequest"
	case InvalidSecondaryIPConfig:
		return "InvalidSecondaryIPConfig"
	case MalformedSubnet:
		return "MalformedSubnet"
	case NetworkContainerNotSpecified:
		return "NetworkContainerNotSpecified"
	case NetworkContainerPublishFailed:
		return "NetworkContainerPublishFailed"
	case NetworkContainerUnpublishFailed:
		return "NetworkContainerUnpublishFailed"
	case NetworkContainerVfpProgramCheckSkipped:
		return "NetworkContainerVfpProgramCheckSkipped"
	case NetworkContainerVfpProgramComplete:
		return "NetworkContainerVfpProgramComplete"
	case NetworkContainerVfpProgramPending:
		return "NetworkContainerVfpProgramPending"
	case NetworkJoinFailed:
		return "NetworkJoinFailed"
	case NmAgentSupportedApisError:
		return "NmAgentSupportedApisError"
	case NotFound:
		return "NotFound"
	case PrimaryCANotSame:
		return "PrimaryCANotSame"
	case ReservationNotFound:
		return "ReservationNotFound"
	case Success:
		return "Success"
	case UnexpectedError:
		return "UnexpectedError"
	case UnknownContainerID:
		return "UnknownContainerID"
	case UnreachableDockerDaemon:
		return "UnreachableDockerDaemon"
	case UnreachableHost:
		return "UnreachableHost"
	case UnspecifiedNetworkName:
		return "UnspecifiedNetworkName"
	case UnsupportedEnvironment:
		return "UnsupportedEnvironment"
	case UnsupportedNCVersion:
		return "UnsupportedNCVersion"
	case UnsupportedNetworkContainerType:
		return "UnsupportedNetworkContainerType"
	case UnsupportedNetworkType:
		return "UnsupportedNetworkType"
	case UnsupportedOrchestratorContext:
		return "UnsupportedOrchestratorContext"
	case UnsupportedOrchestratorType:
		return "UnsupportedOrchestratorType"
	case UnsupportedVerb:
		return "UnsupportedVerb"
	case NmAgentInternalServerError:
		return "NmAgentInternalServerError"
	case StatusUnauthorized:
		return "StatusUnauthorized"
	case FailedToAllocateBackendConfig:
		return "FailedToAllocateBackendConfig"
	default:
		return "UnknownError"
	}
}