Documentation ¶
Index ¶
- Constants
- type ClusterConfig
- type FedopsEvent
- type FedopsEventHandle
- type Runtime
- func (r *Runtime) AddRoute(method uint, route string, handle fedops_network.HandleRoute) error
- func (r *Runtime) Configure(pwd string) error
- func (r *Runtime) Error() *RuntimeError
- func (r *Runtime) GetConfigFile(pwd string) ([]byte, error)
- func (r *Runtime) GetKeyFile(pwd string) ([]byte, error)
- func (r *Runtime) HandleConnection(conn net.Conn)
- func (r *Runtime) HasConfigFile(pwd string) bool
- func (r *Runtime) HasKeyFile(pwd string) bool
- func (r *Runtime) Info()
- func (r *Runtime) Listen(status chan error)
- func (r *Runtime) Load(cipherkey []byte, pwd string) (ClusterConfig, error)
- func (r *Runtime) StartEventEngine(status chan error)
- func (r *Runtime) Unload() bool
- func (r *Runtime) UnloadToMemory() []byte
- type RuntimeError
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) Error ¶
func (r *Runtime) Error() *RuntimeError
func (*Runtime) HandleConnection ¶
Handles incoming requests.
func (*Runtime) HasConfigFile ¶
func (*Runtime) HasKeyFile ¶
func (*Runtime) StartEventEngine ¶
func (*Runtime) UnloadToMemory ¶
type RuntimeError ¶
type RuntimeError struct {
// contains filtered or unexported fields
}
func (RuntimeError) Error ¶
func (err RuntimeError) Error() string
Click to show internal directories.
Click to hide internal directories.