Documentation ¶
Index ¶
- type ObjectFieldsAccessor
- type RESTClient
- func (c *RESTClient) APIVersion() schema.GroupVersion
- func (c *RESTClient) Close()
- func (c *RESTClient) Delete() *restclient.Request
- func (c *RESTClient) Do(req *http.Request) (*http.Response, error)
- func (c *RESTClient) EmitObjectWatchEvent(resource ccapi.ResourceType, eType watch.EventType, object runtime.Object) error
- func (c *RESTClient) Get() *restclient.Request
- func (c *RESTClient) GetRateLimiter() flowcontrol.RateLimiter
- func (c *RESTClient) List(resource ccapi.ResourceType, fieldsSelector fields.Selector) (runtime.Object, error)
- func (c *RESTClient) Nodes(fieldsSelector fields.Selector) *v1.NodeList
- func (c *RESTClient) Patch(_ types.PatchType) *restclient.Request
- func (c *RESTClient) PersistentVolumeClaims(fieldsSelector fields.Selector) *v1.PersistentVolumeClaimList
- func (c *RESTClient) PersistentVolumes(fieldsSelector fields.Selector) *v1.PersistentVolumeList
- func (c *RESTClient) Pods(fieldsSelector fields.Selector) *v1.PodList
- func (c *RESTClient) Post() *restclient.Request
- func (c *RESTClient) Put() *restclient.Request
- func (c *RESTClient) Services(fieldsSelector fields.Selector) *v1.ServiceList
- func (c *RESTClient) Verb(verb string) *restclient.Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectFieldsAccessor ¶
type ObjectFieldsAccessor struct {
// contains filtered or unexported fields
}
func NewObjectFieldsAccessor ¶
func NewObjectFieldsAccessor(obj interface{}) *ObjectFieldsAccessor
func (*ObjectFieldsAccessor) Get ¶
func (o *ObjectFieldsAccessor) Get(field string) (value string)
Get returns the value for the provided field.
func (*ObjectFieldsAccessor) Has ¶
func (o *ObjectFieldsAccessor) Has(field string) (exists bool)
type RESTClient ¶
type RESTClient struct { NegotiatedSerializer runtime.NegotiatedSerializer Req *http.Request Resp *http.Response Err error // contains filtered or unexported fields }
RESTClient provides a fake RESTClient interface.
func NewRESTClient ¶
func NewRESTClient(resourceStore store.ResourceStore, name string) *RESTClient
func (*RESTClient) APIVersion ¶
func (c *RESTClient) APIVersion() schema.GroupVersion
func (*RESTClient) Close ¶
func (c *RESTClient) Close()
func (*RESTClient) Delete ¶
func (c *RESTClient) Delete() *restclient.Request
func (*RESTClient) EmitObjectWatchEvent ¶
func (c *RESTClient) EmitObjectWatchEvent(resource ccapi.ResourceType, eType watch.EventType, object runtime.Object) error
func (*RESTClient) Get ¶
func (c *RESTClient) Get() *restclient.Request
func (*RESTClient) GetRateLimiter ¶
func (c *RESTClient) GetRateLimiter() flowcontrol.RateLimiter
func (*RESTClient) List ¶
func (c *RESTClient) List(resource ccapi.ResourceType, fieldsSelector fields.Selector) (runtime.Object, error)
func (*RESTClient) Patch ¶
func (c *RESTClient) Patch(_ types.PatchType) *restclient.Request
func (*RESTClient) PersistentVolumeClaims ¶
func (c *RESTClient) PersistentVolumeClaims(fieldsSelector fields.Selector) *v1.PersistentVolumeClaimList
func (*RESTClient) PersistentVolumes ¶
func (c *RESTClient) PersistentVolumes(fieldsSelector fields.Selector) *v1.PersistentVolumeList
func (*RESTClient) Post ¶
func (c *RESTClient) Post() *restclient.Request
func (*RESTClient) Put ¶
func (c *RESTClient) Put() *restclient.Request
func (*RESTClient) Services ¶
func (c *RESTClient) Services(fieldsSelector fields.Selector) *v1.ServiceList
func (*RESTClient) Verb ¶
func (c *RESTClient) Verb(verb string) *restclient.Request
Click to show internal directories.
Click to hide internal directories.