blob: 719121042e17464daa78247f4a773b8794ede79c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package agent
import "github.com/iotbzh/xds-agent/lib/xaapiv1"
// IPROJECT Project interface
type IPROJECT interface {
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() *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
}
|