Documentation ¶
Overview ¶
Package kube is a generated GoMock package.
Package kube is a generated GoMock package.
Index ¶
- Variables
- func GetGroupVersionFromURI(uri string) (string, string, error)
- type DefaultRESTClientFactory
- type DefaultRESTConfigFactory
- type MockRESTClientFactory
- type MockRESTClientFactoryMockRecorder
- type MockRESTConfigFactory
- type MockRESTConfigFactoryMockRecorder
- type RESTClientFactory
- type RESTConfigFactory
Constants ¶
This section is empty.
Variables ¶
var ( ErrMalformedURI = fmt.Errorf("uri has less than 3 parts in it") ErrURIIsNotSupported = fmt.Errorf("uri is not supported") )
Functions ¶
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)
type DefaultRESTConfigFactory ¶
type DefaultRESTConfigFactory struct{}
func NewDefaultRESTConfigFactory ¶
func NewDefaultRESTConfigFactory() *DefaultRESTConfigFactory
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 ¶
func (m *MockRESTClientFactory) EXPECT() *MockRESTClientFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockRESTConfigFactory) EXPECT() *MockRESTConfigFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.