Documentation
¶
Index ¶
- type REST
- func (r *REST) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (r *REST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *REST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (r *REST) PassThrough(ctx context.Context, options *metav1.GetOptions) ([]byte, error)
- func (r *REST) Patch(ctx context.Context, pi metaserver.PatchInfo) (runtime.Object, error)
- func (r *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- func (r *REST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REST ¶
type REST struct { *genericregistry.Store *agent.Agent }
REST implements a RESTStorage for all resource against imitator.
func (*REST) List ¶
func (r *REST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*REST) PassThrough ¶ added in v1.15.0
PassThrough The request is routed to the dynamic controller via the metaServer. If the request is approved, the response will be saved to local storage. It will be acquired from local data storage if it fails.
func (*REST) Update ¶
func (r *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
func (*REST) Watch ¶
func (r *REST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
Click to show internal directories.
Click to hide internal directories.