object

package
v6.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchCreate

func BatchCreate(params []warrant.ObjectParams) ([]warrant.Object, error)

func BatchDelete

func BatchDelete(params []warrant.ObjectParams) (string, error)

func Create

func Create(params *warrant.ObjectParams) (*warrant.Object, error)

func Delete

func Delete(objectType string, objectId string) (string, error)

func Get

func Get(objectType string, objectId string, params *warrant.ObjectParams) (*warrant.Object, error)

func ListObjects

func ListObjects(listParams *warrant.ListObjectParams) (warrant.ListResponse[warrant.Object], error)

func Update

func Update(objectType string, objectId string, params *warrant.ObjectParams) (*warrant.Object, error)

Types

type Client

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

func NewClient

func NewClient(config warrant.ClientConfig) Client

func (Client) BatchCreate

func (c Client) BatchCreate(params []warrant.ObjectParams) ([]warrant.Object, error)

func (Client) BatchDelete

func (c Client) BatchDelete(params []warrant.ObjectParams) (string, error)

func (Client) Create

func (c Client) Create(params *warrant.ObjectParams) (*warrant.Object, error)

func (Client) Delete

func (c Client) Delete(objectType string, objectId string) (string, error)

func (Client) Get

func (c Client) Get(objectType string, objectId string, params *warrant.ObjectParams) (*warrant.Object, error)

func (Client) ListObjects

func (c Client) ListObjects(listParams *warrant.ListObjectParams) (warrant.ListResponse[warrant.Object], error)

func (Client) Update

func (c Client) Update(objectType string, objectId string, params *warrant.ObjectParams) (*warrant.Object, error)

Jump to

Keyboard shortcuts

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