Skip to content

Commit

Permalink
Added interface for RuntimePluginFDU (#154)
Browse files Browse the repository at this point in the history
Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
  • Loading branch information
gabrik committed Oct 29, 2019
1 parent 5577e17 commit 5cf7325
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/api/go/fog05-go/runtime_plugin_fdu.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,46 @@ func (rt *FOSRuntimePluginFDU) GetLocalInstances(fduid string) ([]string, error)
return rt.Connector.Local.Actual.GetNodeFDUInstances(rt.Node, fduid)

}

// RuntimePluginFDUInterface is the interface to be implenter for a Runtime Plugin
type RuntimePluginFDUInterface interface {

//StartRuntime starts the plugin
StartRuntime() error

//StopRuntime stops the plugin
StopRuntime() error

//GetFDUs gets all FDU and instances information
GetFDUs() map[string]FDURecord

//DefineFDU defines an FDU instance from the given record
DefineFDU(FDURecord) error

//UndefineFDU undefines the given FDU instance
UndefineFDU(string) error

//ConfigureFDU configures the given FDU instance
ConfigureFDU(string) error

//CleanFDU cleans the given FDU instance
CleanFDU(string) error

//RunFDU starts the given FDU instance
RunFDU(string) error

//StopFDU stops the given FDU instance
StopFDU(string) error

//MigrateFDU migrates the given FDU instance
MigrateFDU(string) error

//ScaleFDU scales the given FDU instance
ScaleFDU(string) error

//PauseFDU pauses the given FDU instance
PauseFDU(string) error

//ResumeFDU resumes the given FDU instance
ResumeFDU(string) error
}

0 comments on commit 5cf7325

Please sign in to comment.