summaryrefslogtreecommitdiffstats
path: root/lib/agent/project-interface.go
blob: c9e9ec53be751dc3aabf6c263b433d725b0f3def (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package agent

import "github.com/iotbzh/xds-agent/lib/apiv1"

// IPROJECT Project interface
type IPROJECT interface {
	Add(cfg apiv1.ProjectConfig) (*apiv1.ProjectConfig, error)           // Add a new project
	Delete() error                                                             // Delete a project
	GetProject() *apiv1.ProjectConfig                                       // Get project public configuration
	UpdateProject(prj apiv1.ProjectConfig) (*apiv1.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
}