types

package
v0.0.0-...-3c10da9 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Servers     []string      `yaml:"servers"` // Cores' address and port
	Default     DefaultConfig `yaml:"default"`
	Concurrency int           `yaml:"concurrency"` // Default concurrency
}

Config holds eru-lambda config

type DefaultConfig

type DefaultConfig struct {
	AdminPod     string   `yaml:"adminpod"`     // Where to run privilege code
	AdminVolumes []string `yaml:"adminvolumes"` // Volume used by admin
	Pod          string   `yaml:"pod"`          // Default Pod
	Image        string   `yaml:"image"`        // Base Image
	Network      string   `yaml:"network"`      // Default SDN
	WorkingDir   string   `yaml:"working_dir"`  // Default CWD
	Cpu          float64  `yaml:"cpu"`          // Default CPU
	Memory       int64    `yaml:"memory"`       // Default Memory
	Timeout      int      `yaml:"timeout"`      // Default timeout
	OpenStdin    bool     `yaml:"OpenStdin"`    // Default Openstdin
}

type RunParams

type RunParams struct {
	Name       string
	Command    string
	Network    string
	Workingdir string
	Image      string
	CPU        float64
	Mem        int64
	Count      int
	Timeout    int
	Envs       []string
	Volumes    []string
	OpenStdin  bool
	Pod        string
	Raw        bool
}

Jump to

Keyboard shortcuts

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