Documentation ¶
Index ¶
- Variables
- type Options
- type Params
- type Request
- func (r *Request) Body(in interface{}) *Request
- 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) Resource(s string) *Request
- func (r *Request) SetHeader(key, value string) *Request
- func (r *Request) Watch() (watch.Watch, error)
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("kubernetes: not found") ErrDecode = errors.New("kubernetes: error decoding") ErrOther = errors.New("kubernetes: unknown error") )
Errors ...
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request is used to construct a http request for the k8s API.
func (*Request) Patch ¶
Patch request https://github.com/kubernetes/kubernetes/blob/master/docs/devel/api-conventions.md#patch-operations
func (*Request) Resource ¶
Resource is the type of resource the operation is for, such as "services", "endpoints" or "pods"
Click to show internal directories.
Click to hide internal directories.