local

package
v0.26.5 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: GPL-3.0 Imports: 22 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 Cards added in v0.22.0

type Cards 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) ApiGetClusterInformation added in v0.22.80

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

func (*HttpService) ApiGetDetectorFlps added in v0.22.80

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

func (*HttpService) ApiGetFlps added in v0.22.80

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

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) 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) 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() (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) 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