Documentation ¶
Index ¶
- type ClientInterface
- func (_m *ClientInterface) CreateExperiment(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) CreateExperimentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, ...) (*http.Response, error)
- func (_m *ClientInterface) CreateProjectSettings(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) CreateProjectSettingsWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, ...) (*http.Response, error)
- func (_m *ClientInterface) CreateSegment(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) CreateSegmentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, ...) (*http.Response, error)
- func (_m *ClientInterface) CreateSegmenter(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) CreateSegmenterWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, ...) (*http.Response, error)
- func (_m *ClientInterface) CreateTreatment(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) CreateTreatmentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, ...) (*http.Response, error)
- func (_m *ClientInterface) DeleteSegment(ctx context.Context, projectId int64, segmentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) DeleteSegmenter(ctx context.Context, projectId int64, name string, ...) (*http.Response, error)
- func (_m *ClientInterface) DeleteTreatment(ctx context.Context, projectId int64, treatmentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) DisableExperiment(ctx context.Context, projectId int64, experimentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) EnableExperiment(ctx context.Context, projectId int64, experimentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) GetExperiment(ctx context.Context, projectId int64, experimentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) GetExperimentHistory(ctx context.Context, projectId int64, experimentId int64, version int64, ...) (*http.Response, error)
- func (_m *ClientInterface) GetProjectExperimentVariables(ctx context.Context, projectId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
- func (_m *ClientInterface) GetProjectSettings(ctx context.Context, projectId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
- func (_m *ClientInterface) GetSegment(ctx context.Context, projectId int64, segmentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) GetSegmentHistory(ctx context.Context, projectId int64, segmentId int64, version int64, ...) (*http.Response, error)
- func (_m *ClientInterface) GetSegmenter(ctx context.Context, projectId int64, name string, ...) (*http.Response, error)
- func (_m *ClientInterface) GetTreatment(ctx context.Context, projectId int64, treatmentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) GetTreatmentHistory(ctx context.Context, projectId int64, treatmentId int64, version int64, ...) (*http.Response, error)
- func (_m *ClientInterface) GetTreatmentServiceConfig(ctx context.Context, reqEditors ...management.RequestEditorFn) (*http.Response, error)
- func (_m *ClientInterface) ListExperimentHistory(ctx context.Context, projectId int64, experimentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) ListExperiments(ctx context.Context, projectId int64, params *management.ListExperimentsParams, ...) (*http.Response, error)
- func (_m *ClientInterface) ListProjects(ctx context.Context, reqEditors ...management.RequestEditorFn) (*http.Response, error)
- func (_m *ClientInterface) ListSegmentHistory(ctx context.Context, projectId int64, segmentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) ListSegmenters(ctx context.Context, projectId int64, params *management.ListSegmentersParams, ...) (*http.Response, error)
- func (_m *ClientInterface) ListSegments(ctx context.Context, projectId int64, params *management.ListSegmentsParams, ...) (*http.Response, error)
- func (_m *ClientInterface) ListTreatmentHistory(ctx context.Context, projectId int64, treatmentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) ListTreatments(ctx context.Context, projectId int64, params *management.ListTreatmentsParams, ...) (*http.Response, error)
- func (_m *ClientInterface) UpdateExperiment(ctx context.Context, projectId int64, experimentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) UpdateExperimentWithBody(ctx context.Context, projectId int64, experimentId int64, contentType string, ...) (*http.Response, error)
- func (_m *ClientInterface) UpdateProjectSettings(ctx context.Context, projectId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) UpdateProjectSettingsWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, ...) (*http.Response, error)
- func (_m *ClientInterface) UpdateSegment(ctx context.Context, projectId int64, segmentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) UpdateSegmentWithBody(ctx context.Context, projectId int64, segmentId int64, contentType string, ...) (*http.Response, error)
- func (_m *ClientInterface) UpdateSegmenter(ctx context.Context, projectId int64, name string, ...) (*http.Response, error)
- func (_m *ClientInterface) UpdateSegmenterWithBody(ctx context.Context, projectId int64, name string, contentType string, ...) (*http.Response, error)
- func (_m *ClientInterface) UpdateTreatment(ctx context.Context, projectId int64, treatmentId int64, ...) (*http.Response, error)
- func (_m *ClientInterface) UpdateTreatmentWithBody(ctx context.Context, projectId int64, treatmentId int64, contentType string, ...) (*http.Response, error)
- func (_m *ClientInterface) ValidateEntity(ctx context.Context, body management.ValidateEntityJSONRequestBody, ...) (*http.Response, error)
- func (_m *ClientInterface) ValidateEntityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInterface ¶
ClientInterface is an autogenerated mock type for the ClientInterface type
func NewClientInterface ¶
func NewClientInterface(t mockConstructorTestingTNewClientInterface) *ClientInterface
NewClientInterface creates a new instance of ClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientInterface) CreateExperiment ¶
func (_m *ClientInterface) CreateExperiment(ctx context.Context, projectId int64, body management.CreateExperimentJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
CreateExperiment provides a mock function with given fields: ctx, projectId, body, reqEditors
func (*ClientInterface) CreateExperimentWithBody ¶
func (_m *ClientInterface) CreateExperimentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
CreateExperimentWithBody provides a mock function with given fields: ctx, projectId, contentType, body, reqEditors
func (*ClientInterface) CreateProjectSettings ¶
func (_m *ClientInterface) CreateProjectSettings(ctx context.Context, projectId int64, body management.CreateProjectSettingsJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
CreateProjectSettings provides a mock function with given fields: ctx, projectId, body, reqEditors
func (*ClientInterface) CreateProjectSettingsWithBody ¶
func (_m *ClientInterface) CreateProjectSettingsWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
CreateProjectSettingsWithBody provides a mock function with given fields: ctx, projectId, contentType, body, reqEditors
func (*ClientInterface) CreateSegment ¶
func (_m *ClientInterface) CreateSegment(ctx context.Context, projectId int64, body management.CreateSegmentJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
CreateSegment provides a mock function with given fields: ctx, projectId, body, reqEditors
func (*ClientInterface) CreateSegmentWithBody ¶
func (_m *ClientInterface) CreateSegmentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
CreateSegmentWithBody provides a mock function with given fields: ctx, projectId, contentType, body, reqEditors
func (*ClientInterface) CreateSegmenter ¶
func (_m *ClientInterface) CreateSegmenter(ctx context.Context, projectId int64, body management.CreateSegmenterJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
CreateSegmenter provides a mock function with given fields: ctx, projectId, body, reqEditors
func (*ClientInterface) CreateSegmenterWithBody ¶
func (_m *ClientInterface) CreateSegmenterWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
CreateSegmenterWithBody provides a mock function with given fields: ctx, projectId, contentType, body, reqEditors
func (*ClientInterface) CreateTreatment ¶
func (_m *ClientInterface) CreateTreatment(ctx context.Context, projectId int64, body management.CreateTreatmentJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
CreateTreatment provides a mock function with given fields: ctx, projectId, body, reqEditors
func (*ClientInterface) CreateTreatmentWithBody ¶
func (_m *ClientInterface) CreateTreatmentWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
CreateTreatmentWithBody provides a mock function with given fields: ctx, projectId, contentType, body, reqEditors
func (*ClientInterface) DeleteSegment ¶
func (_m *ClientInterface) DeleteSegment(ctx context.Context, projectId int64, segmentId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
DeleteSegment provides a mock function with given fields: ctx, projectId, segmentId, reqEditors
func (*ClientInterface) DeleteSegmenter ¶
func (_m *ClientInterface) DeleteSegmenter(ctx context.Context, projectId int64, name string, reqEditors ...management.RequestEditorFn) (*http.Response, error)
DeleteSegmenter provides a mock function with given fields: ctx, projectId, name, reqEditors
func (*ClientInterface) DeleteTreatment ¶
func (_m *ClientInterface) DeleteTreatment(ctx context.Context, projectId int64, treatmentId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
DeleteTreatment provides a mock function with given fields: ctx, projectId, treatmentId, reqEditors
func (*ClientInterface) DisableExperiment ¶
func (_m *ClientInterface) DisableExperiment(ctx context.Context, projectId int64, experimentId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
DisableExperiment provides a mock function with given fields: ctx, projectId, experimentId, reqEditors
func (*ClientInterface) EnableExperiment ¶
func (_m *ClientInterface) EnableExperiment(ctx context.Context, projectId int64, experimentId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
EnableExperiment provides a mock function with given fields: ctx, projectId, experimentId, reqEditors
func (*ClientInterface) GetExperiment ¶
func (_m *ClientInterface) GetExperiment(ctx context.Context, projectId int64, experimentId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
GetExperiment provides a mock function with given fields: ctx, projectId, experimentId, reqEditors
func (*ClientInterface) GetExperimentHistory ¶
func (_m *ClientInterface) GetExperimentHistory(ctx context.Context, projectId int64, experimentId int64, version int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
GetExperimentHistory provides a mock function with given fields: ctx, projectId, experimentId, version, reqEditors
func (*ClientInterface) GetProjectExperimentVariables ¶
func (_m *ClientInterface) GetProjectExperimentVariables(ctx context.Context, projectId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
GetProjectExperimentVariables provides a mock function with given fields: ctx, projectId, reqEditors
func (*ClientInterface) GetProjectSettings ¶
func (_m *ClientInterface) GetProjectSettings(ctx context.Context, projectId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
GetProjectSettings provides a mock function with given fields: ctx, projectId, reqEditors
func (*ClientInterface) GetSegment ¶
func (_m *ClientInterface) GetSegment(ctx context.Context, projectId int64, segmentId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
GetSegment provides a mock function with given fields: ctx, projectId, segmentId, reqEditors
func (*ClientInterface) GetSegmentHistory ¶
func (_m *ClientInterface) GetSegmentHistory(ctx context.Context, projectId int64, segmentId int64, version int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
GetSegmentHistory provides a mock function with given fields: ctx, projectId, segmentId, version, reqEditors
func (*ClientInterface) GetSegmenter ¶
func (_m *ClientInterface) GetSegmenter(ctx context.Context, projectId int64, name string, reqEditors ...management.RequestEditorFn) (*http.Response, error)
GetSegmenter provides a mock function with given fields: ctx, projectId, name, reqEditors
func (*ClientInterface) GetTreatment ¶
func (_m *ClientInterface) GetTreatment(ctx context.Context, projectId int64, treatmentId int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
GetTreatment provides a mock function with given fields: ctx, projectId, treatmentId, reqEditors
func (*ClientInterface) GetTreatmentHistory ¶
func (_m *ClientInterface) GetTreatmentHistory(ctx context.Context, projectId int64, treatmentId int64, version int64, reqEditors ...management.RequestEditorFn) (*http.Response, error)
GetTreatmentHistory provides a mock function with given fields: ctx, projectId, treatmentId, version, reqEditors
func (*ClientInterface) GetTreatmentServiceConfig ¶
func (_m *ClientInterface) GetTreatmentServiceConfig(ctx context.Context, reqEditors ...management.RequestEditorFn) (*http.Response, error)
GetTreatmentServiceConfig provides a mock function with given fields: ctx, reqEditors
func (*ClientInterface) ListExperimentHistory ¶
func (_m *ClientInterface) ListExperimentHistory(ctx context.Context, projectId int64, experimentId int64, params *management.ListExperimentHistoryParams, reqEditors ...management.RequestEditorFn) (*http.Response, error)
ListExperimentHistory provides a mock function with given fields: ctx, projectId, experimentId, params, reqEditors
func (*ClientInterface) ListExperiments ¶
func (_m *ClientInterface) ListExperiments(ctx context.Context, projectId int64, params *management.ListExperimentsParams, reqEditors ...management.RequestEditorFn) (*http.Response, error)
ListExperiments provides a mock function with given fields: ctx, projectId, params, reqEditors
func (*ClientInterface) ListProjects ¶
func (_m *ClientInterface) ListProjects(ctx context.Context, reqEditors ...management.RequestEditorFn) (*http.Response, error)
ListProjects provides a mock function with given fields: ctx, reqEditors
func (*ClientInterface) ListSegmentHistory ¶
func (_m *ClientInterface) ListSegmentHistory(ctx context.Context, projectId int64, segmentId int64, params *management.ListSegmentHistoryParams, reqEditors ...management.RequestEditorFn) (*http.Response, error)
ListSegmentHistory provides a mock function with given fields: ctx, projectId, segmentId, params, reqEditors
func (*ClientInterface) ListSegmenters ¶
func (_m *ClientInterface) ListSegmenters(ctx context.Context, projectId int64, params *management.ListSegmentersParams, reqEditors ...management.RequestEditorFn) (*http.Response, error)
ListSegmenters provides a mock function with given fields: ctx, projectId, params, reqEditors
func (*ClientInterface) ListSegments ¶
func (_m *ClientInterface) ListSegments(ctx context.Context, projectId int64, params *management.ListSegmentsParams, reqEditors ...management.RequestEditorFn) (*http.Response, error)
ListSegments provides a mock function with given fields: ctx, projectId, params, reqEditors
func (*ClientInterface) ListTreatmentHistory ¶
func (_m *ClientInterface) ListTreatmentHistory(ctx context.Context, projectId int64, treatmentId int64, params *management.ListTreatmentHistoryParams, reqEditors ...management.RequestEditorFn) (*http.Response, error)
ListTreatmentHistory provides a mock function with given fields: ctx, projectId, treatmentId, params, reqEditors
func (*ClientInterface) ListTreatments ¶
func (_m *ClientInterface) ListTreatments(ctx context.Context, projectId int64, params *management.ListTreatmentsParams, reqEditors ...management.RequestEditorFn) (*http.Response, error)
ListTreatments provides a mock function with given fields: ctx, projectId, params, reqEditors
func (*ClientInterface) UpdateExperiment ¶
func (_m *ClientInterface) UpdateExperiment(ctx context.Context, projectId int64, experimentId int64, body management.UpdateExperimentJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
UpdateExperiment provides a mock function with given fields: ctx, projectId, experimentId, body, reqEditors
func (*ClientInterface) UpdateExperimentWithBody ¶
func (_m *ClientInterface) UpdateExperimentWithBody(ctx context.Context, projectId int64, experimentId int64, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
UpdateExperimentWithBody provides a mock function with given fields: ctx, projectId, experimentId, contentType, body, reqEditors
func (*ClientInterface) UpdateProjectSettings ¶
func (_m *ClientInterface) UpdateProjectSettings(ctx context.Context, projectId int64, body management.UpdateProjectSettingsJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
UpdateProjectSettings provides a mock function with given fields: ctx, projectId, body, reqEditors
func (*ClientInterface) UpdateProjectSettingsWithBody ¶
func (_m *ClientInterface) UpdateProjectSettingsWithBody(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
UpdateProjectSettingsWithBody provides a mock function with given fields: ctx, projectId, contentType, body, reqEditors
func (*ClientInterface) UpdateSegment ¶
func (_m *ClientInterface) UpdateSegment(ctx context.Context, projectId int64, segmentId int64, body management.UpdateSegmentJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
UpdateSegment provides a mock function with given fields: ctx, projectId, segmentId, body, reqEditors
func (*ClientInterface) UpdateSegmentWithBody ¶
func (_m *ClientInterface) UpdateSegmentWithBody(ctx context.Context, projectId int64, segmentId int64, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
UpdateSegmentWithBody provides a mock function with given fields: ctx, projectId, segmentId, contentType, body, reqEditors
func (*ClientInterface) UpdateSegmenter ¶
func (_m *ClientInterface) UpdateSegmenter(ctx context.Context, projectId int64, name string, body management.UpdateSegmenterJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
UpdateSegmenter provides a mock function with given fields: ctx, projectId, name, body, reqEditors
func (*ClientInterface) UpdateSegmenterWithBody ¶
func (_m *ClientInterface) UpdateSegmenterWithBody(ctx context.Context, projectId int64, name string, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
UpdateSegmenterWithBody provides a mock function with given fields: ctx, projectId, name, contentType, body, reqEditors
func (*ClientInterface) UpdateTreatment ¶
func (_m *ClientInterface) UpdateTreatment(ctx context.Context, projectId int64, treatmentId int64, body management.UpdateTreatmentJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
UpdateTreatment provides a mock function with given fields: ctx, projectId, treatmentId, body, reqEditors
func (*ClientInterface) UpdateTreatmentWithBody ¶
func (_m *ClientInterface) UpdateTreatmentWithBody(ctx context.Context, projectId int64, treatmentId int64, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
UpdateTreatmentWithBody provides a mock function with given fields: ctx, projectId, treatmentId, contentType, body, reqEditors
func (*ClientInterface) ValidateEntity ¶
func (_m *ClientInterface) ValidateEntity(ctx context.Context, body management.ValidateEntityJSONRequestBody, reqEditors ...management.RequestEditorFn) (*http.Response, error)
ValidateEntity provides a mock function with given fields: ctx, body, reqEditors
func (*ClientInterface) ValidateEntityWithBody ¶
func (_m *ClientInterface) ValidateEntityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...management.RequestEditorFn) (*http.Response, error)
ValidateEntityWithBody provides a mock function with given fields: ctx, contentType, body, reqEditors