server

package
v0.0.0-...-8f6edbe Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src string, dst string) (err error)

CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.

func CopyFile

func CopyFile(src, dst string) (err error)

CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.

func Deploy

func Deploy(sandboxName string, procName string, model *mod.Model) error

Deploy - Generate charts & deploy single process or entire scenario

func Init

func Init() (err error)

Init - Initialize virtualization engine

func Run

func Run() (err error)

Run - Start Virt Engine execution

Types

type DeploymentTemplate

type DeploymentTemplate struct {
	Enabled                  string
	Name                     string
	ReplicaCount             string
	ApiVersion               string
	MatchLabels              []string
	TemplateLabels           []string
	ContainerName            string
	ContainerImageRepository string
	ContainerImagePullPolicy string
	ContainerEnvEnabled      string
	ContainerEnv             []string
	ContainerCommandEnabled  string
	ContainerCommand         []string
	ContainerCommandArg      []string
	GpuEnabled               string
	GpuType                  string
	GpuCount                 string
	PlacementId              string
	CpuEnabled               string
	CpuMin                   string
	CpuMax                   string
	MemoryEnabled            string
	MemoryMin                string
	MemoryMax                string
}

DeploymentTemplate - Deployment Template

type EgressServiceTemplate

type EgressServiceTemplate struct {
	Name      string
	MeSvcName string
	IP        string
	Port      string
	Protocol  string
}

EgressServiceTemplate - Egress Service Template

type ExternalTemplate

type ExternalTemplate struct {
	Enabled           string
	Selector          []string
	IngressServiceMap []IngressServiceTemplate
	EgressServiceMap  []EgressServiceTemplate
}

ExternalTemplate - External Template

type IngressServiceTemplate

type IngressServiceTemplate struct {
	Name     string
	Port     string
	NodePort string
	Protocol string
}

IngressServiceTemplate - Ingress Service Template

type SandboxTemplate

type SandboxTemplate struct {
	InstanceId    string
	SandboxName   string
	Namespace     string
	HostUrl       string
	UserSwagger   string
	HttpsOnly     bool
	AuthEnabled   bool
	IsMepService  bool
	MepName       string
	AppEnablement string
	Env           []string
}

SandboxTemplate -helm values.yaml template

type ScenarioTemplate

type ScenarioTemplate struct {
	Name       string
	Deployment DeploymentTemplate
	Service    ServiceTemplate
	External   ExternalTemplate
	Namespace  string
}

ScenarioTemplate -helm values.yaml template

type ServicePortTemplate

type ServicePortTemplate struct {
	Port       string
	TargetPort string
	Protocol   string
	NodePort   string
}

ServicePortTemplate - Service Port Template

type ServiceTemplate

type ServiceTemplate struct {
	Enabled          string
	Name             string
	Namespace        string
	Labels           []string
	Selector         []string
	Type             string
	Ports            []ServicePortTemplate
	MeServiceEnabled string
	MeServiceName    string
}

ServiceTemplate - Service Template

type VirtEngine

type VirtEngine struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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