X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=lib%2Fagent%2Fproject-interface.go;h=4d6181956765e28e3417838c1ef5529df0bff9b8;hb=a2cc38902ff7528870822110c4f04329a3918564;hp=867c588160e77b3597517b52c02bebabeaca9104;hpb=2de3cf95d310ae0c83e68973cd97921f7f6fff4a;p=src%2Fxds%2Fxds-agent.git diff --git a/lib/agent/project-interface.go b/lib/agent/project-interface.go index 867c588..4d61819 100644 --- a/lib/agent/project-interface.go +++ b/lib/agent/project-interface.go @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 "IoT.bzh" + * Copyright (C) 2017-2018 "IoT.bzh" * Author Sebastien Douheret * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,16 +17,16 @@ package agent -import "github.com/iotbzh/xds-agent/lib/xaapiv1" +import "gerrit.automotivelinux.org/gerrit/src/xds/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 + 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 }