services

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppList

func GetAppList() map[string][]m.ContainerInfo

Types

type ContainerUpdate

type ContainerUpdate struct {
	Uuid       string            `json:"uuid"`
	Containers []m.ContainerInfo `json:"containers"`
}

type DataStore

type DataStore struct {
	LastUpdated map[string]time.Time
	Containers  map[string][]m.ContainerInfo
	// contains filtered or unexported fields
}

func (*DataStore) AddEntries

func (ds *DataStore) AddEntries(uuid string, containers []m.ContainerInfo)

func (*DataStore) CleanupOutdatedEntries

func (ds *DataStore) CleanupOutdatedEntries(maxAgeInMinutes int)

func (*DataStore) DeleteAllEntries

func (ds *DataStore) DeleteAllEntries(uuid string)

func (*DataStore) GetContainerList

func (ds *DataStore) GetContainerList() []m.ContainerInfo

func (*DataStore) GetLastUpdated

func (ds *DataStore) GetLastUpdated(uuid string) (time.Time, bool)

func (*DataStore) GetSidecarList

func (ds *DataStore) GetSidecarList() []string

func (*DataStore) ReplaceEntries

func (ds *DataStore) ReplaceEntries(uuid string, containers []m.ContainerInfo)

Jump to

Keyboard shortcuts

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