github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/aagent/model/choria.go (about) 1 // Copyright (c) 2021, R.I. Pienaar and the Choria Project contributors 2 // 3 // SPDX-License-Identifier: Apache-2.0 4 5 package model 6 7 import ( 8 "encoding/json" 9 10 "github.com/choria-io/go-choria/inter" 11 "github.com/sirupsen/logrus" 12 ) 13 14 // ChoriaProvider provides access to the choria framework 15 type ChoriaProvider interface { 16 PublishRaw(string, []byte) error 17 Logger(string) *logrus.Entry 18 Identity() string 19 PrometheusTextFileDir() string 20 ScoutOverridesPath() string 21 ServerStatusFile() (string, int) 22 MainCollective() string 23 Connector() inter.Connector 24 Facts() json.RawMessage 25 MachineSignerKey() string 26 }