runtime

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package runtime contains BloxOne DDI API helper runtime abstractions for internal client use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrimIDPrefix

func TrimIDPrefix(pathPattern string, id string) string

TrimIDPrefix removes app ID and resource type prefixes from the ID property.

If no prefix is found, TrimIDPrefix will return the original id value.

More about BloxOne DDI resource IDs: https://github.com/infobloxopen/atlas-app-toolkit/tree/v1.1.2/rpc/resource#resource

Types

type APIHTTPError

type APIHTTPError struct {
	runtime.APIError
}

APIHTTPError wraps runtime.APIError, and modifies response processing logic.

func NewAPIHTTPError

func NewAPIHTTPError(opName string, payload io.Reader, code int) *APIHTTPError

NewAPIHTTPError creates a new API HTTP error.

func (*APIHTTPError) Error

func (a *APIHTTPError) Error() string

Error method prints APIHTTPError error message.

Jump to

Keyboard shortcuts

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