Documentation
¶
Index ¶
- Constants
- Variables
- type AppliedConfigs
- type AppsStates
- type ConfigFile
- type DbHandle
- type Device
- func (d *Device) CheckIn(targetName, tag, ostreeHash string, apps string) error
- func (d Device) GetAppsFilePath(file string) string
- func (d Device) GetConfigs() (configs [3]*storage.ConfigFileSet, timestamp int64, err error)
- func (d Device) GetOstreeFilePath(file string) string
- func (d Device) GetTufMeta(tag, file string) (string, error)
- func (d Device) ProcessEvents(events []storage.DeviceUpdateEvent) error
- func (d *Device) PutFile(name string, content string) error
- func (d Device) SaveAppliedConfigs(cfg AppliedConfigs) error
- func (d Device) SaveAppsStates(content string) error
- func (d *Device) TestComplete(testId, status, details string, results []storage.TargetTestResult) error
- func (d *Device) TestCreate(targetName string, testName, testId string) error
- func (d *Device) TestStoreArtifact(testId, path string, body io.Reader) error
- type DeviceUpdateEvent
- type FsHandle
- type Storage
Constants ¶
View Source
const ( // TLS certs CertsCasPemFile = storage.CertsCasPemFile CertsTlsKeyFile = storage.CertsTlsKeyFile CertsTlsPemFile = storage.CertsTlsPemFile // Per device files/dirs ConfigAppliedFile = storage.ConfigAppliedFile AktomlFile = storage.AktomlFile HwInfoFile = storage.HwInfoFile NetInfoFile = storage.NetInfoFile EventsPrefix = storage.EventsPrefix StatesPrefix = storage.StatesPrefix // Per update files/dirs TufRootFile = storage.TufRootFile TufTimestampFile = storage.TufTimestampFile TufSnapshotFile = storage.TufSnapshotFile TufTargetsFile = storage.TufTargetsFile // Per config class files/dirs ConfigSotaOverride = storage.ConfigSotaOverride )
Variables ¶
View Source
var ( NewDb = storage.NewDb NewFs = storage.NewFs TestIdRegex = storage.TestIdRegex ValidCorrelationId = storage.ValidCorrelationId )
Functions ¶
This section is empty.
Types ¶
type AppliedConfigs ¶
type AppliedConfigs = storage.AppliedConfigs
type AppsStates ¶
type AppsStates = storage.AppsStates
type ConfigFile ¶
type ConfigFile = storage.ConfigFile
type Device ¶
type Device struct {
Uuid string `json:"uuid"`
Apps string `json:"docker_apps"`
Deleted bool `json:"-"`
GroupName string `json:"group_name"`
LastSeen int64 `json:"last_seen"`
OstreeHash string `json:"ostree_hash"`
PubKey string `json:"pubkey"`
TargetName string `json:"target_name"`
Tag string `json:"tag"`
UpdateName string `json:"update_name"`
// contains filtered or unexported fields
}
func (Device) GetAppsFilePath ¶
func (Device) GetConfigs ¶
func (d Device) GetConfigs() (configs [3]*storage.ConfigFileSet, timestamp int64, err error)
func (Device) GetOstreeFilePath ¶
func (Device) ProcessEvents ¶
func (d Device) ProcessEvents(events []storage.DeviceUpdateEvent) error
func (Device) SaveAppliedConfigs ¶
func (d Device) SaveAppliedConfigs(cfg AppliedConfigs) error
func (Device) SaveAppsStates ¶
func (*Device) TestComplete ¶
func (d *Device) TestComplete(testId, status, details string, results []storage.TargetTestResult) error
func (*Device) TestCreate ¶
type DeviceUpdateEvent ¶
type DeviceUpdateEvent = storage.DeviceUpdateEvent
Click to show internal directories.
Click to hide internal directories.