http

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GET(path string, expected *runtime.Info) (runtime.Object, error)
	POST(path string, expected *runtime.Info, body runtime.Object) (runtime.Object, error)
	POSTSlice(path string, expected *runtime.Info, body []runtime.Object) (runtime.Object, error)
	DELETE(path string, expected *runtime.Info) (runtime.Object, error)
	DELETESlice(path string, expected *runtime.Info, body []runtime.Object) (runtime.Object, error)
}

Client is the interface for doing HTTP requests that operates using runtime objects

func NewClient

func NewClient(cfg *config.Client) Client

NewClient returns implementation of

Jump to

Keyboard shortcuts

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