client

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) CountInstances added in v0.0.3

func (c *Client) CountInstances(jwt jwt.Token, search string, includeGenerated bool) (count int64, err error, errCode int)

func (*Client) CreateInstance

func (c *Client) CreateInstance(instance model.Instance, jwt jwt.Token) (result model.Instance, err error, code int)

func (*Client) DeleteInstance

func (c *Client) DeleteInstance(id string, jwt jwt.Token, forUser string) (err error, errCode int)

func (*Client) ListInstances

func (c *Client) ListInstances(jwt jwt.Token, limit int64, offset int64, sort string, asc bool, search string, includeGenerated bool, forUser string) (results []model.Instance, err error, errCode int)

func (*Client) ReadInstance

func (c *Client) ReadInstance(id string, jwt jwt.Token, forUser string) (result model.Instance, err error, errCode int)

func (*Client) SetInstance

func (c *Client) SetInstance(importType model.Instance, jwt jwt.Token) (err error, code int)

type Interface

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

func NewClient

func NewClient(baseUrl string) Interface

Jump to

Keyboard shortcuts

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