internalversion

package
v0.0.0-...-1e8dc9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

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

func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ChaosClient, error)

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

type ChaosInterfaceMock struct {
	mock.Mock
}

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 (*ChaosInterfaceMock) RESTClient

func (_m *ChaosInterfaceMock) RESTClient() rest.Interface

RESTClient provides a mock function with given fields:

type ChaosInterfaceMock_DisruptionCrons_Call

type ChaosInterfaceMock_DisruptionCrons_Call struct {
	*mock.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 (*ChaosInterfaceMock_DisruptionCrons_Call) Run

func (*ChaosInterfaceMock_DisruptionCrons_Call) RunAndReturn

type ChaosInterfaceMock_Disruptions_Call

type ChaosInterfaceMock_Disruptions_Call struct {
	*mock.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 (*ChaosInterfaceMock_Disruptions_Call) Run

func (*ChaosInterfaceMock_Disruptions_Call) RunAndReturn

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

RESTClient is a helper method to define mock.On call

type ChaosInterfaceMock_RESTClient_Call

type ChaosInterfaceMock_RESTClient_Call struct {
	*mock.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 (*ChaosInterfaceMock_RESTClient_Call) Run

func (*ChaosInterfaceMock_RESTClient_Call) RunAndReturn

type DisruptionCronExpansion

type DisruptionCronExpansion interface{}

type DisruptionCronExpansionMock

type DisruptionCronExpansionMock struct {
	mock.Mock
}

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

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

type DisruptionCronInterfaceMock struct {
	mock.Mock
}

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

Create provides a mock function with given fields: ctx, disruptionCron, opts

func (*DisruptionCronInterfaceMock) Delete

Delete provides a mock function with given fields: ctx, name, opts

func (*DisruptionCronInterfaceMock) EXPECT

func (*DisruptionCronInterfaceMock) Get

Get provides a mock function with given fields: ctx, name, opts

func (*DisruptionCronInterfaceMock) List

List provides a mock function with given fields: ctx, opts

func (*DisruptionCronInterfaceMock) Watch

Watch provides a mock function with given fields: ctx, opts

type DisruptionCronInterfaceMock_Create_Call

type DisruptionCronInterfaceMock_Create_Call struct {
	*mock.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 (*DisruptionCronInterfaceMock_Create_Call) Run

type DisruptionCronInterfaceMock_Delete_Call

type DisruptionCronInterfaceMock_Delete_Call struct {
	*mock.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 (*DisruptionCronInterfaceMock_Delete_Call) Run

func (*DisruptionCronInterfaceMock_Delete_Call) RunAndReturn

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

type DisruptionCronInterfaceMock_Get_Call struct {
	*mock.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 (*DisruptionCronInterfaceMock_Get_Call) Run

func (*DisruptionCronInterfaceMock_Get_Call) RunAndReturn

type DisruptionCronInterfaceMock_List_Call

type DisruptionCronInterfaceMock_List_Call struct {
	*mock.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 (*DisruptionCronInterfaceMock_List_Call) Run

func (*DisruptionCronInterfaceMock_List_Call) RunAndReturn

type DisruptionCronInterfaceMock_Watch_Call

type DisruptionCronInterfaceMock_Watch_Call struct {
	*mock.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 (*DisruptionCronInterfaceMock_Watch_Call) Run

func (*DisruptionCronInterfaceMock_Watch_Call) RunAndReturn

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

type DisruptionCronsGetterMock struct {
	mock.Mock
}

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

type DisruptionCronsGetterMock_DisruptionCrons_Call

type DisruptionCronsGetterMock_DisruptionCrons_Call struct {
	*mock.Call
}

DisruptionCronsGetterMock_DisruptionCrons_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisruptionCrons'

func (*DisruptionCronsGetterMock_DisruptionCrons_Call) Return

func (*DisruptionCronsGetterMock_DisruptionCrons_Call) Run

func (*DisruptionCronsGetterMock_DisruptionCrons_Call) RunAndReturn

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

type DisruptionExpansionMock struct {
	mock.Mock
}

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

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

type DisruptionInterfaceMock struct {
	mock.Mock
}

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

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 (*DisruptionInterfaceMock) Get

Get provides a mock function with given fields: ctx, name, opts

func (*DisruptionInterfaceMock) List

List provides a mock function with given fields: ctx, opts

func (*DisruptionInterfaceMock) Watch

Watch provides a mock function with given fields: ctx, opts

type DisruptionInterfaceMock_Create_Call

type DisruptionInterfaceMock_Create_Call struct {
	*mock.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 (*DisruptionInterfaceMock_Create_Call) Run

type DisruptionInterfaceMock_Delete_Call

type DisruptionInterfaceMock_Delete_Call struct {
	*mock.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 (*DisruptionInterfaceMock_Delete_Call) Run

func (*DisruptionInterfaceMock_Delete_Call) RunAndReturn

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

type DisruptionInterfaceMock_Get_Call struct {
	*mock.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 (*DisruptionInterfaceMock_Get_Call) Run

func (*DisruptionInterfaceMock_Get_Call) RunAndReturn

type DisruptionInterfaceMock_List_Call

type DisruptionInterfaceMock_List_Call struct {
	*mock.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 (*DisruptionInterfaceMock_List_Call) Run

func (*DisruptionInterfaceMock_List_Call) RunAndReturn

type DisruptionInterfaceMock_Watch_Call

type DisruptionInterfaceMock_Watch_Call struct {
	*mock.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 (*DisruptionInterfaceMock_Watch_Call) Run

func (*DisruptionInterfaceMock_Watch_Call) RunAndReturn

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

type DisruptionsGetterMock struct {
	mock.Mock
}

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

type DisruptionsGetterMock_Disruptions_Call

type DisruptionsGetterMock_Disruptions_Call struct {
	*mock.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 (*DisruptionsGetterMock_Disruptions_Call) Run

func (*DisruptionsGetterMock_Disruptions_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL