client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 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 auth.Token, search string, includeGenerated bool) (count int64, err error, errCode int)

func (*Client) CreateInstance

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

func (*Client) DeleteInstance

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

func (*Client) ListInstances

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

func (*Client) ReadInstance

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

func (*Client) SetInstance

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

type Interface

type Interface = api.Controller

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