common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HeaderSDKAnalytics Header
	HeaderSDKAnalytics = "X-IBMCloud-SDK-Analytics"
	// HeaderUserAgent Header
	HeaderUserAgent = "User-Agent"

	// SDKName name of this SDK
	SDKName = "ibm-cos-resource-config-sdk-go"
)
View Source
const SDKVersion = "1.0.0"

SDKVersion : version of this SDK

Variables

This section is empty.

Functions

func GetSdkHeaders

func GetSdkHeaders(serviceName string, serviceVersion string, operationID string) map[string]string

GetSdkHeaders - returns the set of SDK-specific headers to be included in an outgoing request. Parameters:

serviceName - the name of the service as defined in the API definition (e.g. "MyService1")
serviceVersion - the version of the service as defined in the API definition (e.g. "V1")
operationId - the operationId as defined in the API definition (e.g. getContext)

Returns:

a Map which contains the set of headers to be included in the REST API request

func GetSystemInfo

func GetSystemInfo() string

GetSystemInfo returns system information

func GetUserAgentInfo

func GetUserAgentInfo() string

GetUserAgentInfo returns user agent

Types

This section is empty.

Jump to

Keyboard shortcuts

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