manifest

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

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 GetCommand(payload []byte) (string, error)

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

func SetStatus

func SetStatus(manifestUniqueID model.ManifestUniqueID, status 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 Parse added in v1.1.0

func Parse(payload []byte) (Manifest, error)

func (Manifest) UpdateManifest

func (m Manifest) UpdateManifest(networkName string)

type ManifestRecord added in v1.2.0

type ManifestRecord struct {
	Manifest        Manifest
	Status          string
	LastLogReadTime string
}

func GetKnownManifest added in v1.1.1

func GetKnownManifest(manifestUniqueID model.ManifestUniqueID) *ManifestRecord

Jump to

Keyboard shortcuts

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