Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockBackend
- type MockBackendMockRecorder
- type MockMackerelClient
- func (m *MockMackerelClient) CreateGraphAnnotation(annotation *mackerel.GraphAnnotation) (*mackerel.GraphAnnotation, error)
- func (m *MockMackerelClient) EXPECT() *MockMackerelClientMockRecorder
- func (m *MockMackerelClient) FindGraphAnnotations(service string, from, to int64) ([]mackerel.GraphAnnotation, error)
- func (m *MockMackerelClient) FindHost(id string) (*mackerel.Host, error)
- func (m *MockMackerelClient) GetAlert(arg0 string) (*mackerel.Alert, error)
- func (m *MockMackerelClient) GetMonitor(arg0 string) (mackerel.Monitor, error)
- func (m *MockMackerelClient) GetOrg() (*mackerel.Org, error)
- func (m *MockMackerelClient) UpdateAlert(alertID string, param mackerel.UpdateAlertParam) (*mackerel.UpdateAlertResponse, error)
- func (m *MockMackerelClient) UpdateGraphAnnotation(annotationID string, annotation *mackerel.GraphAnnotation) (*mackerel.GraphAnnotation, error)
- type MockMackerelClientMockRecorder
- func (mr *MockMackerelClientMockRecorder) CreateGraphAnnotation(annotation interface{}) *gomock.Call
- func (mr *MockMackerelClientMockRecorder) FindGraphAnnotations(service, from, to interface{}) *gomock.Call
- func (mr *MockMackerelClientMockRecorder) FindHost(id interface{}) *gomock.Call
- func (mr *MockMackerelClientMockRecorder) GetAlert(arg0 interface{}) *gomock.Call
- func (mr *MockMackerelClientMockRecorder) GetMonitor(arg0 interface{}) *gomock.Call
- func (mr *MockMackerelClientMockRecorder) GetOrg() *gomock.Call
- func (mr *MockMackerelClientMockRecorder) UpdateAlert(alertID, param interface{}) *gomock.Call
- func (mr *MockMackerelClientMockRecorder) UpdateGraphAnnotation(annotationID, annotation interface{}) *gomock.Call
- type MockProvider
- type MockProviderMockRecorder
- type MockQuery
- type MockQueryMockRecorder
- type MockS3Client
- func (m *MockS3Client) AbortMultipartUpload(arg0 context.Context, arg1 *s3.AbortMultipartUploadInput, ...) (*s3.AbortMultipartUploadOutput, error)
- func (m *MockS3Client) CompleteMultipartUpload(arg0 context.Context, arg1 *s3.CompleteMultipartUploadInput, ...) (*s3.CompleteMultipartUploadOutput, error)
- func (m *MockS3Client) CreateMultipartUpload(arg0 context.Context, arg1 *s3.CreateMultipartUploadInput, ...) (*s3.CreateMultipartUploadOutput, error)
- func (m *MockS3Client) EXPECT() *MockS3ClientMockRecorder
- func (m *MockS3Client) GetObject(arg0 context.Context, arg1 *s3.GetObjectInput, arg2 ...func(*s3.Options)) (*s3.GetObjectOutput, error)
- func (m *MockS3Client) HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error)
- func (m *MockS3Client) ListObjectsV2(ctx context.Context, params *s3.ListObjectsV2Input, ...) (*s3.ListObjectsV2Output, error)
- func (m *MockS3Client) PutObject(arg0 context.Context, arg1 *s3.PutObjectInput, arg2 ...func(*s3.Options)) (*s3.PutObjectOutput, error)
- func (m *MockS3Client) UploadPart(arg0 context.Context, arg1 *s3.UploadPartInput, arg2 ...func(*s3.Options)) (*s3.UploadPartOutput, error)
- type MockS3ClientMockRecorder
- func (mr *MockS3ClientMockRecorder) AbortMultipartUpload(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) CompleteMultipartUpload(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) CreateMultipartUpload(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) GetObject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) HeadObject(ctx, params interface{}, optFns ...interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) ListObjectsV2(ctx, params interface{}, optFns ...interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) PutObject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockS3ClientMockRecorder) UploadPart(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
MockBackend is a mock of Backend interface.
func NewMockBackend ¶
func NewMockBackend(ctrl *gomock.Controller) *MockBackend
NewMockBackend creates a new mock instance.
func (*MockBackend) EXPECT ¶
func (m *MockBackend) EXPECT() *MockBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackend) ServeHTTP ¶
func (m *MockBackend) ServeHTTP(arg0 http.ResponseWriter, arg1 *http.Request)
ServeHTTP mocks base method.
type MockBackendMockRecorder ¶
type MockBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendMockRecorder is the mock recorder for MockBackend.
func (*MockBackendMockRecorder) ServeHTTP ¶
func (mr *MockBackendMockRecorder) ServeHTTP(arg0, arg1 interface{}) *gomock.Call
ServeHTTP indicates an expected call of ServeHTTP.
func (*MockBackendMockRecorder) String ¶
func (mr *MockBackendMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*MockBackendMockRecorder) Upload ¶
func (mr *MockBackendMockRecorder) Upload(ctx, evalCtx, name, body interface{}) *gomock.Call
Upload indicates an expected call of Upload.
type MockMackerelClient ¶
type MockMackerelClient struct {
// contains filtered or unexported fields
}
MockMackerelClient is a mock of MackerelClient interface.
func NewMockMackerelClient ¶
func NewMockMackerelClient(ctrl *gomock.Controller) *MockMackerelClient
NewMockMackerelClient creates a new mock instance.
func (*MockMackerelClient) CreateGraphAnnotation ¶
func (m *MockMackerelClient) CreateGraphAnnotation(annotation *mackerel.GraphAnnotation) (*mackerel.GraphAnnotation, error)
CreateGraphAnnotation mocks base method.
func (*MockMackerelClient) EXPECT ¶
func (m *MockMackerelClient) EXPECT() *MockMackerelClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMackerelClient) FindGraphAnnotations ¶
func (m *MockMackerelClient) FindGraphAnnotations(service string, from, to int64) ([]mackerel.GraphAnnotation, error)
FindGraphAnnotations mocks base method.
func (*MockMackerelClient) FindHost ¶
func (m *MockMackerelClient) FindHost(id string) (*mackerel.Host, error)
FindHost mocks base method.
func (*MockMackerelClient) GetAlert ¶
func (m *MockMackerelClient) GetAlert(arg0 string) (*mackerel.Alert, error)
GetAlert mocks base method.
func (*MockMackerelClient) GetMonitor ¶
func (m *MockMackerelClient) GetMonitor(arg0 string) (mackerel.Monitor, error)
GetMonitor mocks base method.
func (*MockMackerelClient) GetOrg ¶
func (m *MockMackerelClient) GetOrg() (*mackerel.Org, error)
GetOrg mocks base method.
func (*MockMackerelClient) UpdateAlert ¶
func (m *MockMackerelClient) UpdateAlert(alertID string, param mackerel.UpdateAlertParam) (*mackerel.UpdateAlertResponse, error)
UpdateAlert mocks base method.
func (*MockMackerelClient) UpdateGraphAnnotation ¶
func (m *MockMackerelClient) UpdateGraphAnnotation(annotationID string, annotation *mackerel.GraphAnnotation) (*mackerel.GraphAnnotation, error)
UpdateGraphAnnotation mocks base method.
type MockMackerelClientMockRecorder ¶
type MockMackerelClientMockRecorder struct {
// contains filtered or unexported fields
}
MockMackerelClientMockRecorder is the mock recorder for MockMackerelClient.
func (*MockMackerelClientMockRecorder) CreateGraphAnnotation ¶
func (mr *MockMackerelClientMockRecorder) CreateGraphAnnotation(annotation interface{}) *gomock.Call
CreateGraphAnnotation indicates an expected call of CreateGraphAnnotation.
func (*MockMackerelClientMockRecorder) FindGraphAnnotations ¶
func (mr *MockMackerelClientMockRecorder) FindGraphAnnotations(service, from, to interface{}) *gomock.Call
FindGraphAnnotations indicates an expected call of FindGraphAnnotations.
func (*MockMackerelClientMockRecorder) FindHost ¶
func (mr *MockMackerelClientMockRecorder) FindHost(id interface{}) *gomock.Call
FindHost indicates an expected call of FindHost.
func (*MockMackerelClientMockRecorder) GetAlert ¶
func (mr *MockMackerelClientMockRecorder) GetAlert(arg0 interface{}) *gomock.Call
GetAlert indicates an expected call of GetAlert.
func (*MockMackerelClientMockRecorder) GetMonitor ¶
func (mr *MockMackerelClientMockRecorder) GetMonitor(arg0 interface{}) *gomock.Call
GetMonitor indicates an expected call of GetMonitor.
func (*MockMackerelClientMockRecorder) GetOrg ¶
func (mr *MockMackerelClientMockRecorder) GetOrg() *gomock.Call
GetOrg indicates an expected call of GetOrg.
func (*MockMackerelClientMockRecorder) UpdateAlert ¶
func (mr *MockMackerelClientMockRecorder) UpdateAlert(alertID, param interface{}) *gomock.Call
UpdateAlert indicates an expected call of UpdateAlert.
func (*MockMackerelClientMockRecorder) UpdateGraphAnnotation ¶
func (mr *MockMackerelClientMockRecorder) UpdateGraphAnnotation(annotationID, annotation interface{}) *gomock.Call
UpdateGraphAnnotation indicates an expected call of UpdateGraphAnnotation.
type MockProvider ¶
type MockProvider struct {
// contains filtered or unexported fields
}
MockProvider is a mock of Provider interface.
func NewMockProvider ¶
func NewMockProvider(ctrl *gomock.Controller) *MockProvider
NewMockProvider creates a new mock instance.
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider.
func (*MockProviderMockRecorder) NewQuery ¶
func (mr *MockProviderMockRecorder) NewQuery(name, body, evalCtx interface{}) *gomock.Call
NewQuery indicates an expected call of NewQuery.
type MockQuery ¶
type MockQuery struct {
// contains filtered or unexported fields
}
MockQuery is a mock of Query interface.
func NewMockQuery ¶
func NewMockQuery(ctrl *gomock.Controller) *MockQuery
NewMockQuery creates a new mock instance.
func (*MockQuery) EXPECT ¶
func (m *MockQuery) EXPECT() *MockQueryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQuery) Run ¶
func (m *MockQuery) Run(ctx context.Context, evalCtx *hcl.EvalContext) (*provider.QueryResult, error)
Run mocks base method.
type MockQueryMockRecorder ¶
type MockQueryMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryMockRecorder is the mock recorder for MockQuery.
func (*MockQueryMockRecorder) Run ¶
func (mr *MockQueryMockRecorder) Run(ctx, evalCtx interface{}) *gomock.Call
Run indicates an expected call of Run.
type MockS3Client ¶
type MockS3Client struct {
// contains filtered or unexported fields
}
MockS3Client is a mock of S3Client interface.
func NewMockS3Client ¶
func NewMockS3Client(ctrl *gomock.Controller) *MockS3Client
NewMockS3Client creates a new mock instance.
func (*MockS3Client) AbortMultipartUpload ¶
func (m *MockS3Client) AbortMultipartUpload(arg0 context.Context, arg1 *s3.AbortMultipartUploadInput, arg2 ...func(*s3.Options)) (*s3.AbortMultipartUploadOutput, error)
AbortMultipartUpload mocks base method.
func (*MockS3Client) CompleteMultipartUpload ¶
func (m *MockS3Client) CompleteMultipartUpload(arg0 context.Context, arg1 *s3.CompleteMultipartUploadInput, arg2 ...func(*s3.Options)) (*s3.CompleteMultipartUploadOutput, error)
CompleteMultipartUpload mocks base method.
func (*MockS3Client) CreateMultipartUpload ¶
func (m *MockS3Client) CreateMultipartUpload(arg0 context.Context, arg1 *s3.CreateMultipartUploadInput, arg2 ...func(*s3.Options)) (*s3.CreateMultipartUploadOutput, error)
CreateMultipartUpload mocks base method.
func (*MockS3Client) EXPECT ¶
func (m *MockS3Client) EXPECT() *MockS3ClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockS3Client) GetObject ¶
func (m *MockS3Client) GetObject(arg0 context.Context, arg1 *s3.GetObjectInput, arg2 ...func(*s3.Options)) (*s3.GetObjectOutput, error)
GetObject mocks base method.
func (*MockS3Client) HeadObject ¶
func (m *MockS3Client) HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error)
HeadObject mocks base method.
func (*MockS3Client) ListObjectsV2 ¶
func (m *MockS3Client) ListObjectsV2(ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options)) (*s3.ListObjectsV2Output, error)
ListObjectsV2 mocks base method.
func (*MockS3Client) PutObject ¶
func (m *MockS3Client) PutObject(arg0 context.Context, arg1 *s3.PutObjectInput, arg2 ...func(*s3.Options)) (*s3.PutObjectOutput, error)
PutObject mocks base method.
func (*MockS3Client) UploadPart ¶
func (m *MockS3Client) UploadPart(arg0 context.Context, arg1 *s3.UploadPartInput, arg2 ...func(*s3.Options)) (*s3.UploadPartOutput, error)
UploadPart mocks base method.
type MockS3ClientMockRecorder ¶
type MockS3ClientMockRecorder struct {
// contains filtered or unexported fields
}
MockS3ClientMockRecorder is the mock recorder for MockS3Client.
func (*MockS3ClientMockRecorder) AbortMultipartUpload ¶
func (mr *MockS3ClientMockRecorder) AbortMultipartUpload(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
AbortMultipartUpload indicates an expected call of AbortMultipartUpload.
func (*MockS3ClientMockRecorder) CompleteMultipartUpload ¶
func (mr *MockS3ClientMockRecorder) CompleteMultipartUpload(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CompleteMultipartUpload indicates an expected call of CompleteMultipartUpload.
func (*MockS3ClientMockRecorder) CreateMultipartUpload ¶
func (mr *MockS3ClientMockRecorder) CreateMultipartUpload(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CreateMultipartUpload indicates an expected call of CreateMultipartUpload.
func (*MockS3ClientMockRecorder) GetObject ¶
func (mr *MockS3ClientMockRecorder) GetObject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetObject indicates an expected call of GetObject.
func (*MockS3ClientMockRecorder) HeadObject ¶
func (mr *MockS3ClientMockRecorder) HeadObject(ctx, params interface{}, optFns ...interface{}) *gomock.Call
HeadObject indicates an expected call of HeadObject.
func (*MockS3ClientMockRecorder) ListObjectsV2 ¶
func (mr *MockS3ClientMockRecorder) ListObjectsV2(ctx, params interface{}, optFns ...interface{}) *gomock.Call
ListObjectsV2 indicates an expected call of ListObjectsV2.
func (*MockS3ClientMockRecorder) PutObject ¶
func (mr *MockS3ClientMockRecorder) PutObject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
PutObject indicates an expected call of PutObject.
func (*MockS3ClientMockRecorder) UploadPart ¶
func (mr *MockS3ClientMockRecorder) UploadPart(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
UploadPart indicates an expected call of UploadPart.