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 Options ¶
Options ...
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) Body ¶
Body pass in a body to set, this is for POST, PUT and PATCH requests
func (*Request) Name ¶
Name is for targeting a specific resource by id
func (*Request) Namespace ¶
Namespace is to set the namespace to operate on
func (*Request) Params ¶
Params isused to set paramters on a request
func (*Request) Raw ¶
Raw performs a Raw HTTP request to the Kubernetes API
func (*Request) Resource ¶
Resource is the type of resource the operation is for, such as "services", "endpoints" or "pods"
func (*Request) SetHeader ¶
SetHeader sets a header on a request with a `key` and `value`
Click to show internal directories.
Click to hide internal directories.