common

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AcceptHeader         = "Accept"
	OrgUnitContextHeader = "x-clumio-organizationalunit-context"
	ApiClientHeader      = "x-clumio-api-client"
	SDKVersionHeader     = "x-clumio-sdk-version"

	InternalServerError       = "Internal Server Error"
	NonSuccessStatusCodeError = "Non-success status code returned."

	Get    = "GET"
	Post   = "POST"
	Put    = "PUT"
	Patch  = "PATCH"
	Delete = "DELETE"
)

Variables

This section is empty.

Functions

func InvokeAPI

func InvokeAPI(request *InvokeAPIRequest) *apiutils.APIError

InvokeAPI invokes the REST API and returns an error if it fails.

Types

type InvokeAPIRequest

type InvokeAPIRequest struct {
	AcceptHeader string
	Body         string
	Config       config.Config
	PathParams   map[string]string
	QueryParams  map[string]string
	RequestType  string
	RequestUrl   string
	Result200    interface{}
	Result201    interface{}
	Result202    interface{}
}

InvokeAPIRequest contains the parameters required for InvokeAPI.

Jump to

Keyboard shortcuts

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