client

package
v1.23.11 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxRequestBodyBytes = 3 * 1024 * 1024
	RoutePrefix         = "/internal"
)

https://github.com/kubernetes/apiserver/blob/master/pkg/server/config.go#L362

View Source
const (
	ListOptionLabelSelector = "label-selector"
	ListOptionFieldSelector = "field-selector"
	ListOptionLimit         = "limit"
	ListOptionContinue      = "continue"
)
View Source
const (
	DeleteOptionDeletionPropagation = "deletion-propagation"
	DeleteOptionGracePeriod         = "grace-period-seconds"
)
View Source
const (
	PatchOptionForce = "force"
)

Variables

This section is empty.

Functions

func NotOK

func NotOK(c *gin.Context, err error)

func OK

func OK(c *gin.Context, data interface{})

Types

type ClientRest

type ClientRest struct {
	Cli client.Client
}

func (*ClientRest) Create

func (h *ClientRest) Create(c *gin.Context)

func (*ClientRest) Delete

func (h *ClientRest) Delete(c *gin.Context)

func (*ClientRest) Get

func (h *ClientRest) Get(c *gin.Context)

func (*ClientRest) List

func (h *ClientRest) List(c *gin.Context)

nolint: funlen

func (*ClientRest) Patch

func (h *ClientRest) Patch(c *gin.Context)

func (*ClientRest) PortForward

func (h *ClientRest) PortForward(c *gin.Context)

func (*ClientRest) Proxy

func (h *ClientRest) Proxy(c *gin.Context)

func (*ClientRest) Register

func (h *ClientRest) Register(r *route.Router)

func (*ClientRest) Update

func (h *ClientRest) Update(c *gin.Context)

type GVKN

type GVKN struct {
	schema.GroupVersionKind
	Namespace string
	Resource  string
	Name      string
}

Jump to

Keyboard shortcuts

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