fedops_runtime

package
v0.0.0-...-a8514d4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2015 License: MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

View Source
const (
	KeyFileName    string = ".fedops-key"
	ConfigFileName string = "Fedops-Runtime"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConfig

type ClusterConfig struct {
	ClusterID  string
	MemberID   string
	Created    string
	Modified   string
	Cert       fedops_encryption.Cert
	Containers map[string]fedops_container.Container
}

This config is stored encrypted on disk

type FedopsEvent

type FedopsEvent struct {
	ID         string
	Handle     FedopsEventHandle
	Persistant bool
	Time       time.Time
}

type FedopsEventHandle

type FedopsEventHandle func(event *FedopsEvent)

type Runtime

type Runtime struct {
	Cipherkey      []byte
	Version        string
	PowerDirectory string
	Config         ClusterConfig
	Routes         []fedops_network.FedopsRoute
	Events         []FedopsEvent
}

func (*Runtime) AddRoute

func (r *Runtime) AddRoute(method uint, route string, handle fedops_network.HandleRoute) error

func (*Runtime) Configure

func (r *Runtime) Configure(pwd string) error

func (*Runtime) Error

func (r *Runtime) Error() *RuntimeError

func (*Runtime) GetConfigFile

func (r *Runtime) GetConfigFile(pwd string) ([]byte, error)

func (*Runtime) GetKeyFile

func (r *Runtime) GetKeyFile(pwd string) ([]byte, error)

func (*Runtime) HandleConnection

func (r *Runtime) HandleConnection(conn net.Conn)

Handles incoming requests.

func (*Runtime) HasConfigFile

func (r *Runtime) HasConfigFile(pwd string) bool

func (*Runtime) HasKeyFile

func (r *Runtime) HasKeyFile(pwd string) bool

func (*Runtime) Info

func (r *Runtime) Info()

func (*Runtime) Listen

func (r *Runtime) Listen(status chan error)

func (*Runtime) Load

func (r *Runtime) Load(cipherkey []byte, pwd string) (ClusterConfig, error)

func (*Runtime) StartEventEngine

func (r *Runtime) StartEventEngine(status chan error)

func (*Runtime) Unload

func (r *Runtime) Unload() bool

func (*Runtime) UnloadToMemory

func (r *Runtime) UnloadToMemory() []byte

type RuntimeError

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

func (RuntimeError) Error

func (err RuntimeError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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