Documentation ¶
Index ¶
- Variables
- func ActivateAccount(id string) (string, error)
- func CreateAccount(account *model.Account) (*model.Account, error)
- func CreateHost(host *model.Host) (*model.Host, error)
- func CreateMesh(mesh *model.Mesh) (*model.Mesh, error)
- func CreateService(service *model.Service) (*model.Service, error)
- func CreateSubscription(service *model.Subscription) (*model.Subscription, error)
- func CreateUser(user *model.User) (*model.User, error)
- func DeleteAccount(id string) error
- func DeleteHost(id string) error
- func DeleteMesh(id string) error
- func DeleteService(id string) error
- func DeleteSubscription(id string) error
- func DeleteUser(id string) error
- func EmailHost(id string) error
- func EmailUser(id string, account string, mesh string) error
- func GetAllReservedIps() ([]string, error)
- func GetAllReservedMeshIps(meshId string) ([]string, error)
- func ReadAccount(id string) (*model.Account, error)
- func ReadAllAccounts(email string) ([]*model.Account, error)
- func ReadHost(id string) (*model.Host, error)
- func ReadHost2(param string, id string) ([]*model.Host, error)
- func ReadHostConfig(id string) ([]byte, *string, error)
- func ReadHosts() ([]*model.Host, error)
- func ReadHostsForUser(email string) ([]*model.Host, error)
- func ReadMesh(id string) (*model.Mesh, error)
- func ReadMeshes(email string) ([]*model.Mesh, error)
- func ReadServer() ([]*model.Server, error)
- func ReadServer2(id string) (*model.Server, error)
- func ReadService(id string) (*model.Service, error)
- func ReadServiceHost(serviceGroup string) ([]*model.Service, error)
- func ReadServices(email string) ([]*model.Service, error)
- func ReadSubscription(id string) (*model.Subscription, error)
- func ReadSubscriptions(email string) ([]*model.Subscription, error)
- func ReadUser(id string) (*model.User, error)
- func ReadUsers() ([]*model.User, error)
- func UpdateAccount(Id string, user *model.Account) (*model.Account, error)
- func UpdateHost(Id string, host *model.Host, flag bool) (*model.Host, error)
- func UpdateMesh(Id string, mesh *model.Mesh) (*model.Mesh, error)
- func UpdateServer(server *model.Server) (*model.Server, error)
- func UpdateService(Id string, service *model.Service) (*model.Service, error)
- func UpdateSubscription(Id string, subscription *model.Subscription) (*model.Subscription, error)
- func UpdateUser(Id string, user *model.User) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
var (
CreateLock sync.Mutex
)
Functions ¶
func CreateAccount ¶
CreateAccount with all necessary data
func CreateHost ¶
CreateHost host with all necessary data
func CreateMesh ¶
CreateMesh mesh with all necessary data
func CreateService ¶
CreateService service with all necessary data
func CreateSubscription ¶
func CreateSubscription(service *model.Subscription) (*model.Subscription, error)
CreateSubscription all necessary data
func CreateUser ¶
CreateUser user with all necessary data
func GetAllReservedIps ¶
GetAllReservedIps the list of all reserved IPs, client and server
func GetAllReservedMeshIps ¶
GetAllReservedIps the list of all reserved IPs, client and server
func ReadAllAccounts ¶
ReadAllAccounts account by id or email address
func ReadHostConfig ¶
ReadHostConfig in wg format
func ReadHostsForUser ¶
ReadHosts all hosts
func ReadServiceHost ¶
ReadServiceHost returns all services configured for a host
func ReadServices ¶
ReadServices all clients
func ReadSubscription ¶
func ReadSubscription(id string) (*model.Subscription, error)
ReadSubscription by id
func ReadSubscriptions ¶
func ReadSubscriptions(email string) ([]*model.Subscription, error)
ReadSubscriptions all clients
func UpdateAccount ¶
UpdateUser preserve keys
func UpdateHost ¶
UpdateHost preserve keys
func UpdateMesh ¶
UpdateMesh preserve keys
func UpdateServer ¶
UpdateServer keep private values from existing one
func UpdateService ¶
UpdateService preserve keys
func UpdateSubscription ¶
func UpdateSubscription(Id string, subscription *model.Subscription) (*model.Subscription, error)
UpdateSubscription by id
Types ¶
This section is empty.