Documentation ¶
Index ¶
- Constants
- func AddKnownManifest(man Manifest)
- func DeleteKnownManifest(manifestUniqueID model.ManifestUniqueID)
- func GetCommand(payload []byte) (string, error)
- func GetEdgeAppStatus(manifestUniqueID model.ManifestUniqueID) string
- func GetEdgeAppUniqueID(payload []byte) (model.ManifestUniqueID, error)
- func GetKnownManifests() map[model.ManifestUniqueID]*ManifestRecord
- func GetUsedImages(uniqueID model.ManifestUniqueID) ([]string, error)
- func InitKnownManifests() error
- func SetLastLogRead(manifestUniqueID model.ManifestUniqueID, lastLogReadTime string) error
- func SetStatus(manifestUniqueID model.ManifestUniqueID, status string) error
- type ContainerConfig
- type Manifest
- type ManifestRecord
Constants ¶
View Source
const ManifestFile = "known_manifests.jsonl"
Variables ¶
This section is empty.
Functions ¶
func AddKnownManifest ¶ added in v1.1.0
func AddKnownManifest(man Manifest)
func DeleteKnownManifest ¶ added in v1.1.0
func DeleteKnownManifest(manifestUniqueID model.ManifestUniqueID)
func GetCommand ¶ added in v1.1.0
func GetEdgeAppStatus ¶ added in v1.1.0
func GetEdgeAppStatus(manifestUniqueID model.ManifestUniqueID) string
func GetEdgeAppUniqueID ¶ added in v1.1.0
func GetEdgeAppUniqueID(payload []byte) (model.ManifestUniqueID, error)
func GetKnownManifests ¶
func GetKnownManifests() map[model.ManifestUniqueID]*ManifestRecord
func GetUsedImages ¶ added in v1.1.0
func GetUsedImages(uniqueID model.ManifestUniqueID) ([]string, error)
func InitKnownManifests ¶
func InitKnownManifests() error
func SetLastLogRead ¶ added in v1.1.0
func SetLastLogRead(manifestUniqueID model.ManifestUniqueID, lastLogReadTime string) error
Types ¶
type ContainerConfig ¶
type ContainerConfig struct { ContainerName string ImageNameFull string EnvArgs []string NetworkName string ExposedPorts nat.PortSet // This must be set for the container create PortBinding nat.PortMap // This must be set for the containerStart NetworkConfig network.NetworkingConfig MountConfigs []mount.Mount Labels map[string]string AuthConfig types.AuthConfig Resources container.Resources }
This struct holds information for starting a container
type Manifest ¶
type Manifest struct { UniqueID model.ManifestUniqueID // this is the only field that the manifest should be identified by, the rest of identifiers are just metadata ID string ManifestName string UpdatedAt time.Time Modules []ContainerConfig Labels map[string]string Connections connectionsInt }
func (Manifest) UpdateManifest ¶
type ManifestRecord ¶ added in v1.2.0
func GetKnownManifest ¶ added in v1.1.1
func GetKnownManifest(manifestUniqueID model.ManifestUniqueID) *ManifestRecord
Click to show internal directories.
Click to hide internal directories.