utils

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeOperationContext

func DecodeOperationContext(body []byte) (map[string][]byte, error)

DecodeOperationContext unmarshals json encoding into a map[string][]byte, which is the format of operation context.

func ExtractParametersFromHTTPContext

func ExtractParametersFromHTTPContext(r *http.Request) (map[string]string, error)

func GetAvailablePort

func GetAvailablePort() (int, error)

GetAvailablePort returns a free open port that is ready to use.

func GetPodInfoFromContext

func GetPodInfoFromContext(data map[string]string) v1.PodReference

GetPodInfoFromContext gets pod information from http json object payload.

Types

This section is empty.

Jump to

Keyboard shortcuts

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