master

package
v0.0.0-...-e4797a1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version of master

Functions

This section is empty.

Types

type Config

type Config struct {
	Mode     string                 `yaml:"mode" json:"mode" default:"docker" validate:"regexp=^(native|docker)$"`
	Server   string                 `yaml:"server" json:"server"`
	Services []openedge.ServiceInfo `yaml:"services" json:"services" default:"[]"`
	Grace    time.Duration          `yaml:"grace" json:"grace" default:"30s"`
	Logger   openedge.LogInfo       `yaml:"logger" json:"logger"`
}

Config master config

type DynamicConfig

type DynamicConfig struct {
	Version  string                 `yaml:"version" json:"version"`
	Services []openedge.ServiceInfo `yaml:"services" json:"services" default:"[]"`
	Grace    time.Duration          `yaml:"grace" json:"grace" default:"30s"`
	Logger   openedge.LogInfo       `yaml:"logger" json:"logger"`
}

DynamicConfig for reload

type Master

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

Master master manages all modules and connects with cloud

func New

func New(workdir, confpath string) (*Master, error)

New creates a new master

func (*Master) Close

func (m *Master) Close() error

Close closes agent

type Server

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

Server for master API

func (*Server) InspectSystem

func (s *Server) InspectSystem(args *openedge.InspectSystemRequest, reply *openedge.InspectSystemResponse) error

InspectSystem inspect

func (*Server) UpdateSystem

func (s *Server) UpdateSystem(args *openedge.UpdateSystemRequest, reply *openedge.UpdateSystemResponse) error

UpdateSystem reload

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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