Documentation ¶
Index ¶
- Variables
- type Options
- type Params
- type Request
- func (r *Request) Body(in interface{}) *Request
- func (r *Request) Context(ctx context.Context)
- func (r *Request) Delete() *Request
- func (r *Request) Do() *Response
- func (r *Request) Get() *Request
- func (r *Request) Name(s string) *Request
- func (r *Request) Namespace(s string) *Request
- func (r *Request) Params(p *Params) *Request
- func (r *Request) Patch() *Request
- func (r *Request) Post() *Request
- func (r *Request) Put() *Request
- func (r *Request) Raw() (*http.Response, error)
- func (r *Request) Resource(s string) *Request
- func (r *Request) SetHeader(key, value string) *Request
- func (r *Request) SubResource(s string) *Request
- type Response
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("kubernetes: resource not found") ErrDecode = errors.New("kubernetes: error decoding") ErrUnknown = errors.New("kubernetes: unknown error") )
Errors ...
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct { LabelSelector map[string]string Annotations map[string]string Additional map[string]string }
Params is the object to pass in to set parameters on a request.
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request is used to construct a http request for the k8s API.
func (*Request) Resource ¶
Resource is the type of resource the operation is for, such as "services", "endpoints" or "pods"
func (*Request) SubResource ¶
SubResource sets a subresource on a resource, e.g. pods/log for pod logs
Click to show internal directories.
Click to hide internal directories.