cpi

package
v1.121.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPIFunctionMockResponse

func GetCPIFunctionMockResponse(functionName, testType string) (*http.Response, error)

GetCPIFunctionMockResponse -Generate mock response payload for different CPI functions

func GetEmptyHTTPResponseBody added in v1.121.0

func GetEmptyHTTPResponseBody() (*http.Response, error)

GetEmptyHTTPResponseBody -Empty http respose body

Types

type CommonUtils

type CommonUtils interface {
	GetBearerToken() (string, error)
}

CommonUtils for CPI

type TokenParameters

type TokenParameters struct {
	TokenURL, Username, Password string
	Client                       piperhttp.Sender
}

TokenParameters struct

func (TokenParameters) GetBearerToken

func (tokenParameters TokenParameters) GetBearerToken() (string, error)

GetBearerToken -Provides the bearer token for making CPI OData calls

Jump to

Keyboard shortcuts

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