api

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstancesEndpoints

func InstancesEndpoints(_ config.Config, control Controller, router *httprouter.Router)

func Start

func Start(config config.Config, control Controller) (err error)

Types

type Controller

type Controller interface {
	ListInstances(userId string, limit int64, offset int64, sort string, asc bool, search string, includeGenerated bool) (results []model.Instance, err error, errCode int)
	ReadInstance(id string, userId string) (result model.Instance, err error, errCode int)
	CreateInstance(instance model.Instance, jwt auth.Token) (result model.Instance, err error, code int)
	SetInstance(importType model.Instance, jwt auth.Token) (err error, code int)
	DeleteInstance(id string, userId string) (err error, errCode int)
	CountInstances(userId string, search string, includeGenerated bool) (count int64, err error, errCode int)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL