Documentation ¶
Index ¶
- func NewConfigMap() *corev1.ConfigMap
- func NewSecret() *corev1.Secret
- func NewTestSchemeWithCoreV1() *runtime.Scheme
- func NewTestSchemeWithCoreV1Alpha1() *runtime.Scheme
- func NewTestSchemeWithCoreV1AppsV1() *runtime.Scheme
- type CtrlClient
- func (c *CtrlClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (c *CtrlClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (c *CtrlClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (c *CtrlClient) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) error
- func (c *CtrlClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (c *CtrlClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (c *CtrlClient) RESTMapper() meta.RESTMapper
- func (c *CtrlClient) Scheme() *runtime.Scheme
- func (c *CtrlClient) Status() client.StatusWriter
- func (c *CtrlClient) SubResource(string) client.SubResourceClient
- func (c *CtrlClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type CtrlStatusClient
- func (c *CtrlStatusClient) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (c *CtrlStatusClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (c *CtrlStatusClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
- type DynamicClient
- type DynamicClientNamespaceableResourceInterface
- func (dc *DynamicClientNamespaceableResourceInterface) Apply(ctx context.Context, name string, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientNamespaceableResourceInterface) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientNamespaceableResourceInterface) Create(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientNamespaceableResourceInterface) Delete(ctx context.Context, name string, options metav1.DeleteOptions, ...) error
- func (dc *DynamicClientNamespaceableResourceInterface) DeleteCollection(ctx context.Context, options metav1.DeleteOptions, ...) error
- func (dc *DynamicClientNamespaceableResourceInterface) Get(ctx context.Context, name string, options metav1.GetOptions, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientNamespaceableResourceInterface) List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
- func (dc *DynamicClientNamespaceableResourceInterface) Namespace(namespace string) dynamic.ResourceInterface
- func (dc *DynamicClientNamespaceableResourceInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientNamespaceableResourceInterface) Update(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientNamespaceableResourceInterface) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientNamespaceableResourceInterface) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type DynamicClientResourceInterface
- func (dc *DynamicClientResourceInterface) Apply(ctx context.Context, name string, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientResourceInterface) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientResourceInterface) Create(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientResourceInterface) Delete(ctx context.Context, name string, options metav1.DeleteOptions, ...) error
- func (dc *DynamicClientResourceInterface) DeleteCollection(ctx context.Context, options metav1.DeleteOptions, ...) error
- func (dc *DynamicClientResourceInterface) Get(ctx context.Context, name string, options metav1.GetOptions, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientResourceInterface) List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
- func (dc *DynamicClientResourceInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientResourceInterface) Update(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientResourceInterface) UpdateStatus(ctx context.Context, obj *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- func (dc *DynamicClientResourceInterface) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type InMemoryRegistry
- type RateLimitingQueue
- func (q *RateLimitingQueue) Add(item interface{})
- func (q *RateLimitingQueue) AddAfter(item interface{}, duration time.Duration)
- func (q *RateLimitingQueue) AddRateLimited(item interface{})
- func (q *RateLimitingQueue) Done(item interface{})
- func (q *RateLimitingQueue) Forget(item interface{})
- func (q *RateLimitingQueue) Get() (item interface{}, shutdown bool)
- func (q *RateLimitingQueue) Len() int
- func (q *RateLimitingQueue) NumRequeues(item interface{}) int
- func (q *RateLimitingQueue) ShutDown()
- func (q *RateLimitingQueue) ShutDownWithDrain()
- func (q *RateLimitingQueue) ShuttingDown() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigMap ¶
func NewTestSchemeWithCoreV1 ¶
Types ¶
type CtrlClient ¶
type CtrlClient struct { mock.Mock StatusMock *CtrlStatusClient }
CtrlClient is a mock for the controller-runtime client interface.
func NewClient ¶
func NewClient() *CtrlClient
func (*CtrlClient) Create ¶
func (c *CtrlClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
func (*CtrlClient) Delete ¶
func (c *CtrlClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
func (*CtrlClient) DeleteAllOf ¶
func (c *CtrlClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
func (*CtrlClient) Get ¶
func (c *CtrlClient) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error
func (*CtrlClient) List ¶
func (c *CtrlClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (*CtrlClient) Patch ¶
func (c *CtrlClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (*CtrlClient) RESTMapper ¶
func (c *CtrlClient) RESTMapper() meta.RESTMapper
func (*CtrlClient) Scheme ¶
func (c *CtrlClient) Scheme() *runtime.Scheme
func (*CtrlClient) Status ¶
func (c *CtrlClient) Status() client.StatusWriter
func (*CtrlClient) SubResource ¶ added in v1.2.0
func (c *CtrlClient) SubResource(string) client.SubResourceClient
func (*CtrlClient) Update ¶
func (c *CtrlClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
type CtrlStatusClient ¶
func (*CtrlStatusClient) Create ¶ added in v1.2.0
func (c *CtrlStatusClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error
func (*CtrlStatusClient) Patch ¶
func (c *CtrlStatusClient) Patch( ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption, ) error
func (*CtrlStatusClient) Update ¶
func (c *CtrlStatusClient) Update( ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption, ) error
type DynamicClient ¶
func NewDynamicClient ¶
func NewDynamicClient() *DynamicClient
func (*DynamicClient) Resource ¶
func (dc *DynamicClient) Resource( resource schema.GroupVersionResource, ) dynamic.NamespaceableResourceInterface
type DynamicClientNamespaceableResourceInterface ¶
func (*DynamicClientNamespaceableResourceInterface) Apply ¶
func (dc *DynamicClientNamespaceableResourceInterface) Apply( ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions, subresources ...string, ) (*unstructured.Unstructured, error)
func (*DynamicClientNamespaceableResourceInterface) ApplyStatus ¶
func (dc *DynamicClientNamespaceableResourceInterface) ApplyStatus( ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions, ) (*unstructured.Unstructured, error)
func (*DynamicClientNamespaceableResourceInterface) Create ¶
func (dc *DynamicClientNamespaceableResourceInterface) Create( ctx context.Context, obj *unstructured.Unstructured, options metav1.CreateOptions, subresources ...string, ) (*unstructured.Unstructured, error)
func (*DynamicClientNamespaceableResourceInterface) Delete ¶
func (dc *DynamicClientNamespaceableResourceInterface) Delete( ctx context.Context, name string, options metav1.DeleteOptions, subresources ...string, ) error
func (*DynamicClientNamespaceableResourceInterface) DeleteCollection ¶
func (dc *DynamicClientNamespaceableResourceInterface) DeleteCollection( ctx context.Context, options metav1.DeleteOptions, listOptions metav1.ListOptions, ) error
func (*DynamicClientNamespaceableResourceInterface) Get ¶
func (dc *DynamicClientNamespaceableResourceInterface) Get( ctx context.Context, name string, options metav1.GetOptions, subresources ...string, ) (*unstructured.Unstructured, error)
func (*DynamicClientNamespaceableResourceInterface) List ¶
func (dc *DynamicClientNamespaceableResourceInterface) List( ctx context.Context, opts metav1.ListOptions, ) (*unstructured.UnstructuredList, error)
func (*DynamicClientNamespaceableResourceInterface) Namespace ¶
func (dc *DynamicClientNamespaceableResourceInterface) Namespace( namespace string, ) dynamic.ResourceInterface
func (*DynamicClientNamespaceableResourceInterface) Patch ¶
func (dc *DynamicClientNamespaceableResourceInterface) Patch( ctx context.Context, name string, pt types.PatchType, data []byte, options metav1.PatchOptions, subresources ...string, ) (*unstructured.Unstructured, error)
func (*DynamicClientNamespaceableResourceInterface) Update ¶
func (dc *DynamicClientNamespaceableResourceInterface) Update( ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions, subresources ...string, ) (*unstructured.Unstructured, error)
func (*DynamicClientNamespaceableResourceInterface) UpdateStatus ¶
func (dc *DynamicClientNamespaceableResourceInterface) UpdateStatus( ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions, ) (*unstructured.Unstructured, error)
func (*DynamicClientNamespaceableResourceInterface) Watch ¶
func (dc *DynamicClientNamespaceableResourceInterface) Watch( ctx context.Context, opts metav1.ListOptions, ) (watch.Interface, error)
type DynamicClientResourceInterface ¶
func (*DynamicClientResourceInterface) Apply ¶
func (dc *DynamicClientResourceInterface) Apply( ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions, subresources ...string, ) (*unstructured.Unstructured, error)
func (*DynamicClientResourceInterface) ApplyStatus ¶
func (dc *DynamicClientResourceInterface) ApplyStatus( ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions, ) (*unstructured.Unstructured, error)
func (*DynamicClientResourceInterface) Create ¶
func (dc *DynamicClientResourceInterface) Create( ctx context.Context, obj *unstructured.Unstructured, options metav1.CreateOptions, subresources ...string, ) (*unstructured.Unstructured, error)
func (*DynamicClientResourceInterface) Delete ¶
func (dc *DynamicClientResourceInterface) Delete( ctx context.Context, name string, options metav1.DeleteOptions, subresources ...string, ) error
func (*DynamicClientResourceInterface) DeleteCollection ¶
func (dc *DynamicClientResourceInterface) DeleteCollection( ctx context.Context, options metav1.DeleteOptions, listOptions metav1.ListOptions, ) error
func (*DynamicClientResourceInterface) Get ¶
func (dc *DynamicClientResourceInterface) Get( ctx context.Context, name string, options metav1.GetOptions, subresources ...string, ) (*unstructured.Unstructured, error)
func (*DynamicClientResourceInterface) List ¶
func (dc *DynamicClientResourceInterface) List( ctx context.Context, opts metav1.ListOptions, ) (*unstructured.UnstructuredList, error)
func (*DynamicClientResourceInterface) Patch ¶
func (dc *DynamicClientResourceInterface) Patch( ctx context.Context, name string, pt types.PatchType, data []byte, options metav1.PatchOptions, subresources ...string, ) (*unstructured.Unstructured, error)
func (*DynamicClientResourceInterface) Update ¶
func (dc *DynamicClientResourceInterface) Update( ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions, subresources ...string, ) (*unstructured.Unstructured, error)
func (*DynamicClientResourceInterface) UpdateStatus ¶
func (dc *DynamicClientResourceInterface) UpdateStatus( ctx context.Context, obj *unstructured.Unstructured, options metav1.UpdateOptions, ) (*unstructured.Unstructured, error)
func (*DynamicClientResourceInterface) Watch ¶
func (dc *DynamicClientResourceInterface) Watch( ctx context.Context, opts metav1.ListOptions, ) (watch.Interface, error)
type InMemoryRegistry ¶ added in v1.3.0
type InMemoryRegistry struct { RoundTripper http.RoundTripper Handler http.Handler CraneOpt crane.Option }
func NewInMemoryRegistry ¶ added in v1.3.0
func NewInMemoryRegistry() *InMemoryRegistry
type RateLimitingQueue ¶
func (*RateLimitingQueue) Add ¶
func (q *RateLimitingQueue) Add(item interface{})
func (*RateLimitingQueue) AddAfter ¶
func (q *RateLimitingQueue) AddAfter(item interface{}, duration time.Duration)
func (*RateLimitingQueue) AddRateLimited ¶
func (q *RateLimitingQueue) AddRateLimited(item interface{})
func (*RateLimitingQueue) Done ¶
func (q *RateLimitingQueue) Done(item interface{})
func (*RateLimitingQueue) Forget ¶
func (q *RateLimitingQueue) Forget(item interface{})
func (*RateLimitingQueue) Get ¶
func (q *RateLimitingQueue) Get() (item interface{}, shutdown bool)
func (*RateLimitingQueue) Len ¶
func (q *RateLimitingQueue) Len() int
func (*RateLimitingQueue) NumRequeues ¶
func (q *RateLimitingQueue) NumRequeues(item interface{}) int
func (*RateLimitingQueue) ShutDown ¶
func (q *RateLimitingQueue) ShutDown()
func (*RateLimitingQueue) ShutDownWithDrain ¶
func (q *RateLimitingQueue) ShutDownWithDrain()
func (*RateLimitingQueue) ShuttingDown ¶
func (q *RateLimitingQueue) ShuttingDown() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.