apiclient

package
v0.73.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: GPL-2.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	Voki *voki.Voki
}

func New

func New(client *http.Client, host, key string, port int, protocol string) *APIClient

func NewFromViper

func NewFromViper(client *http.Client) (*APIClient, error)

func (*APIClient) DeleteAsset

func (a *APIClient) DeleteAsset(assetID int64) (response apiresponse.AssetDELETE, err error)

func (*APIClient) DeleteAssetAttribute

func (a *APIClient) DeleteAssetAttribute(assetAttributeID int64) (response apiresponse.AssetAttributeDELETE, err error)

func (*APIClient) DeleteAssetAttributes added in v0.70.0

func (a *APIClient) DeleteAssetAttributes(assetAttributeIDs []int64) (response apiresponse.AssetsAttributesDELETE, err error)

func (*APIClient) DeleteAssetTarget

func (a *APIClient) DeleteAssetTarget(assetID int64) (response apiresponse.AssetTargetDELETE, err error)

func (*APIClient) DeleteAssets

func (a *APIClient) DeleteAssets(assetIDs []int64) (response apiresponse.AssetsDELETE, err error)

func (*APIClient) DeleteAttribute

func (a *APIClient) DeleteAttribute(attributeID int64) (response apiresponse.AttributeDELETE, err error)

func (*APIClient) GetAllAssets

func (a *APIClient) GetAllAssets(options options.GetAllAssetsOptions) (response apiresponse.AssetsAllGET, err error)

func (*APIClient) GetAsset

func (a *APIClient) GetAsset(assetID int64) (response apiresponse.AssetGET, err error)

func (*APIClient) GetAssetAttribute added in v0.64.0

func (a *APIClient) GetAssetAttribute(assetAttributeID int64) (r apiresponse.AssetAttributeGET, err error)

func (*APIClient) GetAssetAttributeDetailed added in v0.66.0

func (a *APIClient) GetAssetAttributeDetailed(assetAttributeID int64) (r apiresponse.AssetAttributeDetailedGET, err error)

func (*APIClient) GetAssetAttributes

func (a *APIClient) GetAssetAttributes(assetID int64) (response apiresponse.AssetAttributesGET, err error)

func (*APIClient) GetAssetDescription

func (a *APIClient) GetAssetDescription(assetID int64) (response apiresponse.AssetDescriptionGET, err error)

func (*APIClient) GetAssetStatus

func (a *APIClient) GetAssetStatus(assetID int64) (response apiresponse.AssetStatusGET, err error)

func (*APIClient) GetAssetTarget

func (a *APIClient) GetAssetTarget(assetID int64) (response apiresponse.AssetTargetGET, err error)

func (*APIClient) GetAssetWithAttributes

func (a *APIClient) GetAssetWithAttributes(assetID int64) (apiresponse.AssetAttributesGET, error)

func (*APIClient) GetAssets

func (a *APIClient) GetAssets(options options.GetAssetsOptions) (response apiresponse.AssetsGET, err error)

func (*APIClient) GetAssetsAttributes

func (a *APIClient) GetAssetsAttributes() (response apiresponse.AssetsAttributesGET, err error)

func (*APIClient) GetAssetsWithAttributes

func (a *APIClient) GetAssetsWithAttributes(deleted bool, pageSize, page int) (apiresponse.AttributeAssetsGET, error)

func (*APIClient) GetAttribute

func (a *APIClient) GetAttribute(attributeID int64) (response apiresponse.AttributeGET, err error)

func (*APIClient) GetAttributeAssets

func (a *APIClient) GetAttributeAssets(attributeID int64) (response apiresponse.AttributeAssetsGET, err error)

func (*APIClient) GetAttributes

func (a *APIClient) GetAttributes() (response apiresponse.AttributesGET, err error)

func (*APIClient) GetEvents

func (a *APIClient) GetEvents() (response apiresponse.EventsGET, err error)

func (*APIClient) GetHealth

func (a *APIClient) GetHealth() (response apiresponse.HealthGET, err error)

GetHealth allows checking for API server health

func (*APIClient) InsertAssetAttributes

func (a *APIClient) InsertAssetAttributes(assetAttributes []models.AssetAttribute) (response apiresponse.AssetsAttributesPOST, err error)

func (*APIClient) InsertAssets

func (a *APIClient) InsertAssets(assets []models.Asset) (response apiresponse.AssetsPOST, err error)

func (*APIClient) InsertAttributes

func (a *APIClient) InsertAttributes(attributes []models.Attribute) (response apiresponse.AttributesPOST, err error)

func (*APIClient) RestoreAsset

func (a *APIClient) RestoreAsset(assetID int64) (response apiresponse.AssetRestorePOST, err error)

func (*APIClient) RestoreAssets added in v0.67.0

func (a *APIClient) RestoreAssets(assetIDs []int64) (response apiresponse.AssetsRestorePOST, err error)

func (*APIClient) RestoreAttribute

func (a *APIClient) RestoreAttribute(attributeID int64) (response apiresponse.AttributeRestorePOST, err error)

func (*APIClient) Seed

func (a *APIClient) Seed() (response apiresponse.SeedPOST, err error)

Seed allows creating the required tables in the database

func (*APIClient) UpdateAssetAttributeValue added in v0.65.0

func (a *APIClient) UpdateAssetAttributeValue(assetAttributeID int64, value string) (r apiresponse.AssetAttributeValuePUT, err error)

func (*APIClient) UpdateAssetDescription

func (a *APIClient) UpdateAssetDescription(assetID int64, description string) (response apiresponse.AssetDescriptionPUT, err error)

func (*APIClient) UpdateAssetStatus

func (a *APIClient) UpdateAssetStatus(assetID int64, status string) (response apiresponse.AssetStatusPUT, err error)

func (*APIClient) UpdateAssetTarget

func (a *APIClient) UpdateAssetTarget(assetID, target int64) (response apiresponse.AssetTargetPUT, err error)

Jump to

Keyboard shortcuts

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