Documentation ¶
Overview ¶
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
This package has the automatically generated typed clients.
Index ¶
- type ChaosClient
- type ChaosInterface
- type ChaosInterfaceMock
- type ChaosInterfaceMock_DisruptionCrons_Call
- func (_c *ChaosInterfaceMock_DisruptionCrons_Call) Return(_a0 DisruptionCronInterface) *ChaosInterfaceMock_DisruptionCrons_Call
- func (_c *ChaosInterfaceMock_DisruptionCrons_Call) Run(run func(namespace string)) *ChaosInterfaceMock_DisruptionCrons_Call
- func (_c *ChaosInterfaceMock_DisruptionCrons_Call) RunAndReturn(run func(string) DisruptionCronInterface) *ChaosInterfaceMock_DisruptionCrons_Call
- type ChaosInterfaceMock_Disruptions_Call
- func (_c *ChaosInterfaceMock_Disruptions_Call) Return(_a0 DisruptionInterface) *ChaosInterfaceMock_Disruptions_Call
- func (_c *ChaosInterfaceMock_Disruptions_Call) Run(run func(namespace string)) *ChaosInterfaceMock_Disruptions_Call
- func (_c *ChaosInterfaceMock_Disruptions_Call) RunAndReturn(run func(string) DisruptionInterface) *ChaosInterfaceMock_Disruptions_Call
- type ChaosInterfaceMock_Expecter
- func (_e *ChaosInterfaceMock_Expecter) DisruptionCrons(namespace interface{}) *ChaosInterfaceMock_DisruptionCrons_Call
- func (_e *ChaosInterfaceMock_Expecter) Disruptions(namespace interface{}) *ChaosInterfaceMock_Disruptions_Call
- func (_e *ChaosInterfaceMock_Expecter) RESTClient() *ChaosInterfaceMock_RESTClient_Call
- type ChaosInterfaceMock_RESTClient_Call
- func (_c *ChaosInterfaceMock_RESTClient_Call) Return(_a0 rest.Interface) *ChaosInterfaceMock_RESTClient_Call
- func (_c *ChaosInterfaceMock_RESTClient_Call) Run(run func()) *ChaosInterfaceMock_RESTClient_Call
- func (_c *ChaosInterfaceMock_RESTClient_Call) RunAndReturn(run func() rest.Interface) *ChaosInterfaceMock_RESTClient_Call
- type DisruptionCronExpansion
- type DisruptionCronExpansionMock
- type DisruptionCronExpansionMock_Expecter
- type DisruptionCronInterface
- type DisruptionCronInterfaceMock
- func (_m *DisruptionCronInterfaceMock) Create(ctx context.Context, disruptionCron *v1beta1.DisruptionCron, ...) (*v1beta1.DisruptionCron, error)
- func (_m *DisruptionCronInterfaceMock) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (_m *DisruptionCronInterfaceMock) EXPECT() *DisruptionCronInterfaceMock_Expecter
- func (_m *DisruptionCronInterfaceMock) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.DisruptionCron, error)
- func (_m *DisruptionCronInterfaceMock) List(ctx context.Context, opts v1.ListOptions) (*v1beta1.DisruptionCronList, error)
- func (_m *DisruptionCronInterfaceMock) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type DisruptionCronInterfaceMock_Create_Call
- func (_c *DisruptionCronInterfaceMock_Create_Call) Return(_a0 *v1beta1.DisruptionCron, _a1 error) *DisruptionCronInterfaceMock_Create_Call
- func (_c *DisruptionCronInterfaceMock_Create_Call) Run(run func(ctx context.Context, disruptionCron *v1beta1.DisruptionCron, ...)) *DisruptionCronInterfaceMock_Create_Call
- func (_c *DisruptionCronInterfaceMock_Create_Call) RunAndReturn(...) *DisruptionCronInterfaceMock_Create_Call
- type DisruptionCronInterfaceMock_Delete_Call
- func (_c *DisruptionCronInterfaceMock_Delete_Call) Return(_a0 error) *DisruptionCronInterfaceMock_Delete_Call
- func (_c *DisruptionCronInterfaceMock_Delete_Call) Run(run func(ctx context.Context, name string, opts v1.DeleteOptions)) *DisruptionCronInterfaceMock_Delete_Call
- func (_c *DisruptionCronInterfaceMock_Delete_Call) RunAndReturn(run func(context.Context, string, v1.DeleteOptions) error) *DisruptionCronInterfaceMock_Delete_Call
- type DisruptionCronInterfaceMock_Expecter
- func (_e *DisruptionCronInterfaceMock_Expecter) Create(ctx interface{}, disruptionCron interface{}, opts interface{}) *DisruptionCronInterfaceMock_Create_Call
- func (_e *DisruptionCronInterfaceMock_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *DisruptionCronInterfaceMock_Delete_Call
- func (_e *DisruptionCronInterfaceMock_Expecter) Get(ctx interface{}, name interface{}, opts interface{}) *DisruptionCronInterfaceMock_Get_Call
- func (_e *DisruptionCronInterfaceMock_Expecter) List(ctx interface{}, opts interface{}) *DisruptionCronInterfaceMock_List_Call
- func (_e *DisruptionCronInterfaceMock_Expecter) Watch(ctx interface{}, opts interface{}) *DisruptionCronInterfaceMock_Watch_Call
- type DisruptionCronInterfaceMock_Get_Call
- func (_c *DisruptionCronInterfaceMock_Get_Call) Return(_a0 *v1beta1.DisruptionCron, _a1 error) *DisruptionCronInterfaceMock_Get_Call
- func (_c *DisruptionCronInterfaceMock_Get_Call) Run(run func(ctx context.Context, name string, opts v1.GetOptions)) *DisruptionCronInterfaceMock_Get_Call
- func (_c *DisruptionCronInterfaceMock_Get_Call) RunAndReturn(...) *DisruptionCronInterfaceMock_Get_Call
- type DisruptionCronInterfaceMock_List_Call
- func (_c *DisruptionCronInterfaceMock_List_Call) Return(_a0 *v1beta1.DisruptionCronList, _a1 error) *DisruptionCronInterfaceMock_List_Call
- func (_c *DisruptionCronInterfaceMock_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *DisruptionCronInterfaceMock_List_Call
- func (_c *DisruptionCronInterfaceMock_List_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (*v1beta1.DisruptionCronList, error)) *DisruptionCronInterfaceMock_List_Call
- type DisruptionCronInterfaceMock_Watch_Call
- func (_c *DisruptionCronInterfaceMock_Watch_Call) Return(_a0 watch.Interface, _a1 error) *DisruptionCronInterfaceMock_Watch_Call
- func (_c *DisruptionCronInterfaceMock_Watch_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *DisruptionCronInterfaceMock_Watch_Call
- func (_c *DisruptionCronInterfaceMock_Watch_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (watch.Interface, error)) *DisruptionCronInterfaceMock_Watch_Call
- type DisruptionCronsGetter
- type DisruptionCronsGetterMock
- type DisruptionCronsGetterMock_DisruptionCrons_Call
- func (_c *DisruptionCronsGetterMock_DisruptionCrons_Call) Return(_a0 DisruptionCronInterface) *DisruptionCronsGetterMock_DisruptionCrons_Call
- func (_c *DisruptionCronsGetterMock_DisruptionCrons_Call) Run(run func(namespace string)) *DisruptionCronsGetterMock_DisruptionCrons_Call
- func (_c *DisruptionCronsGetterMock_DisruptionCrons_Call) RunAndReturn(run func(string) DisruptionCronInterface) *DisruptionCronsGetterMock_DisruptionCrons_Call
- type DisruptionCronsGetterMock_Expecter
- type DisruptionExpansion
- type DisruptionExpansionMock
- type DisruptionExpansionMock_Expecter
- type DisruptionInterface
- type DisruptionInterfaceMock
- func (_m *DisruptionInterfaceMock) Create(ctx context.Context, disruption *v1beta1.Disruption, opts v1.CreateOptions) (*v1beta1.Disruption, error)
- func (_m *DisruptionInterfaceMock) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (_m *DisruptionInterfaceMock) EXPECT() *DisruptionInterfaceMock_Expecter
- func (_m *DisruptionInterfaceMock) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Disruption, error)
- func (_m *DisruptionInterfaceMock) List(ctx context.Context, opts v1.ListOptions) (*v1beta1.DisruptionList, error)
- func (_m *DisruptionInterfaceMock) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type DisruptionInterfaceMock_Create_Call
- func (_c *DisruptionInterfaceMock_Create_Call) Return(_a0 *v1beta1.Disruption, _a1 error) *DisruptionInterfaceMock_Create_Call
- func (_c *DisruptionInterfaceMock_Create_Call) Run(...) *DisruptionInterfaceMock_Create_Call
- func (_c *DisruptionInterfaceMock_Create_Call) RunAndReturn(...) *DisruptionInterfaceMock_Create_Call
- type DisruptionInterfaceMock_Delete_Call
- func (_c *DisruptionInterfaceMock_Delete_Call) Return(_a0 error) *DisruptionInterfaceMock_Delete_Call
- func (_c *DisruptionInterfaceMock_Delete_Call) Run(run func(ctx context.Context, name string, opts v1.DeleteOptions)) *DisruptionInterfaceMock_Delete_Call
- func (_c *DisruptionInterfaceMock_Delete_Call) RunAndReturn(run func(context.Context, string, v1.DeleteOptions) error) *DisruptionInterfaceMock_Delete_Call
- type DisruptionInterfaceMock_Expecter
- func (_e *DisruptionInterfaceMock_Expecter) Create(ctx interface{}, disruption interface{}, opts interface{}) *DisruptionInterfaceMock_Create_Call
- func (_e *DisruptionInterfaceMock_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *DisruptionInterfaceMock_Delete_Call
- func (_e *DisruptionInterfaceMock_Expecter) Get(ctx interface{}, name interface{}, opts interface{}) *DisruptionInterfaceMock_Get_Call
- func (_e *DisruptionInterfaceMock_Expecter) List(ctx interface{}, opts interface{}) *DisruptionInterfaceMock_List_Call
- func (_e *DisruptionInterfaceMock_Expecter) Watch(ctx interface{}, opts interface{}) *DisruptionInterfaceMock_Watch_Call
- type DisruptionInterfaceMock_Get_Call
- func (_c *DisruptionInterfaceMock_Get_Call) Return(_a0 *v1beta1.Disruption, _a1 error) *DisruptionInterfaceMock_Get_Call
- func (_c *DisruptionInterfaceMock_Get_Call) Run(run func(ctx context.Context, name string, opts v1.GetOptions)) *DisruptionInterfaceMock_Get_Call
- func (_c *DisruptionInterfaceMock_Get_Call) RunAndReturn(run func(context.Context, string, v1.GetOptions) (*v1beta1.Disruption, error)) *DisruptionInterfaceMock_Get_Call
- type DisruptionInterfaceMock_List_Call
- func (_c *DisruptionInterfaceMock_List_Call) Return(_a0 *v1beta1.DisruptionList, _a1 error) *DisruptionInterfaceMock_List_Call
- func (_c *DisruptionInterfaceMock_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *DisruptionInterfaceMock_List_Call
- func (_c *DisruptionInterfaceMock_List_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (*v1beta1.DisruptionList, error)) *DisruptionInterfaceMock_List_Call
- type DisruptionInterfaceMock_Watch_Call
- func (_c *DisruptionInterfaceMock_Watch_Call) Return(_a0 watch.Interface, _a1 error) *DisruptionInterfaceMock_Watch_Call
- func (_c *DisruptionInterfaceMock_Watch_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *DisruptionInterfaceMock_Watch_Call
- func (_c *DisruptionInterfaceMock_Watch_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (watch.Interface, error)) *DisruptionInterfaceMock_Watch_Call
- type DisruptionsGetter
- type DisruptionsGetterMock
- type DisruptionsGetterMock_Disruptions_Call
- func (_c *DisruptionsGetterMock_Disruptions_Call) Return(_a0 DisruptionInterface) *DisruptionsGetterMock_Disruptions_Call
- func (_c *DisruptionsGetterMock_Disruptions_Call) Run(run func(namespace string)) *DisruptionsGetterMock_Disruptions_Call
- func (_c *DisruptionsGetterMock_Disruptions_Call) RunAndReturn(run func(string) DisruptionInterface) *DisruptionsGetterMock_Disruptions_Call
- type DisruptionsGetterMock_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaosClient ¶
type ChaosClient struct {
// contains filtered or unexported fields
}
ChaosClient is used to interact with features provided by the chaos.datadoghq.com group.
func New ¶
func New(c rest.Interface) *ChaosClient
New creates a new ChaosClient for the given RESTClient.
func NewForConfig ¶
func NewForConfig(c *rest.Config) (*ChaosClient, error)
NewForConfig creates a new ChaosClient for the given config. NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), where httpClient was generated with rest.HTTPClientFor(c).
func NewForConfigAndClient ¶
NewForConfigAndClient creates a new ChaosClient for the given config and http client. Note the http client provided takes precedence over the configured transport values.
func NewForConfigOrDie ¶
func NewForConfigOrDie(c *rest.Config) *ChaosClient
NewForConfigOrDie creates a new ChaosClient for the given config and panics if there is an error in the config.
func (*ChaosClient) DisruptionCrons ¶
func (c *ChaosClient) DisruptionCrons(namespace string) DisruptionCronInterface
func (*ChaosClient) Disruptions ¶
func (c *ChaosClient) Disruptions(namespace string) DisruptionInterface
func (*ChaosClient) RESTClient ¶
func (c *ChaosClient) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type ChaosInterface ¶
type ChaosInterface interface { RESTClient() rest.Interface DisruptionsGetter DisruptionCronsGetter }
type ChaosInterfaceMock ¶
ChaosInterfaceMock is an autogenerated mock type for the ChaosInterface type
func NewChaosInterfaceMock ¶
func NewChaosInterfaceMock(t interface { mock.TestingT Cleanup(func()) }) *ChaosInterfaceMock
NewChaosInterfaceMock creates a new instance of ChaosInterfaceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ChaosInterfaceMock) DisruptionCrons ¶
func (_m *ChaosInterfaceMock) DisruptionCrons(namespace string) DisruptionCronInterface
DisruptionCrons provides a mock function with given fields: namespace
func (*ChaosInterfaceMock) Disruptions ¶
func (_m *ChaosInterfaceMock) Disruptions(namespace string) DisruptionInterface
Disruptions provides a mock function with given fields: namespace
func (*ChaosInterfaceMock) EXPECT ¶
func (_m *ChaosInterfaceMock) EXPECT() *ChaosInterfaceMock_Expecter
func (*ChaosInterfaceMock) RESTClient ¶
func (_m *ChaosInterfaceMock) RESTClient() rest.Interface
RESTClient provides a mock function with given fields:
type ChaosInterfaceMock_DisruptionCrons_Call ¶
ChaosInterfaceMock_DisruptionCrons_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisruptionCrons'
func (*ChaosInterfaceMock_DisruptionCrons_Call) Return ¶
func (_c *ChaosInterfaceMock_DisruptionCrons_Call) Return(_a0 DisruptionCronInterface) *ChaosInterfaceMock_DisruptionCrons_Call
func (*ChaosInterfaceMock_DisruptionCrons_Call) Run ¶
func (_c *ChaosInterfaceMock_DisruptionCrons_Call) Run(run func(namespace string)) *ChaosInterfaceMock_DisruptionCrons_Call
func (*ChaosInterfaceMock_DisruptionCrons_Call) RunAndReturn ¶
func (_c *ChaosInterfaceMock_DisruptionCrons_Call) RunAndReturn(run func(string) DisruptionCronInterface) *ChaosInterfaceMock_DisruptionCrons_Call
type ChaosInterfaceMock_Disruptions_Call ¶
ChaosInterfaceMock_Disruptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disruptions'
func (*ChaosInterfaceMock_Disruptions_Call) Return ¶
func (_c *ChaosInterfaceMock_Disruptions_Call) Return(_a0 DisruptionInterface) *ChaosInterfaceMock_Disruptions_Call
func (*ChaosInterfaceMock_Disruptions_Call) Run ¶
func (_c *ChaosInterfaceMock_Disruptions_Call) Run(run func(namespace string)) *ChaosInterfaceMock_Disruptions_Call
func (*ChaosInterfaceMock_Disruptions_Call) RunAndReturn ¶
func (_c *ChaosInterfaceMock_Disruptions_Call) RunAndReturn(run func(string) DisruptionInterface) *ChaosInterfaceMock_Disruptions_Call
type ChaosInterfaceMock_Expecter ¶
type ChaosInterfaceMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ChaosInterfaceMock_Expecter) DisruptionCrons ¶
func (_e *ChaosInterfaceMock_Expecter) DisruptionCrons(namespace interface{}) *ChaosInterfaceMock_DisruptionCrons_Call
DisruptionCrons is a helper method to define mock.On call
- namespace string
func (*ChaosInterfaceMock_Expecter) Disruptions ¶
func (_e *ChaosInterfaceMock_Expecter) Disruptions(namespace interface{}) *ChaosInterfaceMock_Disruptions_Call
Disruptions is a helper method to define mock.On call
- namespace string
func (*ChaosInterfaceMock_Expecter) RESTClient ¶
func (_e *ChaosInterfaceMock_Expecter) RESTClient() *ChaosInterfaceMock_RESTClient_Call
RESTClient is a helper method to define mock.On call
type ChaosInterfaceMock_RESTClient_Call ¶
ChaosInterfaceMock_RESTClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RESTClient'
func (*ChaosInterfaceMock_RESTClient_Call) Return ¶
func (_c *ChaosInterfaceMock_RESTClient_Call) Return(_a0 rest.Interface) *ChaosInterfaceMock_RESTClient_Call
func (*ChaosInterfaceMock_RESTClient_Call) Run ¶
func (_c *ChaosInterfaceMock_RESTClient_Call) Run(run func()) *ChaosInterfaceMock_RESTClient_Call
func (*ChaosInterfaceMock_RESTClient_Call) RunAndReturn ¶
func (_c *ChaosInterfaceMock_RESTClient_Call) RunAndReturn(run func() rest.Interface) *ChaosInterfaceMock_RESTClient_Call
type DisruptionCronExpansion ¶
type DisruptionCronExpansion interface{}
type DisruptionCronExpansionMock ¶
DisruptionCronExpansionMock is an autogenerated mock type for the DisruptionCronExpansion type
func NewDisruptionCronExpansionMock ¶
func NewDisruptionCronExpansionMock(t interface { mock.TestingT Cleanup(func()) }) *DisruptionCronExpansionMock
NewDisruptionCronExpansionMock creates a new instance of DisruptionCronExpansionMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DisruptionCronExpansionMock) EXPECT ¶
func (_m *DisruptionCronExpansionMock) EXPECT() *DisruptionCronExpansionMock_Expecter
type DisruptionCronExpansionMock_Expecter ¶
type DisruptionCronExpansionMock_Expecter struct {
// contains filtered or unexported fields
}
type DisruptionCronInterface ¶
type DisruptionCronInterface interface { Create(ctx context.Context, disruptionCron *v1beta1.DisruptionCron, opts v1.CreateOptions) (*v1beta1.DisruptionCron, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.DisruptionCron, error) List(ctx context.Context, opts v1.ListOptions) (*v1beta1.DisruptionCronList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) DisruptionCronExpansion }
DisruptionCronInterface has methods to work with DisruptionCron resources.
type DisruptionCronInterfaceMock ¶
DisruptionCronInterfaceMock is an autogenerated mock type for the DisruptionCronInterface type
func NewDisruptionCronInterfaceMock ¶
func NewDisruptionCronInterfaceMock(t interface { mock.TestingT Cleanup(func()) }) *DisruptionCronInterfaceMock
NewDisruptionCronInterfaceMock creates a new instance of DisruptionCronInterfaceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DisruptionCronInterfaceMock) Create ¶
func (_m *DisruptionCronInterfaceMock) Create(ctx context.Context, disruptionCron *v1beta1.DisruptionCron, opts v1.CreateOptions) (*v1beta1.DisruptionCron, error)
Create provides a mock function with given fields: ctx, disruptionCron, opts
func (*DisruptionCronInterfaceMock) Delete ¶
func (_m *DisruptionCronInterfaceMock) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete provides a mock function with given fields: ctx, name, opts
func (*DisruptionCronInterfaceMock) EXPECT ¶
func (_m *DisruptionCronInterfaceMock) EXPECT() *DisruptionCronInterfaceMock_Expecter
func (*DisruptionCronInterfaceMock) Get ¶
func (_m *DisruptionCronInterfaceMock) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.DisruptionCron, error)
Get provides a mock function with given fields: ctx, name, opts
func (*DisruptionCronInterfaceMock) List ¶
func (_m *DisruptionCronInterfaceMock) List(ctx context.Context, opts v1.ListOptions) (*v1beta1.DisruptionCronList, error)
List provides a mock function with given fields: ctx, opts
func (*DisruptionCronInterfaceMock) Watch ¶
func (_m *DisruptionCronInterfaceMock) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch provides a mock function with given fields: ctx, opts
type DisruptionCronInterfaceMock_Create_Call ¶
DisruptionCronInterfaceMock_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*DisruptionCronInterfaceMock_Create_Call) Return ¶
func (_c *DisruptionCronInterfaceMock_Create_Call) Return(_a0 *v1beta1.DisruptionCron, _a1 error) *DisruptionCronInterfaceMock_Create_Call
func (*DisruptionCronInterfaceMock_Create_Call) Run ¶
func (_c *DisruptionCronInterfaceMock_Create_Call) Run(run func(ctx context.Context, disruptionCron *v1beta1.DisruptionCron, opts v1.CreateOptions)) *DisruptionCronInterfaceMock_Create_Call
func (*DisruptionCronInterfaceMock_Create_Call) RunAndReturn ¶
func (_c *DisruptionCronInterfaceMock_Create_Call) RunAndReturn(run func(context.Context, *v1beta1.DisruptionCron, v1.CreateOptions) (*v1beta1.DisruptionCron, error)) *DisruptionCronInterfaceMock_Create_Call
type DisruptionCronInterfaceMock_Delete_Call ¶
DisruptionCronInterfaceMock_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*DisruptionCronInterfaceMock_Delete_Call) Return ¶
func (_c *DisruptionCronInterfaceMock_Delete_Call) Return(_a0 error) *DisruptionCronInterfaceMock_Delete_Call
func (*DisruptionCronInterfaceMock_Delete_Call) Run ¶
func (_c *DisruptionCronInterfaceMock_Delete_Call) Run(run func(ctx context.Context, name string, opts v1.DeleteOptions)) *DisruptionCronInterfaceMock_Delete_Call
func (*DisruptionCronInterfaceMock_Delete_Call) RunAndReturn ¶
func (_c *DisruptionCronInterfaceMock_Delete_Call) RunAndReturn(run func(context.Context, string, v1.DeleteOptions) error) *DisruptionCronInterfaceMock_Delete_Call
type DisruptionCronInterfaceMock_Expecter ¶
type DisruptionCronInterfaceMock_Expecter struct {
// contains filtered or unexported fields
}
func (*DisruptionCronInterfaceMock_Expecter) Create ¶
func (_e *DisruptionCronInterfaceMock_Expecter) Create(ctx interface{}, disruptionCron interface{}, opts interface{}) *DisruptionCronInterfaceMock_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- disruptionCron *v1beta1.DisruptionCron
- opts v1.CreateOptions
func (*DisruptionCronInterfaceMock_Expecter) Delete ¶
func (_e *DisruptionCronInterfaceMock_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *DisruptionCronInterfaceMock_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
- opts v1.DeleteOptions
func (*DisruptionCronInterfaceMock_Expecter) Get ¶
func (_e *DisruptionCronInterfaceMock_Expecter) Get(ctx interface{}, name interface{}, opts interface{}) *DisruptionCronInterfaceMock_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- name string
- opts v1.GetOptions
func (*DisruptionCronInterfaceMock_Expecter) List ¶
func (_e *DisruptionCronInterfaceMock_Expecter) List(ctx interface{}, opts interface{}) *DisruptionCronInterfaceMock_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
func (*DisruptionCronInterfaceMock_Expecter) Watch ¶
func (_e *DisruptionCronInterfaceMock_Expecter) Watch(ctx interface{}, opts interface{}) *DisruptionCronInterfaceMock_Watch_Call
Watch is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
type DisruptionCronInterfaceMock_Get_Call ¶
DisruptionCronInterfaceMock_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*DisruptionCronInterfaceMock_Get_Call) Return ¶
func (_c *DisruptionCronInterfaceMock_Get_Call) Return(_a0 *v1beta1.DisruptionCron, _a1 error) *DisruptionCronInterfaceMock_Get_Call
func (*DisruptionCronInterfaceMock_Get_Call) Run ¶
func (_c *DisruptionCronInterfaceMock_Get_Call) Run(run func(ctx context.Context, name string, opts v1.GetOptions)) *DisruptionCronInterfaceMock_Get_Call
func (*DisruptionCronInterfaceMock_Get_Call) RunAndReturn ¶
func (_c *DisruptionCronInterfaceMock_Get_Call) RunAndReturn(run func(context.Context, string, v1.GetOptions) (*v1beta1.DisruptionCron, error)) *DisruptionCronInterfaceMock_Get_Call
type DisruptionCronInterfaceMock_List_Call ¶
DisruptionCronInterfaceMock_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*DisruptionCronInterfaceMock_List_Call) Return ¶
func (_c *DisruptionCronInterfaceMock_List_Call) Return(_a0 *v1beta1.DisruptionCronList, _a1 error) *DisruptionCronInterfaceMock_List_Call
func (*DisruptionCronInterfaceMock_List_Call) Run ¶
func (_c *DisruptionCronInterfaceMock_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *DisruptionCronInterfaceMock_List_Call
func (*DisruptionCronInterfaceMock_List_Call) RunAndReturn ¶
func (_c *DisruptionCronInterfaceMock_List_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (*v1beta1.DisruptionCronList, error)) *DisruptionCronInterfaceMock_List_Call
type DisruptionCronInterfaceMock_Watch_Call ¶
DisruptionCronInterfaceMock_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*DisruptionCronInterfaceMock_Watch_Call) Return ¶
func (_c *DisruptionCronInterfaceMock_Watch_Call) Return(_a0 watch.Interface, _a1 error) *DisruptionCronInterfaceMock_Watch_Call
func (*DisruptionCronInterfaceMock_Watch_Call) Run ¶
func (_c *DisruptionCronInterfaceMock_Watch_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *DisruptionCronInterfaceMock_Watch_Call
func (*DisruptionCronInterfaceMock_Watch_Call) RunAndReturn ¶
func (_c *DisruptionCronInterfaceMock_Watch_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (watch.Interface, error)) *DisruptionCronInterfaceMock_Watch_Call
type DisruptionCronsGetter ¶
type DisruptionCronsGetter interface {
DisruptionCrons(namespace string) DisruptionCronInterface
}
DisruptionCronsGetter has a method to return a DisruptionCronInterface. A group's client should implement this interface.
type DisruptionCronsGetterMock ¶
DisruptionCronsGetterMock is an autogenerated mock type for the DisruptionCronsGetter type
func NewDisruptionCronsGetterMock ¶
func NewDisruptionCronsGetterMock(t interface { mock.TestingT Cleanup(func()) }) *DisruptionCronsGetterMock
NewDisruptionCronsGetterMock creates a new instance of DisruptionCronsGetterMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DisruptionCronsGetterMock) DisruptionCrons ¶
func (_m *DisruptionCronsGetterMock) DisruptionCrons(namespace string) DisruptionCronInterface
DisruptionCrons provides a mock function with given fields: namespace
func (*DisruptionCronsGetterMock) EXPECT ¶
func (_m *DisruptionCronsGetterMock) EXPECT() *DisruptionCronsGetterMock_Expecter
type DisruptionCronsGetterMock_DisruptionCrons_Call ¶
DisruptionCronsGetterMock_DisruptionCrons_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisruptionCrons'
func (*DisruptionCronsGetterMock_DisruptionCrons_Call) Run ¶
func (_c *DisruptionCronsGetterMock_DisruptionCrons_Call) Run(run func(namespace string)) *DisruptionCronsGetterMock_DisruptionCrons_Call
func (*DisruptionCronsGetterMock_DisruptionCrons_Call) RunAndReturn ¶
func (_c *DisruptionCronsGetterMock_DisruptionCrons_Call) RunAndReturn(run func(string) DisruptionCronInterface) *DisruptionCronsGetterMock_DisruptionCrons_Call
type DisruptionCronsGetterMock_Expecter ¶
type DisruptionCronsGetterMock_Expecter struct {
// contains filtered or unexported fields
}
func (*DisruptionCronsGetterMock_Expecter) DisruptionCrons ¶
func (_e *DisruptionCronsGetterMock_Expecter) DisruptionCrons(namespace interface{}) *DisruptionCronsGetterMock_DisruptionCrons_Call
DisruptionCrons is a helper method to define mock.On call
- namespace string
type DisruptionExpansion ¶
type DisruptionExpansion interface{}
type DisruptionExpansionMock ¶
DisruptionExpansionMock is an autogenerated mock type for the DisruptionExpansion type
func NewDisruptionExpansionMock ¶
func NewDisruptionExpansionMock(t interface { mock.TestingT Cleanup(func()) }) *DisruptionExpansionMock
NewDisruptionExpansionMock creates a new instance of DisruptionExpansionMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DisruptionExpansionMock) EXPECT ¶
func (_m *DisruptionExpansionMock) EXPECT() *DisruptionExpansionMock_Expecter
type DisruptionExpansionMock_Expecter ¶
type DisruptionExpansionMock_Expecter struct {
// contains filtered or unexported fields
}
type DisruptionInterface ¶
type DisruptionInterface interface { Create(ctx context.Context, disruption *v1beta1.Disruption, opts v1.CreateOptions) (*v1beta1.Disruption, error) Update(ctx context.Context, disruption *v1beta1.Disruption, opts v1.UpdateOptions) (*v1beta1.Disruption, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Disruption, error) List(ctx context.Context, opts v1.ListOptions) (*v1beta1.DisruptionList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) DisruptionExpansion }
DisruptionInterface has methods to work with Disruption resources.
type DisruptionInterfaceMock ¶
DisruptionInterfaceMock is an autogenerated mock type for the DisruptionInterface type
func NewDisruptionInterfaceMock ¶
func NewDisruptionInterfaceMock(t interface { mock.TestingT Cleanup(func()) }) *DisruptionInterfaceMock
NewDisruptionInterfaceMock creates a new instance of DisruptionInterfaceMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DisruptionInterfaceMock) Create ¶
func (_m *DisruptionInterfaceMock) Create(ctx context.Context, disruption *v1beta1.Disruption, opts v1.CreateOptions) (*v1beta1.Disruption, error)
Create provides a mock function with given fields: ctx, disruption, opts
func (*DisruptionInterfaceMock) Delete ¶
func (_m *DisruptionInterfaceMock) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete provides a mock function with given fields: ctx, name, opts
func (*DisruptionInterfaceMock) EXPECT ¶
func (_m *DisruptionInterfaceMock) EXPECT() *DisruptionInterfaceMock_Expecter
func (*DisruptionInterfaceMock) Get ¶
func (_m *DisruptionInterfaceMock) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Disruption, error)
Get provides a mock function with given fields: ctx, name, opts
func (*DisruptionInterfaceMock) List ¶
func (_m *DisruptionInterfaceMock) List(ctx context.Context, opts v1.ListOptions) (*v1beta1.DisruptionList, error)
List provides a mock function with given fields: ctx, opts
func (*DisruptionInterfaceMock) Watch ¶
func (_m *DisruptionInterfaceMock) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch provides a mock function with given fields: ctx, opts
type DisruptionInterfaceMock_Create_Call ¶
DisruptionInterfaceMock_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*DisruptionInterfaceMock_Create_Call) Return ¶
func (_c *DisruptionInterfaceMock_Create_Call) Return(_a0 *v1beta1.Disruption, _a1 error) *DisruptionInterfaceMock_Create_Call
func (*DisruptionInterfaceMock_Create_Call) Run ¶
func (_c *DisruptionInterfaceMock_Create_Call) Run(run func(ctx context.Context, disruption *v1beta1.Disruption, opts v1.CreateOptions)) *DisruptionInterfaceMock_Create_Call
func (*DisruptionInterfaceMock_Create_Call) RunAndReturn ¶
func (_c *DisruptionInterfaceMock_Create_Call) RunAndReturn(run func(context.Context, *v1beta1.Disruption, v1.CreateOptions) (*v1beta1.Disruption, error)) *DisruptionInterfaceMock_Create_Call
type DisruptionInterfaceMock_Delete_Call ¶
DisruptionInterfaceMock_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*DisruptionInterfaceMock_Delete_Call) Return ¶
func (_c *DisruptionInterfaceMock_Delete_Call) Return(_a0 error) *DisruptionInterfaceMock_Delete_Call
func (*DisruptionInterfaceMock_Delete_Call) Run ¶
func (_c *DisruptionInterfaceMock_Delete_Call) Run(run func(ctx context.Context, name string, opts v1.DeleteOptions)) *DisruptionInterfaceMock_Delete_Call
func (*DisruptionInterfaceMock_Delete_Call) RunAndReturn ¶
func (_c *DisruptionInterfaceMock_Delete_Call) RunAndReturn(run func(context.Context, string, v1.DeleteOptions) error) *DisruptionInterfaceMock_Delete_Call
type DisruptionInterfaceMock_Expecter ¶
type DisruptionInterfaceMock_Expecter struct {
// contains filtered or unexported fields
}
func (*DisruptionInterfaceMock_Expecter) Create ¶
func (_e *DisruptionInterfaceMock_Expecter) Create(ctx interface{}, disruption interface{}, opts interface{}) *DisruptionInterfaceMock_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- disruption *v1beta1.Disruption
- opts v1.CreateOptions
func (*DisruptionInterfaceMock_Expecter) Delete ¶
func (_e *DisruptionInterfaceMock_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *DisruptionInterfaceMock_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
- opts v1.DeleteOptions
func (*DisruptionInterfaceMock_Expecter) Get ¶
func (_e *DisruptionInterfaceMock_Expecter) Get(ctx interface{}, name interface{}, opts interface{}) *DisruptionInterfaceMock_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- name string
- opts v1.GetOptions
func (*DisruptionInterfaceMock_Expecter) List ¶
func (_e *DisruptionInterfaceMock_Expecter) List(ctx interface{}, opts interface{}) *DisruptionInterfaceMock_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
func (*DisruptionInterfaceMock_Expecter) Watch ¶
func (_e *DisruptionInterfaceMock_Expecter) Watch(ctx interface{}, opts interface{}) *DisruptionInterfaceMock_Watch_Call
Watch is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
type DisruptionInterfaceMock_Get_Call ¶
DisruptionInterfaceMock_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*DisruptionInterfaceMock_Get_Call) Return ¶
func (_c *DisruptionInterfaceMock_Get_Call) Return(_a0 *v1beta1.Disruption, _a1 error) *DisruptionInterfaceMock_Get_Call
func (*DisruptionInterfaceMock_Get_Call) Run ¶
func (_c *DisruptionInterfaceMock_Get_Call) Run(run func(ctx context.Context, name string, opts v1.GetOptions)) *DisruptionInterfaceMock_Get_Call
func (*DisruptionInterfaceMock_Get_Call) RunAndReturn ¶
func (_c *DisruptionInterfaceMock_Get_Call) RunAndReturn(run func(context.Context, string, v1.GetOptions) (*v1beta1.Disruption, error)) *DisruptionInterfaceMock_Get_Call
type DisruptionInterfaceMock_List_Call ¶
DisruptionInterfaceMock_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*DisruptionInterfaceMock_List_Call) Return ¶
func (_c *DisruptionInterfaceMock_List_Call) Return(_a0 *v1beta1.DisruptionList, _a1 error) *DisruptionInterfaceMock_List_Call
func (*DisruptionInterfaceMock_List_Call) Run ¶
func (_c *DisruptionInterfaceMock_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *DisruptionInterfaceMock_List_Call
func (*DisruptionInterfaceMock_List_Call) RunAndReturn ¶
func (_c *DisruptionInterfaceMock_List_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (*v1beta1.DisruptionList, error)) *DisruptionInterfaceMock_List_Call
type DisruptionInterfaceMock_Watch_Call ¶
DisruptionInterfaceMock_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*DisruptionInterfaceMock_Watch_Call) Return ¶
func (_c *DisruptionInterfaceMock_Watch_Call) Return(_a0 watch.Interface, _a1 error) *DisruptionInterfaceMock_Watch_Call
func (*DisruptionInterfaceMock_Watch_Call) Run ¶
func (_c *DisruptionInterfaceMock_Watch_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *DisruptionInterfaceMock_Watch_Call
func (*DisruptionInterfaceMock_Watch_Call) RunAndReturn ¶
func (_c *DisruptionInterfaceMock_Watch_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (watch.Interface, error)) *DisruptionInterfaceMock_Watch_Call
type DisruptionsGetter ¶
type DisruptionsGetter interface {
Disruptions(namespace string) DisruptionInterface
}
DisruptionsGetter has a method to return a DisruptionInterface. A group's client should implement this interface.
type DisruptionsGetterMock ¶
DisruptionsGetterMock is an autogenerated mock type for the DisruptionsGetter type
func NewDisruptionsGetterMock ¶
func NewDisruptionsGetterMock(t interface { mock.TestingT Cleanup(func()) }) *DisruptionsGetterMock
NewDisruptionsGetterMock creates a new instance of DisruptionsGetterMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DisruptionsGetterMock) Disruptions ¶
func (_m *DisruptionsGetterMock) Disruptions(namespace string) DisruptionInterface
Disruptions provides a mock function with given fields: namespace
func (*DisruptionsGetterMock) EXPECT ¶
func (_m *DisruptionsGetterMock) EXPECT() *DisruptionsGetterMock_Expecter
type DisruptionsGetterMock_Disruptions_Call ¶
DisruptionsGetterMock_Disruptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disruptions'
func (*DisruptionsGetterMock_Disruptions_Call) Return ¶
func (_c *DisruptionsGetterMock_Disruptions_Call) Return(_a0 DisruptionInterface) *DisruptionsGetterMock_Disruptions_Call
func (*DisruptionsGetterMock_Disruptions_Call) Run ¶
func (_c *DisruptionsGetterMock_Disruptions_Call) Run(run func(namespace string)) *DisruptionsGetterMock_Disruptions_Call
func (*DisruptionsGetterMock_Disruptions_Call) RunAndReturn ¶
func (_c *DisruptionsGetterMock_Disruptions_Call) RunAndReturn(run func(string) DisruptionInterface) *DisruptionsGetterMock_Disruptions_Call
type DisruptionsGetterMock_Expecter ¶
type DisruptionsGetterMock_Expecter struct {
// contains filtered or unexported fields
}
func (*DisruptionsGetterMock_Expecter) Disruptions ¶
func (_e *DisruptionsGetterMock_Expecter) Disruptions(namespace interface{}) *DisruptionsGetterMock_Disruptions_Call
Disruptions is a helper method to define mock.On call
- namespace string