Versions in this module Expand all Collapse all v1 v1.5.1 Feb 8, 2017 v1.5.0 Oct 23, 2016 Changes in this version + type Action interface + GetNamespace func() string + GetResource func() unversioned.GroupVersionResource + GetSubresource func() string + GetVerb func() string + Matches func(verb, resource string) bool + type ActionImpl struct + Namespace string + Resource unversioned.GroupVersionResource + Subresource string + Verb string + func (a ActionImpl) GetNamespace() string + func (a ActionImpl) GetResource() unversioned.GroupVersionResource + func (a ActionImpl) GetSubresource() string + func (a ActionImpl) GetVerb() string + func (a ActionImpl) Matches(verb, resource string) bool + type CreateAction interface + GetObject func() runtime.Object + type CreateActionImpl struct + Object runtime.Object + func NewCreateAction(resource unversioned.GroupVersionResource, namespace string, ...) CreateActionImpl + func NewRootCreateAction(resource unversioned.GroupVersionResource, object runtime.Object) CreateActionImpl + func (a CreateActionImpl) GetObject() runtime.Object + type DeleteAction interface + GetName func() string + type DeleteActionImpl struct + Name string + func NewDeleteAction(resource unversioned.GroupVersionResource, namespace, name string) DeleteActionImpl + func NewRootDeleteAction(resource unversioned.GroupVersionResource, name string) DeleteActionImpl + func (a DeleteActionImpl) GetName() string + type DeleteCollectionActionImpl struct + ListRestrictions ListRestrictions + func NewDeleteCollectionAction(resource unversioned.GroupVersionResource, namespace string, ...) DeleteCollectionActionImpl + func NewRootDeleteCollectionAction(resource unversioned.GroupVersionResource, opts api.ListOptions) DeleteCollectionActionImpl + func (a DeleteCollectionActionImpl) GetListRestrictions() ListRestrictions + type Fake struct + ProxyReactionChain []ProxyReactor + ReactionChain []Reactor + Resources map[string]*unversioned.APIResourceList + WatchReactionChain []WatchReactor + func (c *Fake) Actions() []Action + func (c *Fake) AddProxyReactor(resource string, reaction ProxyReactionFunc) + func (c *Fake) AddReactor(verb, resource string, reaction ReactionFunc) + func (c *Fake) AddWatchReactor(resource string, reaction WatchReactionFunc) + func (c *Fake) ClearActions() + func (c *Fake) Invokes(action Action, defaultReturnObj runtime.Object) (runtime.Object, error) + func (c *Fake) InvokesProxy(action Action) rest.ResponseWrapper + func (c *Fake) InvokesWatch(action Action) (watch.Interface, error) + func (c *Fake) PrependProxyReactor(resource string, reaction ProxyReactionFunc) + func (c *Fake) PrependReactor(verb, resource string, reaction ReactionFunc) + func (c *Fake) PrependWatchReactor(resource string, reaction WatchReactionFunc) + type FakeDiscovery struct + func (c *FakeDiscovery) ServerGroups() (*unversioned.APIGroupList, error) + func (c *FakeDiscovery) ServerResources() (map[string]*unversioned.APIResourceList, error) + func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*unversioned.APIResourceList, error) + func (c *FakeDiscovery) ServerVersion() (*version.Info, error) + type GenericAction interface + GetValue func() interface{} + type GenericActionImpl struct + Value interface{} + func (a GenericActionImpl) GetValue() interface{} + type GetAction interface + GetName func() string + type GetActionImpl struct + Name string + func NewGetAction(resource unversioned.GroupVersionResource, namespace, name string) GetActionImpl + func NewRootGetAction(resource unversioned.GroupVersionResource, name string) GetActionImpl + func (a GetActionImpl) GetName() string + type ListAction interface + GetListRestrictions func() ListRestrictions + type ListActionImpl struct + ListRestrictions ListRestrictions + func NewListAction(resource unversioned.GroupVersionResource, namespace string, ...) ListActionImpl + func NewRootListAction(resource unversioned.GroupVersionResource, opts api.ListOptions) ListActionImpl + func (a ListActionImpl) GetListRestrictions() ListRestrictions + type ListRestrictions struct + Fields fields.Selector + Labels labels.Selector + type ObjectScheme interface + type ObjectTracker interface + Add func(obj runtime.Object) error + Delete func(gvk unversioned.GroupVersionKind, ns, name string) error + Get func(gvk unversioned.GroupVersionKind, ns, name string) (runtime.Object, error) + List func(gvk unversioned.GroupVersionKind, ns string) (runtime.Object, error) + Update func(obj runtime.Object) error + func NewObjectTracker(scheme ObjectScheme, decoder runtime.Decoder) ObjectTracker + type PatchActionImpl struct + Name string + Patch []byte + func NewPatchAction(resource unversioned.GroupVersionResource, namespace string, name string, ...) PatchActionImpl + func NewPatchSubresourceAction(resource unversioned.GroupVersionResource, namespace, name string, ...) PatchActionImpl + func NewRootPatchAction(resource unversioned.GroupVersionResource, name string, patch []byte) PatchActionImpl + func NewRootPatchSubresourceAction(resource unversioned.GroupVersionResource, name string, patch []byte, ...) PatchActionImpl + func (a PatchActionImpl) GetName() string + func (a PatchActionImpl) GetPatch() []byte + type ProxyGetAction interface + GetName func() string + GetParams func() map[string]string + GetPath func() string + GetPort func() string + GetScheme func() string + type ProxyGetActionImpl struct + Name string + Params map[string]string + Path string + Port string + Scheme string + func NewProxyGetAction(resource unversioned.GroupVersionResource, ...) ProxyGetActionImpl + func (a ProxyGetActionImpl) GetName() string + func (a ProxyGetActionImpl) GetParams() map[string]string + func (a ProxyGetActionImpl) GetPath() string + func (a ProxyGetActionImpl) GetPort() string + func (a ProxyGetActionImpl) GetScheme() string + type ProxyReactionFunc func(action Action) (handled bool, ret rest.ResponseWrapper, err error) + type ProxyReactor interface + Handles func(action Action) bool + React func(action Action) (handled bool, ret rest.ResponseWrapper, err error) + type ReactionFunc func(action Action) (handled bool, ret runtime.Object, err error) + func ObjectReaction(tracker ObjectTracker, mapper meta.RESTMapper) ReactionFunc + type Reactor interface + Handles func(action Action) bool + React func(action Action) (handled bool, ret runtime.Object, err error) + type SimpleProxyReactor struct + Reaction ProxyReactionFunc + Resource string + func (r *SimpleProxyReactor) Handles(action Action) bool + func (r *SimpleProxyReactor) React(action Action) (bool, rest.ResponseWrapper, error) + type SimpleReactor struct + Reaction ReactionFunc + Resource string + Verb string + func (r *SimpleReactor) Handles(action Action) bool + func (r *SimpleReactor) React(action Action) (bool, runtime.Object, error) + type SimpleWatchReactor struct + Reaction WatchReactionFunc + Resource string + func (r *SimpleWatchReactor) Handles(action Action) bool + func (r *SimpleWatchReactor) React(action Action) (bool, watch.Interface, error) + type UpdateAction interface + GetObject func() runtime.Object + type UpdateActionImpl struct + Object runtime.Object + func NewRootUpdateAction(resource unversioned.GroupVersionResource, object runtime.Object) UpdateActionImpl + func NewRootUpdateSubresourceAction(resource unversioned.GroupVersionResource, subresource string, ...) UpdateActionImpl + func NewUpdateAction(resource unversioned.GroupVersionResource, namespace string, ...) UpdateActionImpl + func NewUpdateSubresourceAction(resource unversioned.GroupVersionResource, subresource string, ...) UpdateActionImpl + func (a UpdateActionImpl) GetObject() runtime.Object + type WatchAction interface + GetWatchRestrictions func() WatchRestrictions + type WatchActionImpl struct + WatchRestrictions WatchRestrictions + func NewRootWatchAction(resource unversioned.GroupVersionResource, opts api.ListOptions) WatchActionImpl + func NewWatchAction(resource unversioned.GroupVersionResource, namespace string, ...) WatchActionImpl + func (a WatchActionImpl) GetWatchRestrictions() WatchRestrictions + type WatchReactionFunc func(action Action) (handled bool, ret watch.Interface, err error) + func DefaultWatchReactor(watchInterface watch.Interface, err error) WatchReactionFunc + type WatchReactor interface + Handles func(action Action) bool + React func(action Action) (handled bool, ret watch.Interface, err error) + type WatchRestrictions struct + Fields fields.Selector + Labels labels.Selector + ResourceVersion string