api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 12 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(jwt auth.Token, limit int64, offset int64, sort string, asc bool, search string, includeGenerated bool) (results []model.Instance, err error, errCode int)
	ReadInstance(id string, jwt auth.Token) (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, jwt auth.Token) (err error, errCode int)
	CountInstances(jwt auth.Token, 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