{"modulePath":"github.com/AliceO2Group/Control","version":"v1.51.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package remote\n\nA Processor and ReposItory for COnfiguration Templates\n\nPackage remote implements a remote configuration backend for the configuration service, accessing configuration handled by a different application via gRPC.\n\n## Constants\n\n```go\nconst CALL_TIMEOUT = 10 * time.Second\n```\n\n## Variables\n\n```go\nvar (\n\tE_OK                                = status.New(codes.OK, \"\")\n\tE_CONFIGURATION_BACKEND_UNAVAILABLE = status.Errorf(codes.Internal, \"configuration backend unavailable\")\n\tE_BAD_INPUT                         = status.Errorf(codes.InvalidArgument, \"bad request received\")\n)\n```\n\n## Functions\n\n```go\nfunc DetectorInventoryToPbDetectorInventory(inventory map[string][]string) map[string]*apricotpb.DetectorInventoryResponse\n```\n\n```go\nfunc NewServer(service configuration.Service) *grpc.Server\n```\n\n```go\nfunc NewService(configUri string) (svc configuration.Service, err error)\n```\n\n```go\nfunc PbDetectorInventoryToDetectorInventory(inventory map[string]*apricotpb.DetectorInventoryResponse) map[string][]string\n```\n\n## Types\n\n```go\ntype RemoteService struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (c *RemoteService) GetAliasedLinkIDsForDetector(detector string, onlyEnabled bool) ([]string, error)\n```\n\n```go\nfunc (c *RemoteService) GetAndProcessComponentConfiguration(query *componentcfg.Query, varStack map[string]string) (payload string, err error)\n```\n\n```go\nfunc (c *RemoteService) GetCRUCardsForHost(hostname string) (cards []string, err error)\n```\n\n```go\nfunc (c *RemoteService) GetComponentConfiguration(query *componentcfg.Query) (payload string, err error)\n```\n\n```go\nfunc (c *RemoteService) GetComponentConfigurationWithLastIndex(query *componentcfg.Query) (payload string, lastIndex uint64, err error)\n```\n\n```go\nfunc (c *RemoteService) GetDefaults() map[string]string\n```\n\n```go\nfunc (c *RemoteService) GetDetectorForHost(hostname string) (payload string, err error)\n```\n\n```go\nfunc (c *RemoteService) GetDetectorsForHosts(hosts []string) (payload []string, err error)\n```\n\n```go\nfunc (c *RemoteService) GetDetectorsInventory() (inventory map[string][]string, err error)\n```\n\n```go\nfunc (c *RemoteService) GetEndpointsForCRUCard(hostname, cardSerial string) (endpoints []string, err error)\n```\n\n```go\nfunc (c *RemoteService) GetHostInventory(detector string) (hosts []string, err error)\n```\n\n```go\nfunc (c *RemoteService) GetLinkIDsForCRUEndpoint(hostname, cardSerial, endpoint string, onlyEnabled bool) ([]string, error)\n```\n\n```go\nfunc (c *RemoteService) GetRuntimeEntries(component string) (payload map[string]string, err error)\n```\n\n```go\nfunc (c *RemoteService) GetRuntimeEntry(component string, key string) (payload string, err error)\n```\n\n```go\nfunc (c *RemoteService) GetVars() map[string]string\n```\n\n```go\nfunc (c *RemoteService) ImportComponentConfiguration(query *componentcfg.Query, payload string, newComponent bool) (existingComponentUpdated bool, existingEntryUpdated bool, err error)\n```\n\n```go\nfunc (c *RemoteService) InvalidateComponentTemplateCache()\n```\n\n```go\nfunc (c *RemoteService) ListComponentEntries(query *componentcfg.EntriesQuery) (entries []string, err error)\n```\n\n```go\nfunc (c *RemoteService) ListComponents() (components []string, err error)\n```\n\n```go\nfunc (c *RemoteService) ListDetectors(getAll bool) (detectors []string, err error)\n```\n\n```go\nfunc (c *RemoteService) ListRuntimeEntries(component string) (payload []string, err error)\n```\n\n```go\nfunc (c *RemoteService) NewRunNumber() (runNumber uint32, err error)\n```\n\n```go\nfunc (c *RemoteService) RawGetRecursive(path string) (payload string, err error)\n```\n\n```go\nfunc (c *RemoteService) ResolveComponentQuery(query *componentcfg.Query) (resolved *componentcfg.Query, err error)\n```\n\n```go\nfunc (c *RemoteService) SetRuntimeEntry(component string, key string, value string) (err error)\n```\n\n```go\ntype RpcServer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (m *RpcServer) GetAliasedLinkIDsForDetector(_ context.Context, request *apricotpb.AliasedLinkIDsRequest) (*apricotpb.AliasedLinkIDsResponse, error)\n```\n\n```go\nfunc (m *RpcServer) GetCRUCardsForHost(_ context.Context, request *apricotpb.HostRequest) (*apricotpb.CRUCardsResponse, error)\n```\n\n```go\nfunc (m *RpcServer) GetComponentConfiguration(_ context.Context, request *apricotpb.ComponentRequest) (*apricotpb.ComponentResponse, error)\n```\n\n```go\nfunc (m *RpcServer) GetComponentConfigurationWithLastIndex(_ context.Context, request *apricotpb.ComponentRequest) (*apricotpb.ComponentResponseWithLastIndex, error)\n```\n\n```go\nfunc (m *RpcServer) GetDefaults(_ context.Context, _ *apricotpb.Empty) (*apricotpb.StringMap, error)\n```\n\n```go\nfunc (m *RpcServer) GetDetectorForHost(_ context.Context, request *apricotpb.HostRequest) (*apricotpb.DetectorResponse, error)\n```\n\n```go\nfunc (m *RpcServer) GetDetectorsForHosts(_ context.Context, request *apricotpb.HostsRequest) (*apricotpb.DetectorsResponse, error)\n```\n\n```go\nfunc (m *RpcServer) GetDetectorsInventory(_ context.Context, _ *apricotpb.Empty) (*apricotpb.DetectorEntriesResponse, error)\n```\n\n```go\nfunc (m *RpcServer) GetEndpointsForCRUCard(_ context.Context, request *apricotpb.CardRequest) (*apricotpb.CRUCardEndpointResponse, error)\n```\n\n```go\nfunc (m *RpcServer) GetHostInventory(_ context.Context, request *apricotpb.HostGetRequest) (*apricotpb.HostEntriesResponse, error)\n```\n\n```go\nfunc (m *RpcServer) GetLinkIDsForCRUEndpoint(_ context.Context, request *apricotpb.LinkIDsRequest) (*apricotpb.LinkIDsResponse, error)\n```\n\n```go\nfunc (m *RpcServer) GetRuntimeEntries(_ context.Context, request *apricotpb.GetRuntimeEntriesRequest) (*apricotpb.StringMap, error)\n```\n\n```go\nfunc (m *RpcServer) GetRuntimeEntry(_ context.Context, request *apricotpb.GetRuntimeEntryRequest) (*apricotpb.ComponentResponse, error)\n```\n\n```go\nfunc (m *RpcServer) GetVars(_ context.Context, _ *apricotpb.Empty) (*apricotpb.StringMap, error)\n```\n\n```go\nfunc (m *RpcServer) ImportComponentConfiguration(_ context.Context, request *apricotpb.ImportComponentConfigurationRequest) (*apricotpb.ImportComponentConfigurationResponse, error)\n```\n\n```go\nfunc (m *RpcServer) InvalidateComponentTemplateCache(_ context.Context, _ *apricotpb.Empty) (*apricotpb.Empty, error)\n```\n\n```go\nfunc (m *RpcServer) ListComponentEntries(_ context.Context, request *apricotpb.ListComponentEntriesRequest) (*apricotpb.ComponentEntriesResponse, error)\n```\n\n```go\nfunc (m *RpcServer) ListComponents(_ context.Context, _ *apricotpb.Empty) (*apricotpb.ComponentEntriesResponse, error)\n```\n\n```go\nfunc (m *RpcServer) ListDetectors(_ context.Context, request *apricotpb.DetectorsRequest) (*apricotpb.DetectorsResponse, error)\n```\n\n```go\nfunc (m *RpcServer) ListRuntimeEntries(_ context.Context, request *apricotpb.ListRuntimeEntriesRequest) (*apricotpb.ComponentEntriesResponse, error)\n```\n\n```go\nfunc (m *RpcServer) NewRunNumber(_ context.Context, _ *apricotpb.Empty) (*apricotpb.RunNumberResponse, error)\n```\n\n```go\nfunc (m *RpcServer) RawGetRecursive(_ context.Context, request *apricotpb.RawGetRecursiveRequest) (*apricotpb.ComponentResponse, error)\n```\n\n```go\nfunc (m *RpcServer) ResolveComponentQuery(_ context.Context, request *apricotpb.ComponentQuery) (*apricotpb.ComponentQuery, error)\n```\n\n```go\nfunc (m *RpcServer) SetRuntimeEntry(_ context.Context, request *apricotpb.SetRuntimeEntryRequest) (*apricotpb.Empty, error)\n```\n\n","path":"github.com/AliceO2Group/Control/apricot/remote","name":"remote","synopsis":"A Processor and ReposItory for COnfiguration Templates","isRedistributable":true}
