models

package
v0.6.1-beta Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Id         string `json:"id,omitempty"`
	Name       string `json:"name,omitempty"`
	Image      string `json:"image,omitempty"`
	Started    int64  `json:"started,omitempty"`
	Status     string `json:"status,omitempty"`
	ExitStatus int32  `json:"exit_status"`
}

type ContainerRuntime

type ContainerRuntime int64
const (
	Podman ContainerRuntime = iota
	Docker
	Both
)

func (ContainerRuntime) String

func (e ContainerRuntime) String() string

type GraphCommChannel

type GraphCommChannel struct {
	Layer           *int
	ScenarioId      *string
	ScenarioLogFile *string
	Err             error
}

type ResolvedGraph

type ResolvedGraph [][]string

type Scenario

type Scenario struct {
	// the only purpose of this attribute is to put a comment in the json
	Comment string            `json:"_comment,omitempty"`
	Image   string            `json:"image,omitempty"`
	Name    string            `json:"name,omitempty"`
	Env     map[string]string `json:"env,omitempty"`
	Volumes map[string]string `json:"volumes,omitempty"`
}

type ScenarioContainer

type ScenarioContainer struct {
	Scenario       *Scenario
	ScenarioDetail *models.ScenarioDetail
	Container      *Container
}

type ScenarioNode

type ScenarioNode struct {
	Scenario
	Parent *string `json:"depends_on,omitempty"`
}

func (ScenarioNode) GetParent

func (s ScenarioNode) GetParent() *string

type ScenarioSet

type ScenarioSet map[string]ScenarioNode

Jump to

Keyboard shortcuts

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