object

package
v5.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

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

func Delete

func Delete(objectType string, objectId string) error

func Get

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

func ListObjects

func ListObjects(listParams *warrant.ListObjectParams) ([]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) Create

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

func (Client) Delete

func (c Client) Delete(objectType string, objectId 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.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