helper

package
v1.4.0-dev-20240819 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAPIURL

func BuildAPIURL(version, resource string, httpsPort int) string

func BuildResourceURL

func BuildResourceURL(api, namespace, name string) string

func DeleteObject

func DeleteObject(url string) (respCode int, respBody []byte, err error)

func GetCollection

func GetCollection(url string) (collection *types.GenericCollection, respCode int, respBody []byte, err error)

func GetObject

func GetObject(url string, object interface{}) (respCode int, respBody []byte, err error)

func GetResponse added in v1.1.0

func GetResponse(url string) (respCode int, respBody []byte, err error)

func NewHTTPClient

func NewHTTPClient() *dataflow.Gout

func PostAction

func PostAction(url string, action string) (respCode int, respBody []byte, err error)

func PostObject

func PostObject(url string, object interface{}) (respCode int, respBody []byte, err error)

func PostObjectAction

func PostObjectAction(url string, object interface{}, action string) (respCode int, respBody []byte, err error)

func PostObjectByYAML

func PostObjectByYAML(url string, object interface{}) (respCode int, respBody []byte, err error)

func PutObject

func PutObject(url string, object interface{}) (respCode int, respBody []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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