core

package
v0.0.0-...-5597880 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountIDFromDatasetID

func AccountIDFromDatasetID(id uuid.UUID) string

func MarshalUUID

func MarshalUUID(id uuid.UUID) string

func NewAccessService

func NewAccessService(
	dataCatalogueURL string,
	slackapi service.SlackAPI,
	pollyStorage service.PollyStorage,
	accessStorage service.AccessStorage,
	dataProductStorage service.DataProductsStorage,
	bigQueryStorage service.BigQueryStorage,
	joinableViewStorage service.JoinableViewsStorage,
	bigQueryAPI service.BigQueryAPI,
) *accessService

func NewBigQueryService

func NewBigQueryService(
	bigQueryStorage service.BigQueryStorage,
	bigQueryAPI service.BigQueryAPI,
	dataProductStorage service.DataProductsStorage,
) *bigQueryService

func NewDataProductsService

func NewDataProductsService(
	dataProductStorage service.DataProductsStorage,
	bigQueryStorage service.BigQueryStorage,
	bigQueryAPI service.BigQueryAPI,
	naisConsoleStorage service.NaisConsoleStorage,
	allUsersGroup string,
) *dataProductsService

func NewInsightProductService

func NewInsightProductService(storage service.InsightProductStorage) *insightProductService

func NewJoinableViewsService

func NewJoinableViewsService(
	joinableViewsStorage service.JoinableViewsStorage,
	accessStorage service.AccessStorage,
	dataProductStorage service.DataProductsStorage,
	bigQueryAPI service.BigQueryAPI,
	bigQueryStorage service.BigQueryStorage,
) *joinableViewsService

func NewKeywordsService

func NewKeywordsService(storage service.KeywordsStorage, adminGroup string) *keywordsService

func NewMetabaseService

func NewMetabaseService(
	gcpProject string,
	serviceAccount string,
	serviceAccountEmail string,
	groupAllUsers string,
	mbapi service.MetabaseAPI,
	bqapi service.BigQueryAPI,
	saapi service.ServiceAccountAPI,
	tpms service.ThirdPartyMappingStorage,
	mbs service.MetabaseStorage,
	bqs service.BigQueryStorage,
	dps service.DataProductsStorage,
	as service.AccessStorage,
	log zerolog.Logger,
) *metabaseService

func NewNaisConsoleService

func NewNaisConsoleService(storage service.NaisConsoleStorage, api service.NaisConsoleAPI) *naisConsoleService

func NewPollyService

func NewPollyService(storage service.PollyStorage, api service.PollyAPI) *pollyService

func NewProductAreaService

func NewProductAreaService(
	productAreaStorage service.ProductAreaStorage,
	dataProductStorage service.DataProductsStorage,
	insightProductStorage service.InsightProductStorage,
	storyStorage service.StoryStorage,
) *productAreaService

func NewSearchService

func NewSearchService(
	searchStorage service.SearchStorage,
	storyStorage service.StoryStorage,
	dataProductsStorage service.DataProductsStorage,
) *searchService

func NewSlackService

func NewSlackService(slackAPI service.SlackAPI) service.SlackService

func NewStoryService

func NewStoryService(
	storyStorage service.StoryStorage,
	teamKatalogenAPI service.TeamKatalogenAPI,
	storyAPI service.StoryAPI,
	createIgnoreMissingTeam bool,
) *storyService

func NewTeamKatalogenService

func NewTeamKatalogenService(api service.TeamKatalogenAPI) *teamkatalogenService

func NewTokenService

func NewTokenService(tokenStorage service.TokenStorage) service.TokenService

func NewUserService

func NewUserService(
	accessStorage service.AccessStorage,
	tokenStorage service.TokenStorage,
	storyStorage service.StoryStorage,
	dataProductStorage service.DataProductsStorage,
	insightProductStorage service.InsightProductStorage,
	naisConsoleStorage service.NaisConsoleStorage,
	log zerolog.Logger,
) *userService

Types

type Services

type Services struct {
	AccessService         service.AccessService
	BigQueryService       service.BigQueryService
	DataProductService    service.DataProductsService
	InsightProductService service.InsightProductService
	JoinableViewService   service.JoinableViewsService
	KeyWordService        service.KeywordsService
	MetaBaseService       service.MetabaseService
	PollyService          service.PollyService
	ProductAreaService    service.ProductAreaService
	SearchService         service.SearchService
	SlackService          service.SlackService
	StoryService          service.StoryService
	TeamKatalogenService  service.TeamKatalogenService
	TokenService          service.TokenService
	UserService           service.UserService
	NaisConsoleService    service.NaisConsoleService
}

func NewServices

func NewServices(
	cfg config.Config,
	stores *storage.Stores,
	clients *api.Clients,
	log zerolog.Logger,
) (*Services, error)

Directories

Path Synopsis
api
gcp
cache

Jump to

Keyboard shortcuts

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