clients

package
v1.86.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package clients is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchTopic

func FetchTopic(ctx context.Context, topicAPIClient TopicAPIClient, topicID string, isPublishing bool, userAccessToken string) (*topicAPIModels.Topic, error)

FetchTopic retrieves a single topic from the topic API. The userAccessToken is only required when isPublishing is true.

func FetchTopics

func FetchTopics(ctx context.Context, topicAPIClient TopicAPIClient, topicIDs []string, isPublishing bool, userAccessToken string) ([]*topicAPIModels.Topic, error)

FetchTopics retrieves a list of topics from the topic API for the given topic IDs. The userAccessToken is only required when isPublishing is true.

Types

type APIClientsGoDatasetClient

type APIClientsGoDatasetClient interface {
	Get(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID string) (m dataset.DatasetDetails, err error)
	GetByPath(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, path string) (m dataset.DatasetDetails, err error)
	GetEditions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID string) (m []dataset.Edition, err error)
	GetEdition(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID, edition string) (dataset.Edition, error)
	GetVersions(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceAuthToken, collectionID, datasetID, edition string, q *dataset.QueryParams) (m dataset.VersionsList, err error)
	GetVersion(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceAuthToken, collectionID, datasetID, edition, version string) (m dataset.Version, err error)
	GetVersionMetadata(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version string) (m dataset.Metadata, err error)
	GetVersionDimensions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version string) (m dataset.VersionDimensions, err error)
	GetOptions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version, dimension string, q *dataset.QueryParams) (m dataset.Options, err error)
}

Interface with methods required for a dp-api-clients-go dataset client

type ClientError

type ClientError interface {
	Error() string
	Code() int
}

ClientError is an interface that can be used to retrieve the status code if a client has errored

type DatasetAPISdkClient

type DatasetAPISdkClient interface {
	GetDataset(ctx context.Context, headers datasetAPISDK.Headers, datasetID string) (m datasetAPIModels.Dataset, err error)
	GetDatasetByPath(ctx context.Context, headers datasetAPISDK.Headers, path string) (m datasetAPIModels.Dataset, err error)
	GetEditions(ctx context.Context, headers datasetAPISDK.Headers, datasetID string, q *datasetAPISDK.QueryParams) (m datasetAPISDK.EditionsList, err error)
	GetEdition(ctx context.Context, headers datasetAPISDK.Headers, datasetID, edition string) (datasetAPIModels.Edition, error)
	GetVersions(ctx context.Context, headers datasetAPISDK.Headers, datasetID, editionID string, q *datasetAPISDK.QueryParams) (m datasetAPISDK.VersionsList, err error)
	GetVersion(ctx context.Context, headers datasetAPISDK.Headers, datasetID, editionID, versionID string) (m datasetAPIModels.Version, err error)
	GetVersionV2(ctx context.Context, headers datasetAPISDK.Headers, datasetID, editionID, versionID string) (m datasetAPIModels.Version, err error)
	GetVersionMetadata(ctx context.Context, headers datasetAPISDK.Headers, datasetID, editionID, versionID string) (m datasetAPIModels.Metadata, err error)
	GetVersionDimensions(ctx context.Context, headers datasetAPISDK.Headers, datasetID, editionID, versionID string) (m datasetAPISDK.VersionDimensionsList, err error)
	GetVersionDimensionOptions(ctx context.Context, headers datasetAPISDK.Headers, datasetID, editionID, versionID, dimensionID string, q *datasetAPISDK.QueryParams) (m datasetAPISDK.VersionDimensionOptionsList, err error)
	PutVersionState(ctx context.Context, headers datasetAPISDK.Headers, datasetID, editionID, versionID, state string) (err error)
}

Interface with methods required for a dp-dataset-api/sdk dataset client

type FilesAPIClient

type FilesAPIClient interface {
	GetFile(ctx context.Context, path string, authToken string) (files.FileMetaData, error)
}

FilesAPIClient is an interface with methods required for getting metadata from Files API

type FilterClient

type FilterClient interface {
	CreateBlueprint(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, datasetID, edition, version string, names []string) (filterID, eTag string, err error)
	CreateCustomFilter(ctx context.Context, userAuthToken, serviceAuthToken, populationType string) (filterID string, err error)
	CreateFlexibleBlueprint(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, datasetID, edition, version string, dimensions []filter.ModelDimension, populationType string) (filterID, eTag string, err error)
	GetOutput(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterOutputID string) (m filter.Model, err error)
	GetDimensionOptions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, q *filter.QueryParams) (opts filter.DimensionOptions, eTag string, err error)
	CreateFlexibleBlueprintCustom(ctx context.Context, uAuthToken, svcAuthToken, dlServiceToken string, req filter.CreateFlexBlueprintCustomRequest) (filterID, eTag string, err error)
}

FilterClient is an interface with the methods required for a filter client

type MockAPIClientsGoDatasetClient

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

MockAPIClientsGoDatasetClient is a mock of APIClientsGoDatasetClient interface.

func NewMockAPIClientsGoDatasetClient

func NewMockAPIClientsGoDatasetClient(ctrl *gomock.Controller) *MockAPIClientsGoDatasetClient

NewMockAPIClientsGoDatasetClient creates a new mock instance.

func (*MockAPIClientsGoDatasetClient) EXPECT

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

func (*MockAPIClientsGoDatasetClient) Get

func (m *MockAPIClientsGoDatasetClient) Get(arg0 context.Context, arg1, arg2, arg3, arg4 string) (dataset.DatasetDetails, error)

Get mocks base method.

func (*MockAPIClientsGoDatasetClient) GetByPath

func (m *MockAPIClientsGoDatasetClient) GetByPath(arg0 context.Context, arg1, arg2, arg3, arg4 string) (dataset.DatasetDetails, error)

GetByPath mocks base method.

func (*MockAPIClientsGoDatasetClient) GetEdition

func (m *MockAPIClientsGoDatasetClient) GetEdition(arg0 context.Context, arg1, arg2, arg3, arg4, arg5 string) (dataset.Edition, error)

GetEdition mocks base method.

func (*MockAPIClientsGoDatasetClient) GetEditions

func (m *MockAPIClientsGoDatasetClient) GetEditions(arg0 context.Context, arg1, arg2, arg3, arg4 string) ([]dataset.Edition, error)

GetEditions mocks base method.

func (*MockAPIClientsGoDatasetClient) GetOptions

func (m *MockAPIClientsGoDatasetClient) GetOptions(arg0 context.Context, arg1, arg2, arg3, arg4, arg5, arg6, arg7 string, arg8 *dataset.QueryParams) (dataset.Options, error)

GetOptions mocks base method.

func (*MockAPIClientsGoDatasetClient) GetVersion

func (m *MockAPIClientsGoDatasetClient) GetVersion(arg0 context.Context, arg1, arg2, arg3, arg4, arg5, arg6, arg7 string) (dataset.Version, error)

GetVersion mocks base method.

func (*MockAPIClientsGoDatasetClient) GetVersionDimensions

func (m *MockAPIClientsGoDatasetClient) GetVersionDimensions(arg0 context.Context, arg1, arg2, arg3, arg4, arg5, arg6 string) (dataset.VersionDimensions, error)

GetVersionDimensions mocks base method.

func (*MockAPIClientsGoDatasetClient) GetVersionMetadata

func (m *MockAPIClientsGoDatasetClient) GetVersionMetadata(arg0 context.Context, arg1, arg2, arg3, arg4, arg5, arg6 string) (dataset.Metadata, error)

GetVersionMetadata mocks base method.

func (*MockAPIClientsGoDatasetClient) GetVersions

func (m *MockAPIClientsGoDatasetClient) GetVersions(arg0 context.Context, arg1, arg2, arg3, arg4, arg5, arg6 string, arg7 *dataset.QueryParams) (dataset.VersionsList, error)

GetVersions mocks base method.

type MockAPIClientsGoDatasetClientMockRecorder

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

MockAPIClientsGoDatasetClientMockRecorder is the mock recorder for MockAPIClientsGoDatasetClient.

func (*MockAPIClientsGoDatasetClientMockRecorder) Get

func (mr *MockAPIClientsGoDatasetClientMockRecorder) Get(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockAPIClientsGoDatasetClientMockRecorder) GetByPath

func (mr *MockAPIClientsGoDatasetClientMockRecorder) GetByPath(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetByPath indicates an expected call of GetByPath.

func (*MockAPIClientsGoDatasetClientMockRecorder) GetEdition

func (mr *MockAPIClientsGoDatasetClientMockRecorder) GetEdition(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

GetEdition indicates an expected call of GetEdition.

func (*MockAPIClientsGoDatasetClientMockRecorder) GetEditions

func (mr *MockAPIClientsGoDatasetClientMockRecorder) GetEditions(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetEditions indicates an expected call of GetEditions.

func (*MockAPIClientsGoDatasetClientMockRecorder) GetOptions

func (mr *MockAPIClientsGoDatasetClientMockRecorder) GetOptions(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 interface{}) *gomock.Call

GetOptions indicates an expected call of GetOptions.

func (*MockAPIClientsGoDatasetClientMockRecorder) GetVersion

func (mr *MockAPIClientsGoDatasetClientMockRecorder) GetVersion(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call

GetVersion indicates an expected call of GetVersion.

func (*MockAPIClientsGoDatasetClientMockRecorder) GetVersionDimensions

func (mr *MockAPIClientsGoDatasetClientMockRecorder) GetVersionDimensions(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call

GetVersionDimensions indicates an expected call of GetVersionDimensions.

func (*MockAPIClientsGoDatasetClientMockRecorder) GetVersionMetadata

func (mr *MockAPIClientsGoDatasetClientMockRecorder) GetVersionMetadata(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call

GetVersionMetadata indicates an expected call of GetVersionMetadata.

func (*MockAPIClientsGoDatasetClientMockRecorder) GetVersions

func (mr *MockAPIClientsGoDatasetClientMockRecorder) GetVersions(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call

GetVersions indicates an expected call of GetVersions.

type MockClientError

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

MockClientError is a mock of ClientError interface.

func NewMockClientError

func NewMockClientError(ctrl *gomock.Controller) *MockClientError

NewMockClientError creates a new mock instance.

func (*MockClientError) Code

func (m *MockClientError) Code() int

Code mocks base method.

func (*MockClientError) EXPECT

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

func (*MockClientError) Error

func (m *MockClientError) Error() string

Error mocks base method.

type MockClientErrorMockRecorder

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

MockClientErrorMockRecorder is the mock recorder for MockClientError.

func (*MockClientErrorMockRecorder) Code

Code indicates an expected call of Code.

func (*MockClientErrorMockRecorder) Error

Error indicates an expected call of Error.

type MockDatasetAPISdkClient

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

MockDatasetAPISdkClient is a mock of DatasetAPISdkClient interface.

func NewMockDatasetAPISdkClient

func NewMockDatasetAPISdkClient(ctrl *gomock.Controller) *MockDatasetAPISdkClient

NewMockDatasetAPISdkClient creates a new mock instance.

func (*MockDatasetAPISdkClient) EXPECT

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

func (*MockDatasetAPISdkClient) GetDataset

func (m *MockDatasetAPISdkClient) GetDataset(arg0 context.Context, arg1 sdk.Headers, arg2 string) (models.Dataset, error)

GetDataset mocks base method.

func (*MockDatasetAPISdkClient) GetDatasetByPath

func (m *MockDatasetAPISdkClient) GetDatasetByPath(arg0 context.Context, arg1 sdk.Headers, arg2 string) (models.Dataset, error)

GetDatasetByPath mocks base method.

func (*MockDatasetAPISdkClient) GetEdition

func (m *MockDatasetAPISdkClient) GetEdition(arg0 context.Context, arg1 sdk.Headers, arg2, arg3 string) (models.Edition, error)

GetEdition mocks base method.

func (*MockDatasetAPISdkClient) GetEditions

func (m *MockDatasetAPISdkClient) GetEditions(arg0 context.Context, arg1 sdk.Headers, arg2 string, arg3 *sdk.QueryParams) (sdk.EditionsList, error)

GetEditions mocks base method.

func (*MockDatasetAPISdkClient) GetVersion

func (m *MockDatasetAPISdkClient) GetVersion(arg0 context.Context, arg1 sdk.Headers, arg2, arg3, arg4 string) (models.Version, error)

GetVersion mocks base method.

func (*MockDatasetAPISdkClient) GetVersionDimensionOptions

func (m *MockDatasetAPISdkClient) GetVersionDimensionOptions(arg0 context.Context, arg1 sdk.Headers, arg2, arg3, arg4, arg5 string, arg6 *sdk.QueryParams) (sdk.VersionDimensionOptionsList, error)

GetVersionDimensionOptions mocks base method.

func (*MockDatasetAPISdkClient) GetVersionDimensions

func (m *MockDatasetAPISdkClient) GetVersionDimensions(arg0 context.Context, arg1 sdk.Headers, arg2, arg3, arg4 string) (sdk.VersionDimensionsList, error)

GetVersionDimensions mocks base method.

func (*MockDatasetAPISdkClient) GetVersionMetadata

func (m *MockDatasetAPISdkClient) GetVersionMetadata(arg0 context.Context, arg1 sdk.Headers, arg2, arg3, arg4 string) (models.Metadata, error)

GetVersionMetadata mocks base method.

func (*MockDatasetAPISdkClient) GetVersionV2

func (m *MockDatasetAPISdkClient) GetVersionV2(arg0 context.Context, arg1 sdk.Headers, arg2, arg3, arg4 string) (models.Version, error)

GetVersionV2 mocks base method.

func (*MockDatasetAPISdkClient) GetVersions

func (m *MockDatasetAPISdkClient) GetVersions(arg0 context.Context, arg1 sdk.Headers, arg2, arg3 string, arg4 *sdk.QueryParams) (sdk.VersionsList, error)

GetVersions mocks base method.

func (*MockDatasetAPISdkClient) PutVersionState

func (m *MockDatasetAPISdkClient) PutVersionState(arg0 context.Context, arg1 sdk.Headers, arg2, arg3, arg4, arg5 string) error

PutVersionState mocks base method.

type MockDatasetAPISdkClientMockRecorder

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

MockDatasetAPISdkClientMockRecorder is the mock recorder for MockDatasetAPISdkClient.

func (*MockDatasetAPISdkClientMockRecorder) GetDataset

func (mr *MockDatasetAPISdkClientMockRecorder) GetDataset(arg0, arg1, arg2 interface{}) *gomock.Call

GetDataset indicates an expected call of GetDataset.

func (*MockDatasetAPISdkClientMockRecorder) GetDatasetByPath

func (mr *MockDatasetAPISdkClientMockRecorder) GetDatasetByPath(arg0, arg1, arg2 interface{}) *gomock.Call

GetDatasetByPath indicates an expected call of GetDatasetByPath.

func (*MockDatasetAPISdkClientMockRecorder) GetEdition

func (mr *MockDatasetAPISdkClientMockRecorder) GetEdition(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetEdition indicates an expected call of GetEdition.

func (*MockDatasetAPISdkClientMockRecorder) GetEditions

func (mr *MockDatasetAPISdkClientMockRecorder) GetEditions(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetEditions indicates an expected call of GetEditions.

func (*MockDatasetAPISdkClientMockRecorder) GetVersion

func (mr *MockDatasetAPISdkClientMockRecorder) GetVersion(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetVersion indicates an expected call of GetVersion.

func (*MockDatasetAPISdkClientMockRecorder) GetVersionDimensionOptions

func (mr *MockDatasetAPISdkClientMockRecorder) GetVersionDimensionOptions(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call

GetVersionDimensionOptions indicates an expected call of GetVersionDimensionOptions.

func (*MockDatasetAPISdkClientMockRecorder) GetVersionDimensions

func (mr *MockDatasetAPISdkClientMockRecorder) GetVersionDimensions(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetVersionDimensions indicates an expected call of GetVersionDimensions.

func (*MockDatasetAPISdkClientMockRecorder) GetVersionMetadata

func (mr *MockDatasetAPISdkClientMockRecorder) GetVersionMetadata(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetVersionMetadata indicates an expected call of GetVersionMetadata.

func (*MockDatasetAPISdkClientMockRecorder) GetVersionV2

func (mr *MockDatasetAPISdkClientMockRecorder) GetVersionV2(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetVersionV2 indicates an expected call of GetVersionV2.

func (*MockDatasetAPISdkClientMockRecorder) GetVersions

func (mr *MockDatasetAPISdkClientMockRecorder) GetVersions(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetVersions indicates an expected call of GetVersions.

func (*MockDatasetAPISdkClientMockRecorder) PutVersionState

func (mr *MockDatasetAPISdkClientMockRecorder) PutVersionState(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

PutVersionState indicates an expected call of PutVersionState.

type MockFilesAPIClient

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

MockFilesAPIClient is a mock of FilesAPIClient interface.

func NewMockFilesAPIClient

func NewMockFilesAPIClient(ctrl *gomock.Controller) *MockFilesAPIClient

NewMockFilesAPIClient creates a new mock instance.

func (*MockFilesAPIClient) EXPECT

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

func (*MockFilesAPIClient) GetFile

func (m *MockFilesAPIClient) GetFile(arg0 context.Context, arg1, arg2 string) (files.FileMetaData, error)

GetFile mocks base method.

type MockFilesAPIClientMockRecorder

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

MockFilesAPIClientMockRecorder is the mock recorder for MockFilesAPIClient.

func (*MockFilesAPIClientMockRecorder) GetFile

func (mr *MockFilesAPIClientMockRecorder) GetFile(arg0, arg1, arg2 interface{}) *gomock.Call

GetFile indicates an expected call of GetFile.

type MockFilterClient

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

MockFilterClient is a mock of FilterClient interface.

func NewMockFilterClient

func NewMockFilterClient(ctrl *gomock.Controller) *MockFilterClient

NewMockFilterClient creates a new mock instance.

func (*MockFilterClient) CreateBlueprint

func (m *MockFilterClient) CreateBlueprint(arg0 context.Context, arg1, arg2, arg3, arg4, arg5, arg6, arg7 string, arg8 []string) (string, string, error)

CreateBlueprint mocks base method.

func (*MockFilterClient) CreateCustomFilter

func (m *MockFilterClient) CreateCustomFilter(arg0 context.Context, arg1, arg2, arg3 string) (string, error)

CreateCustomFilter mocks base method.

func (*MockFilterClient) CreateFlexibleBlueprint

func (m *MockFilterClient) CreateFlexibleBlueprint(arg0 context.Context, arg1, arg2, arg3, arg4, arg5, arg6, arg7 string, arg8 []filter.ModelDimension, arg9 string) (string, string, error)

CreateFlexibleBlueprint mocks base method.

func (*MockFilterClient) CreateFlexibleBlueprintCustom

func (m *MockFilterClient) CreateFlexibleBlueprintCustom(arg0 context.Context, arg1, arg2, arg3 string, arg4 filter.CreateFlexBlueprintCustomRequest) (string, string, error)

CreateFlexibleBlueprintCustom mocks base method.

func (*MockFilterClient) EXPECT

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

func (*MockFilterClient) GetDimensionOptions

func (m *MockFilterClient) GetDimensionOptions(arg0 context.Context, arg1, arg2, arg3, arg4, arg5 string, arg6 *filter.QueryParams) (filter.DimensionOptions, string, error)

GetDimensionOptions mocks base method.

func (*MockFilterClient) GetOutput

func (m *MockFilterClient) GetOutput(arg0 context.Context, arg1, arg2, arg3, arg4, arg5 string) (filter.Model, error)

GetOutput mocks base method.

type MockFilterClientMockRecorder

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

MockFilterClientMockRecorder is the mock recorder for MockFilterClient.

func (*MockFilterClientMockRecorder) CreateBlueprint

func (mr *MockFilterClientMockRecorder) CreateBlueprint(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 interface{}) *gomock.Call

CreateBlueprint indicates an expected call of CreateBlueprint.

func (*MockFilterClientMockRecorder) CreateCustomFilter

func (mr *MockFilterClientMockRecorder) CreateCustomFilter(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateCustomFilter indicates an expected call of CreateCustomFilter.

func (*MockFilterClientMockRecorder) CreateFlexibleBlueprint

func (mr *MockFilterClientMockRecorder) CreateFlexibleBlueprint(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 interface{}) *gomock.Call

CreateFlexibleBlueprint indicates an expected call of CreateFlexibleBlueprint.

func (*MockFilterClientMockRecorder) CreateFlexibleBlueprintCustom

func (mr *MockFilterClientMockRecorder) CreateFlexibleBlueprintCustom(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

CreateFlexibleBlueprintCustom indicates an expected call of CreateFlexibleBlueprintCustom.

func (*MockFilterClientMockRecorder) GetDimensionOptions

func (mr *MockFilterClientMockRecorder) GetDimensionOptions(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call

GetDimensionOptions indicates an expected call of GetDimensionOptions.

func (*MockFilterClientMockRecorder) GetOutput

func (mr *MockFilterClientMockRecorder) GetOutput(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

GetOutput indicates an expected call of GetOutput.

type MockPopulationClient

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

MockPopulationClient is a mock of PopulationClient interface.

func NewMockPopulationClient

func NewMockPopulationClient(ctrl *gomock.Controller) *MockPopulationClient

NewMockPopulationClient creates a new mock instance.

func (*MockPopulationClient) EXPECT

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

func (*MockPopulationClient) GetArea

GetArea mocks base method.

func (*MockPopulationClient) GetAreas

GetAreas mocks base method.

func (*MockPopulationClient) GetBlockedAreaCount

GetBlockedAreaCount mocks base method.

func (*MockPopulationClient) GetCategorisations

GetCategorisations mocks base method.

func (*MockPopulationClient) GetDimensionCategories

GetDimensionCategories mocks base method.

func (*MockPopulationClient) GetDimensionsDescription

GetDimensionsDescription mocks base method.

func (*MockPopulationClient) GetPopulationType

GetPopulationType mocks base method.

func (*MockPopulationClient) GetPopulationTypeMetadata

GetPopulationTypeMetadata mocks base method.

func (*MockPopulationClient) GetPopulationTypes

GetPopulationTypes mocks base method.

type MockPopulationClientMockRecorder

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

MockPopulationClientMockRecorder is the mock recorder for MockPopulationClient.

func (*MockPopulationClientMockRecorder) GetArea

func (mr *MockPopulationClientMockRecorder) GetArea(arg0, arg1 interface{}) *gomock.Call

GetArea indicates an expected call of GetArea.

func (*MockPopulationClientMockRecorder) GetAreas

func (mr *MockPopulationClientMockRecorder) GetAreas(arg0, arg1 interface{}) *gomock.Call

GetAreas indicates an expected call of GetAreas.

func (*MockPopulationClientMockRecorder) GetBlockedAreaCount

func (mr *MockPopulationClientMockRecorder) GetBlockedAreaCount(arg0, arg1 interface{}) *gomock.Call

GetBlockedAreaCount indicates an expected call of GetBlockedAreaCount.

func (*MockPopulationClientMockRecorder) GetCategorisations

func (mr *MockPopulationClientMockRecorder) GetCategorisations(arg0, arg1 interface{}) *gomock.Call

GetCategorisations indicates an expected call of GetCategorisations.

func (*MockPopulationClientMockRecorder) GetDimensionCategories

func (mr *MockPopulationClientMockRecorder) GetDimensionCategories(arg0, arg1 interface{}) *gomock.Call

GetDimensionCategories indicates an expected call of GetDimensionCategories.

func (*MockPopulationClientMockRecorder) GetDimensionsDescription

func (mr *MockPopulationClientMockRecorder) GetDimensionsDescription(arg0, arg1 interface{}) *gomock.Call

GetDimensionsDescription indicates an expected call of GetDimensionsDescription.

func (*MockPopulationClientMockRecorder) GetPopulationType

func (mr *MockPopulationClientMockRecorder) GetPopulationType(arg0, arg1 interface{}) *gomock.Call

GetPopulationType indicates an expected call of GetPopulationType.

func (*MockPopulationClientMockRecorder) GetPopulationTypeMetadata

func (mr *MockPopulationClientMockRecorder) GetPopulationTypeMetadata(arg0, arg1 interface{}) *gomock.Call

GetPopulationTypeMetadata indicates an expected call of GetPopulationTypeMetadata.

func (*MockPopulationClientMockRecorder) GetPopulationTypes

func (mr *MockPopulationClientMockRecorder) GetPopulationTypes(arg0, arg1 interface{}) *gomock.Call

GetPopulationTypes indicates an expected call of GetPopulationTypes.

type MockRenderClient

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

MockRenderClient is a mock of RenderClient interface.

func NewMockRenderClient

func NewMockRenderClient(ctrl *gomock.Controller) *MockRenderClient

NewMockRenderClient creates a new mock instance.

func (*MockRenderClient) BuildPage

func (m *MockRenderClient) BuildPage(arg0 io.Writer, arg1 interface{}, arg2 string)

BuildPage mocks base method.

func (*MockRenderClient) EXPECT

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

func (*MockRenderClient) NewBasePageModel

func (m *MockRenderClient) NewBasePageModel() model.Page

NewBasePageModel mocks base method.

type MockRenderClientMockRecorder

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

MockRenderClientMockRecorder is the mock recorder for MockRenderClient.

func (*MockRenderClientMockRecorder) BuildPage

func (mr *MockRenderClientMockRecorder) BuildPage(arg0, arg1, arg2 interface{}) *gomock.Call

BuildPage indicates an expected call of BuildPage.

func (*MockRenderClientMockRecorder) NewBasePageModel

func (mr *MockRenderClientMockRecorder) NewBasePageModel() *gomock.Call

NewBasePageModel indicates an expected call of NewBasePageModel.

type MockTopicAPIClient

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

MockTopicAPIClient is a mock of TopicAPIClient interface.

func NewMockTopicAPIClient

func NewMockTopicAPIClient(ctrl *gomock.Controller) *MockTopicAPIClient

NewMockTopicAPIClient creates a new mock instance.

func (*MockTopicAPIClient) EXPECT

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

func (*MockTopicAPIClient) GetTopicPrivate

func (m *MockTopicAPIClient) GetTopicPrivate(arg0 context.Context, arg1 sdk0.Headers, arg2 string) (*models0.TopicResponse, errors.Error)

GetTopicPrivate mocks base method.

func (*MockTopicAPIClient) GetTopicPublic

func (m *MockTopicAPIClient) GetTopicPublic(arg0 context.Context, arg1 sdk0.Headers, arg2 string) (*models0.Topic, errors.Error)

GetTopicPublic mocks base method.

type MockTopicAPIClientMockRecorder

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

MockTopicAPIClientMockRecorder is the mock recorder for MockTopicAPIClient.

func (*MockTopicAPIClientMockRecorder) GetTopicPrivate

func (mr *MockTopicAPIClientMockRecorder) GetTopicPrivate(arg0, arg1, arg2 interface{}) *gomock.Call

GetTopicPrivate indicates an expected call of GetTopicPrivate.

func (*MockTopicAPIClientMockRecorder) GetTopicPublic

func (mr *MockTopicAPIClientMockRecorder) GetTopicPublic(arg0, arg1, arg2 interface{}) *gomock.Call

GetTopicPublic indicates an expected call of GetTopicPublic.

type MockZebedeeClient

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

MockZebedeeClient is a mock of ZebedeeClient interface.

func NewMockZebedeeClient

func NewMockZebedeeClient(ctrl *gomock.Controller) *MockZebedeeClient

NewMockZebedeeClient creates a new mock instance.

func (*MockZebedeeClient) EXPECT

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

func (*MockZebedeeClient) Get

func (m *MockZebedeeClient) Get(arg0 context.Context, arg1, arg2 string) ([]byte, error)

Get mocks base method.

func (*MockZebedeeClient) GetBreadcrumb

func (m *MockZebedeeClient) GetBreadcrumb(arg0 context.Context, arg1, arg2, arg3, arg4 string) ([]zebedee.Breadcrumb, error)

GetBreadcrumb mocks base method.

func (*MockZebedeeClient) GetDataset

func (m *MockZebedeeClient) GetDataset(arg0 context.Context, arg1, arg2, arg3, arg4 string) (zebedee.Dataset, error)

GetDataset mocks base method.

func (*MockZebedeeClient) GetDatasetLandingPage

func (m *MockZebedeeClient) GetDatasetLandingPage(arg0 context.Context, arg1, arg2, arg3, arg4 string) (zebedee.DatasetLandingPage, error)

GetDatasetLandingPage mocks base method.

func (*MockZebedeeClient) GetHomepageContent

func (m *MockZebedeeClient) GetHomepageContent(arg0 context.Context, arg1, arg2, arg3, arg4 string) (zebedee.HomepageContent, error)

GetHomepageContent mocks base method.

type MockZebedeeClientMockRecorder

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

MockZebedeeClientMockRecorder is the mock recorder for MockZebedeeClient.

func (*MockZebedeeClientMockRecorder) Get

func (mr *MockZebedeeClientMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockZebedeeClientMockRecorder) GetBreadcrumb

func (mr *MockZebedeeClientMockRecorder) GetBreadcrumb(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetBreadcrumb indicates an expected call of GetBreadcrumb.

func (*MockZebedeeClientMockRecorder) GetDataset

func (mr *MockZebedeeClientMockRecorder) GetDataset(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetDataset indicates an expected call of GetDataset.

func (*MockZebedeeClientMockRecorder) GetDatasetLandingPage

func (mr *MockZebedeeClientMockRecorder) GetDatasetLandingPage(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetDatasetLandingPage indicates an expected call of GetDatasetLandingPage.

func (*MockZebedeeClientMockRecorder) GetHomepageContent

func (mr *MockZebedeeClientMockRecorder) GetHomepageContent(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetHomepageContent indicates an expected call of GetHomepageContent.

type RenderClient

type RenderClient interface {
	BuildPage(w io.Writer, pageModel interface{}, templateName string)
	NewBasePageModel() model.Page
}

RenderClient is an interface with methods for require for rendering a template

type TopicAPIClient

type TopicAPIClient interface {
	GetTopicPublic(ctx context.Context, headers topicAPISDK.Headers, id string) (*topicAPIModels.Topic, topicAPIErrors.Error)
	GetTopicPrivate(ctx context.Context, headers topicAPISDK.Headers, id string) (*topicAPIModels.TopicResponse, topicAPIErrors.Error)
}

TopicClient is an interface with methods required for a topic client

type ZebedeeClient

type ZebedeeClient interface {
	GetBreadcrumb(ctx context.Context, userAccessToken, collectionID, lang, path string) ([]zebedee.Breadcrumb, error)
	Get(ctx context.Context, userAccessToken, path string) ([]byte, error)
	GetDatasetLandingPage(ctx context.Context, userAccessToken, collectionID, lang, path string) (zebedee.DatasetLandingPage, error)
	GetDataset(ctx context.Context, userAccessToken, collectionID, lang, path string) (zebedee.Dataset, error)
	GetHomepageContent(ctx context.Context, userAccessToken, collectionID, lang, path string) (m zebedee.HomepageContent, err error)
}

ZebedeeClient is an interface for a zebedee client

Jump to

Keyboard shortcuts

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