local

package
v0.82.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpService added in v0.22.80

func NewHttpService(service configuration.Service) (svr *http.Server)

Types

type Card added in v0.59.0

type Card struct {
	Type             string `json:"type"`
	PciAddress       string `json:"pciAddress"`
	Serial           string `json:"serial"`
	Endpoint         string `json:"endpoint"`
	Numa             string `json:"numa"`
	Firware          string `json:"firmware"`
	UserLogicVersion string `json:"userLogicVersion"`
}

type HttpService added in v0.22.80

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

func (*HttpService) ApiGetDetectorFlps added in v0.22.80

func (httpsvc *HttpService) ApiGetDetectorFlps(w http.ResponseWriter, r *http.Request)

func (*HttpService) ApiGetDetectorsInventory added in v0.43.90

func (httpsvc *HttpService) ApiGetDetectorsInventory(w http.ResponseWriter, r *http.Request)

func (*HttpService) ApiGetFlps added in v0.22.80

func (httpsvc *HttpService) ApiGetFlps(w http.ResponseWriter, r *http.Request)

func (*HttpService) ApiGetHostInventory added in v0.43.90

func (httpsvc *HttpService) ApiGetHostInventory(w http.ResponseWriter, r *http.Request, detector string)

func (*HttpService) ApiPrintClusterInformation added in v0.43.90

func (httpsvc *HttpService) ApiPrintClusterInformation(w http.ResponseWriter, r *http.Request, hosts []string, inventory map[string][]string)

type Service

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

func NewService

func NewService(uri string) (svc *Service, err error)

func (*Service) GenerateWorkflowDescriptor

func (s *Service) GenerateWorkflowDescriptor(wfPath string, vars map[string]string) string

Returns a YAML file OR even a structure made of Roles or Nodes with: import() functions already computed and resolved vars inserted

func (*Service) GetAndProcessComponentConfiguration

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

func (*Service) GetCRUCardsForHost added in v0.22.0

func (s *Service) GetCRUCardsForHost(hostname string) (string, error)

func (*Service) GetComponentConfiguration

func (s *Service) GetComponentConfiguration(query *componentcfg.Query) (payload string, err error)

func (*Service) GetComponentConfigurationWithLastIndex added in v0.29.2

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

func (*Service) GetDefaults

func (s *Service) GetDefaults() map[string]string

maybe this one shouldn't exist at all, because vars should get inserted response: but not all of them! some vars will likely only get parsed at deployment time i.e. right before pushing TaskInfos

func (*Service) GetDetectorForHost added in v0.22.0

func (s *Service) GetDetectorForHost(hostname string) (string, error)

func (*Service) GetDetectorsForHosts added in v0.26.3

func (s *Service) GetDetectorsForHosts(hosts []string) ([]string, error)

func (*Service) GetDetectorsInventory added in v0.43.90

func (s *Service) GetDetectorsInventory() (inventory map[string][]string, err error)

func (*Service) GetEndpointsForCRUCard added in v0.22.0

func (s *Service) GetEndpointsForCRUCard(hostname, cardSerial string) (string, error)

func (*Service) GetHostInventory added in v0.22.80

func (s *Service) GetHostInventory(detector string) (hosts []string, err error)

func (*Service) GetRuntimeEntry

func (s *Service) GetRuntimeEntry(component string, key string) (string, error)

func (*Service) GetVars

func (s *Service) GetVars() map[string]string

func (*Service) ImportComponentConfiguration

func (s *Service) ImportComponentConfiguration(query *componentcfg.Query, payload string, newComponent bool, useVersioning bool) (existingComponentUpdated bool, existingEntryUpdated bool, newTimestamp int64, err error)

func (*Service) ListComponentEntries

func (s *Service) ListComponentEntries(query *componentcfg.EntriesQuery, showLatestTimestamp bool) (entries []string, err error)

func (*Service) ListComponentEntryHistory

func (s *Service) ListComponentEntryHistory(query *componentcfg.Query) (entries []string, err error)

func (*Service) ListComponents

func (s *Service) ListComponents() (components []string, err error)

func (*Service) ListDetectors added in v0.26.3

func (s *Service) ListDetectors(getAll bool) (detectors []string, err error)

func (*Service) ListRuntimeEntries added in v0.25.80

func (s *Service) ListRuntimeEntries(component string) ([]string, error)

func (*Service) NewRunNumber

func (s *Service) NewRunNumber() (runNumber uint32, err error)

func (*Service) RawGetRecursive

func (s *Service) RawGetRecursive(path string) (string, error)

func (*Service) ResolveComponentQuery added in v0.50.0

func (s *Service) ResolveComponentQuery(query *componentcfg.Query) (resolved *componentcfg.Query, err error)

func (*Service) SetRuntimeEntry

func (s *Service) SetRuntimeEntry(component string, key string, value string) error

Jump to

Keyboard shortcuts

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