X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=lib%2Fagent%2Fproject-interface.go;fp=lib%2Fagent%2Fproject-interface.go;h=719121042e17464daa78247f4a773b8794ede79c;hb=7c7d90a781082c6bd22d12a5e2451ca61a5198af;hp=0d6bb1a6b9b367952c07c37fb9abb0be9d61ef7c;hpb=b9239d295a7fb7e3f5c595887b3bf77d50c8b216;p=src%2Fxds%2Fxds-agent.git diff --git a/lib/agent/project-interface.go b/lib/agent/project-interface.go index 0d6bb1a..7191210 100644 --- a/lib/agent/project-interface.go +++ b/lib/agent/project-interface.go @@ -1,14 +1,14 @@ package agent -import "github.com/iotbzh/xds-agent/lib/apiv1" +import "github.com/iotbzh/xds-agent/lib/xaapiv1" // IPROJECT Project interface type IPROJECT interface { - Add(cfg apiv1.ProjectConfig) (*apiv1.ProjectConfig, error) // Add a new project - Setup(prj apiv1.ProjectConfig) (*apiv1.ProjectConfig, error) // Local setup of the project + Add(cfg xaapiv1.ProjectConfig) (*xaapiv1.ProjectConfig, error) // Add a new project + Setup(prj xaapiv1.ProjectConfig) (*xaapiv1.ProjectConfig, error) // Local setup of the project Delete() error // Delete a project - GetProject() *apiv1.ProjectConfig // Get project public configuration - Update(prj apiv1.ProjectConfig) (*apiv1.ProjectConfig, error) // Update project configuration + GetProject() *xaapiv1.ProjectConfig // Get project public configuration + Update(prj xaapiv1.ProjectConfig) (*xaapiv1.ProjectConfig, error) // Update project configuration GetServer() *XdsServer // Get XdsServer that holds this project Sync() error // Force project files synchronization IsInSync() (bool, error) // Check if project files are in-sync