podres

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultTimeout    = 10 * time.Second
	DefaultMaxMsgSize = 1024 * 1024 * 16 // 16 MiB

	UnixProtocol = "unix"
	FakeProtocol = "fake"
)

Variables

This section is empty.

Functions

func NewFakePodResourcesLister added in v0.17.0

func NewFakePodResourcesLister(path string) podresourcesapi.PodResourcesListerClient

func ParseEndpoint added in v0.11.100

func ParseEndpoint(endpoint string) (string, string, error)

Types

type CleanupFunc added in v0.11.100

type CleanupFunc func() error

func GetClient added in v0.11.0

func GetV1Client added in v0.11.100

func GetV1Client(endpoint string, connectionTimeout time.Duration, maxMsgSize int) (podresourcesapi.PodResourcesListerClient, CleanupFunc, error)

func GetV1ClientFake added in v0.17.0

func GetV1ClientUnix added in v0.17.0

func GetV1ClientUnix(path string, connectionTimeout time.Duration, maxMsgSize int) (podresourcesapi.PodResourcesListerClient, CleanupFunc, error)

type FakeClient added in v0.17.0

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

func (*FakeClient) Get added in v0.17.0

func (*FakeClient) GetAllocatableResources added in v0.17.0

func (*FakeClient) List added in v0.17.0

type MockPodResourcesListerClient

type MockPodResourcesListerClient struct {
	mock.Mock
}

MockPodResourcesListerClient is an autogenerated mock type for the PodResourcesListerClient type

func NewMockPodResourcesListerClient added in v0.15.0

func NewMockPodResourcesListerClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPodResourcesListerClient

NewMockPodResourcesListerClient creates a new instance of MockPodResourcesListerClient. 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 (*MockPodResourcesListerClient) Get added in v0.15.0

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

func (*MockPodResourcesListerClient) GetAllocatableResources

GetAllocatableResources provides a mock function with given fields: ctx, in, opts

func (*MockPodResourcesListerClient) List

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

type UnsupportedProtocolError added in v0.11.100

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

func (UnsupportedProtocolError) Error added in v0.11.100

func (e UnsupportedProtocolError) Error() string

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

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