MCPcopy
hub / github.com/spacecloud-io/space-cloud / Store

Interface Store

gateway/managers/syncman/store.go:11–24  ·  view source on GitHub ↗

Store abstracts the implementation of letsencrypt storage operations

Source from the content-addressed store, hash-verified

9
10// Store abstracts the implementation of letsencrypt storage operations
11type Store interface {
12 WatchServices(cb func(eventType string, serviceID string, projects model.ScServices)) error
13 WatchResources(cb func(eventType, resourceId string, resourceType config.Resource, resource interface{})) error
14
15 Register()
16
17 SetResource(ctx context.Context, resourceID string, resource interface{}) error
18 DeleteResource(ctx context.Context, resourceID string) error
19
20 // This function should only be used by delete project endpoint
21 DeleteProject(ctx context.Context, projectID string) error
22
23 GetGlobalConfig() (*config.Config, error)
24}

Callers 23

StartMethod · 0.65
StartMethod · 0.65
NewFunction · 0.65
SetProjectRoutesMethod · 0.65
SetProjectRouteMethod · 0.65
SetGlobalRouteConfigMethod · 0.65
ApplyProjectConfigMethod · 0.65
SetFileStoreMethod · 0.65
SetFileRuleMethod · 0.65
SetUserManagementMethod · 0.65
SetCacheConfigMethod · 0.65
DeleteProjectRouteMethod · 0.65

Implementers 3

mockStoreInterfacegateway/managers/syncman/types_test.go
LocalStoregateway/managers/syncman/store_local.g
KubeStoregateway/managers/syncman/store_kube.go

Calls

no outgoing calls

Tested by

no test coverage detected