model

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 7

Documentation

Overview

Package model contains data objects for long running container

Package model contains data objects for long running container

Index

Constants

View Source
const (
	SSMAgentName       = "amazon-ssm-agent"
	SSMAgentWorkerName = "ssm-agent-worker"
)

Variables

View Source
var SSMAgentWorkerBinaryName = appconfig.DefaultSSMAgentWorker

Functions

This section is empty.

Types

type Process

type Process struct {
	Pid    int           `json:"pid"`
	Status ProcessStatus `json:"status"`
}

Process represent the process information for the worker, such as pid

type ProcessStatus

type ProcessStatus string

ProcessStatus represents status for process: active or unknown

const (
	Active  ProcessStatus = "Active"
	Unknown ProcessStatus = "Unknown"
)

type Worker

type Worker struct {
	Name      string           `json:"name"`
	Processes map[int]*Process `json:"processes"`
	Config    *WorkerConfig    `json:"-"`
}

Worker represents the worker information, one worker could have multiple instances running

type WorkerConfig

type WorkerConfig struct {
	Name       string
	BinaryName string
	Path       string
	Args       []string
}

WorkerConfig contains worker configuration information, such as path and args.

Jump to

Keyboard shortcuts

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