engine

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SystemCertVolumePrefix = "baetyl-cert-volume-"
	SystemCertSecretPrefix = "baetyl-cert-secret-"
)
View Source
const (
	ErrCreateChain          = "failed to create new chain"
	ErrCloseChain           = "failed to close connected chain"
	ErrGetChain             = "failed to get connected chain"
	ErrPublishDownsideChain = "failed to publish downside chain"
	ErrExecData             = "failed to exec"
	ErrSubNodeName          = "failed to get sub node name"
	ErrAgentNotSet          = "failed to request for the not set agent"
	ErrTimeout              = "engine timeout"

	PrefixHTTP  = "http://"
	PrefixHTTPS = "https://"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Start()
	ReportAndDesire() error
	GetServiceLog(ctx *routing.Context) error
	Collect(ns string, isSys bool, desire specv1.Desire) specv1.Report
	Close()
}

func NewEngine

func NewEngine(cfg config.Config, sto *bh.Store, nod node.Node, syn sync.Sync, agentClient agent.AgentClient) (Engine, error)

Jump to

Keyboard shortcuts

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