remote

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

A Processor and ReposItory for COnfiguration Templates

Index

Constants

View Source
const CALL_TIMEOUT = 10 * time.Second

Variables

View Source
var (
	E_OK                                = status.New(codes.OK, "")
	E_CONFIGURATION_BACKEND_UNAVAILABLE = status.Errorf(codes.Internal, "configuration backend unavailable")
	E_BAD_INPUT                         = status.Errorf(codes.InvalidArgument, "bad request received")
)

Functions

func DetectorInventoryToPbDetectorInventory added in v0.43.90

func DetectorInventoryToPbDetectorInventory(inventory map[string][]string) map[string]*apricotpb.DetectorInventoryResponse

func NewServer

func NewServer(service configuration.Service) *grpc.Server

func NewService

func NewService(configUri string) (svc configuration.Service, err error)

func PbDetectorInventoryToDetectorInventory added in v0.43.90

func PbDetectorInventoryToDetectorInventory(inventory map[string]*apricotpb.DetectorInventoryResponse) map[string][]string

Types

type RemoteService

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

func (*RemoteService) GetAndProcessComponentConfiguration

func (c *RemoteService) GetAndProcessComponentConfiguration(query *componentcfg.Query, varStack map[string]string) (payload string, err error)

func (*RemoteService) GetCRUCardsForHost added in v0.22.0

func (c *RemoteService) GetCRUCardsForHost(hostname string) (cards string, err error)

func (*RemoteService) GetComponentConfiguration

func (c *RemoteService) GetComponentConfiguration(query *componentcfg.Query) (payload string, err error)

func (*RemoteService) GetComponentConfigurationWithLastIndex added in v0.29.2

func (c *RemoteService) GetComponentConfigurationWithLastIndex(query *componentcfg.Query) (payload string, lastIndex uint64, err error)

func (*RemoteService) GetDefaults

func (c *RemoteService) GetDefaults() map[string]string

func (*RemoteService) GetDetectorForHost added in v0.22.0

func (c *RemoteService) GetDetectorForHost(hostname string) (payload string, err error)

func (*RemoteService) GetDetectorsForHosts added in v0.26.3

func (c *RemoteService) GetDetectorsForHosts(hosts []string) (payload []string, err error)

func (*RemoteService) GetDetectorsInventory added in v0.43.90

func (c *