Documentation
¶
Overview ¶
Package m3admin is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNotOk indicates that HTTP status was not Ok ErrNotOk = errors.New("status not ok") // ErrNotFound indicates that HTTP status was not found ErrNotFound = errors.New("status not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
DoHTTPRequest(action, url string, data *bytes.Buffer) (*http.Response, error)
}
Client is an m3admin client.
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (*MockClient) DoHTTPRequest ¶
DoHTTPRequest mocks base method
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) DoHTTPRequest ¶
func (mr *MockClientMockRecorder) DoHTTPRequest(action, url, data interface{}) *gomock.Call
DoHTTPRequest indicates an expected call of DoHTTPRequest
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures an m3admin client.
func WithHTTPClient ¶
WithHTTPClient configures an http client for the m3admin client. If not set, go-retryablehttp's default client will be used. Note that the retry client's logger will be overridden with the stdlog-wrapped wrapped zap logger.
func WithLogger ¶
WithLogger configures a logger for the client. If not set a noop logger will be used.