restful

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CoreAPIPrefix       = "api"
	CoreAPIGroupVersion = schema.GroupVersion{Group: "", Version: "v1"}
	Prefix              = "apis"
)

Functions

This section is empty.

Types

type PodRequest

type PodRequest struct {
	Namespace     string
	LabelSelector string
	AllNamespaces bool
	PodName       string
}

func (*PodRequest) GetPod

func (podRequest *PodRequest) GetPod() (*corev1.Pod, error)

func (*PodRequest) GetPods

func (podRequest *PodRequest) GetPods() (*corev1.PodList, error)

type Request

type Request struct {
	Method string
	Path   string
	Body   io.Reader
}

func (*Request) ResponseToPod

func (req *Request) ResponseToPod() (*corev1.Pod, error)

func (*Request) ResponseToPodList

func (req *Request) ResponseToPodList() (*corev1.PodList, error)

func (*Request) RestfulRequest

func (req *Request) RestfulRequest() (*http.Response, error)

Jump to

Keyboard shortcuts

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