kube

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package kube is a generated GoMock package.

Package kube is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMalformedURI      = fmt.Errorf("uri has less than 3 parts in it")
	ErrURIIsNotSupported = fmt.Errorf("uri is not supported")
)

Functions

func GetGroupVersionFromURI

func GetGroupVersionFromURI(uri string) (string, string, error)

Types

type DefaultRESTClientFactory

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

func NewDefaultRESTClientFactory

func NewDefaultRESTClientFactory(
	restConfigFactory RESTConfigFactory,
	httpClient *http.Client,
	kubeconfigPath string,
) *DefaultRESTClientFactory

func (*DefaultRESTClientFactory) Client

func (k *DefaultRESTClientFactory) Client(group, version string) (*rest.RESTClient, error)

func (*DefaultRESTClientFactory) Request

type DefaultRESTConfigFactory

type DefaultRESTConfigFactory struct{}

func NewDefaultRESTConfigFactory

func NewDefaultRESTConfigFactory() *DefaultRESTConfigFactory

func (*DefaultRESTConfigFactory) New

func (r *DefaultRESTConfigFactory) New(kubeconfigPath string) (*rest.Config, error)

type MockRESTClientFactory

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

MockRESTClientFactory is a mock of RESTClientFactory interface.

func NewMockRESTClientFactory

func NewMockRESTClientFactory(ctrl *gomock.Controller) *MockRESTClientFactory

NewMockRESTClientFactory creates a new mock instance.

func (*MockRESTClientFactory) Client

func (m *MockRESTClientFactory) Client(group, version string) (*rest.RESTClient, error)

Client mocks base method.

func (*MockRESTClientFactory) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRESTClientFactory) Request

func (m *MockRESTClientFactory) Request(r http.Request) (*rest.Request, error)

Request mocks base method.

type MockRESTClientFactoryMockRecorder

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

MockRESTClientFactoryMockRecorder is the mock recorder for MockRESTClientFactory.

func (*MockRESTClientFactoryMockRecorder) Client

func (mr *MockRESTClientFactoryMockRecorder) Client(group, version interface{}) *gomock.Call

Client indicates an expected call of Client.

func (*MockRESTClientFactoryMockRecorder) Request

func (mr *MockRESTClientFactoryMockRecorder) Request(r interface{}) *gomock.Call

Request indicates an expected call of Request.

type MockRESTConfigFactory

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

MockRESTConfigFactory is a mock of RESTConfigFactory interface.

func NewMockRESTConfigFactory

func NewMockRESTConfigFactory(ctrl *gomock.Controller) *MockRESTConfigFactory

NewMockRESTConfigFactory creates a new mock instance.

func (*MockRESTConfigFactory) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRESTConfigFactory) New

func (m *MockRESTConfigFactory) New(kubeconfigPath string) (*rest.Config, error)

New mocks base method.

type MockRESTConfigFactoryMockRecorder

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

MockRESTConfigFactoryMockRecorder is the mock recorder for MockRESTConfigFactory.

func (*MockRESTConfigFactoryMockRecorder) New

func (mr *MockRESTConfigFactoryMockRecorder) New(kubeconfigPath interface{}) *gomock.Call

New indicates an expected call of New.

type RESTClientFactory

type RESTClientFactory interface {
	Client(group, version string) (*rest.RESTClient, error)
	Request(r http.Request) (*rest.Request, error)
}

type RESTConfigFactory

type RESTConfigFactory interface {
	New(kubeconfigPath string) (*rest.Config, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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