Documentation
¶
Index ¶
Constants ¶
View Source
const ( ApplyPatchContentType ContentType = "application/apply-patch+yaml" MergePatchContentType = "application/merge-patch+json" JSONContentType = "application/json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewInCluster ¶
NewInCluster creates Client if it is inside Kubernetes.
type ContentType ¶
type ContentType string
type ResourceRequest ¶
type ResourceRequest struct {
GVR types.GroupVersionResource
Subresource string
Verb string
Namespace string
Name string
ContentType ContentType
Values url.Values
Body io.Reader
}
func (ResourceRequest) URL ¶
func (r ResourceRequest) URL() string
Click to show internal directories.
Click to hide internal directories.