executor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const DOCKER = "docker"
View Source
const K8S = "k8s"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Scenario          string
	Environment       string `for:"all"`
	Registry          string `for:"all"`
	Username          string `for:"all"`
	Password          string `for:"all"`
	Timeout           string `for:"docker"`
	Config            string `for:"k8s"`
	Namespace         string `for:"k8s"`
	Cpu               string `for:"k8s"`
	Memory            string `for:"k8s"`
	Secret            string `for:"k8s"`
	Replica           string `for:"k8s"`
	ContinueOnFailure int    `for:"all"`
}

func (*Config) GetMyConfig

func (e *Config) GetMyConfig(my string) map[string]string

type Docker

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

func NewDocker

func NewDocker(g runner.Runner) (*Docker, error)

func (*Docker) Initialize

func (d *Docker) Initialize(c Config) error

func (*Docker) Run

func (d *Docker) Run() error

type Executor

type Executor interface {
	Initialize(c Config) error
	Run() error
}

func NewExecutor

func NewExecutor(config Config) (Executor, error)

type Image

type Image struct {
	Id       string `json:"id"`
	Title    string `json:"title"`
	Name     string `json:"name"`
	Port     int32  `json:"port"`
	Registry string `json:"registry"`
}

type Kubernetes

type Kubernetes struct {
	Scenario  string
	Namespace string
	Usage     string
	Replica   int32
	CPU       string
	Memory    string
	Secret    string
	// contains filtered or unexported fields
}

func NewKubernetes

func NewKubernetes(g runner.Runner) (*Kubernetes, error)

func (*Kubernetes) Initialize

func (k *Kubernetes) Initialize(c Config) error

func (*Kubernetes) Run

func (k *Kubernetes) Run() error

Jump to

Keyboard shortcuts

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