v1beta1

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: 7 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clientset

type Clientset struct {
	*discovery.DiscoveryClient
	// contains filtered or unexported fields
}

Clientset contains the clients for groups.

func New

func New(c rest.Interface) *Clientset

New creates a new Clientset for the given RESTClient.

func NewForConfig

func NewForConfig(c *rest.Config) (*Clientset, error)

NewForConfig creates a new Clientset for the given config. If config's RateLimiter is not set and QPS and Burst are acceptable, NewForConfig will generate a rate-limiter in configShallowCopy. NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), where httpClient was generated with rest.HTTPClientFor(c).

func NewForConfigAndClient

func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error)

NewForConfigAndClient creates a new Clientset for the given config and http client. Note the http client provided takes precedence over the configured transport values. If config's RateLimiter is not set and QPS and Burst are acceptable, NewForConfigAndClient will generate a rate-limiter in configShallowCopy.

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) *Clientset

NewForConfigOrDie creates a new Clientset for the given config and panics if there is an error in the config.

func (*Clientset) Chaos

Chaos retrieves the ChaosClient

func (*Clientset) Discovery

func (c *Clientset) Discovery() discovery.DiscoveryInterface

Discovery retrieves the DiscoveryClient

type Interface

type Interface interface {
	Discovery() discovery.DiscoveryInterface
	Chaos() chaosinternalversion.ChaosInterface
}

type InterfaceMock

type InterfaceMock struct {
	mock.Mock
}

InterfaceMock is an autogenerated mock type for the Interface type

func NewInterfaceMock

func NewInterfaceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *InterfaceMock

NewInterfaceMock creates a new instance of InterfaceMock. 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 (*InterfaceMock) Chaos

Chaos provides a mock function with given fields:

func (*InterfaceMock) Discovery

func (_m *InterfaceMock) Discovery() discovery.DiscoveryInterface

Discovery provides a mock function with given fields:

func (*InterfaceMock) EXPECT

func (_m *InterfaceMock) EXPECT() *InterfaceMock_Expecter

type InterfaceMock_Chaos_Call

type InterfaceMock_Chaos_Call struct {
	*mock.Call
}

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

func (*InterfaceMock_Chaos_Call) Return

func (*InterfaceMock_Chaos_Call) Run

func (*InterfaceMock_Chaos_Call) RunAndReturn

type InterfaceMock_Discovery_Call

type InterfaceMock_Discovery_Call struct {
	*mock.Call
}

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

func (*InterfaceMock_Discovery_Call) Return

func (*InterfaceMock_Discovery_Call) Run

func (*InterfaceMock_Discovery_Call) RunAndReturn

type InterfaceMock_Expecter

type InterfaceMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*InterfaceMock_Expecter) Chaos

Chaos is a helper method to define mock.On call

func (*InterfaceMock_Expecter) Discovery

Discovery is a helper method to define mock.On call

Directories

Path Synopsis
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
typed
v1beta1/internalversion
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.

Jump to

Keyboard shortcuts

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