Documentation ¶
Index ¶
- type APIClient
- func (a *APIClient) DeleteAsset(assetID int64) (response apiresponse.AssetDELETE, err error)
- func (a *APIClient) DeleteAssetAttribute(assetAttributeID int64) (response apiresponse.AssetAttributeDELETE, err error)
- func (a *APIClient) DeleteAssetTarget(assetID int64) (response apiresponse.AssetTargetDELETE, err error)
- func (a *APIClient) DeleteAssets(assetIDs []int64) (response apiresponse.AssetsDELETE, err error)
- func (a *APIClient) DeleteAttribute(attributeID int64) (response apiresponse.AttributeDELETE, err error)
- func (a *APIClient) GetAllAssets(options options.GetAllAssetsOptions) (response apiresponse.AssetsAllGET, err error)
- func (a *APIClient) GetAsset(assetID int64) (response apiresponse.AssetGET, err error)
- func (a *APIClient) GetAssetAttribute(assetAttributeID int64) (r apiresponse.AssetAttributeGET, err error)
- func (a *APIClient) GetAssetAttributes(assetID int64) (response apiresponse.AssetAttributesGET, err error)
- func (a *APIClient) GetAssetDescription(assetID int64) (response apiresponse.AssetDescriptionGET, err error)
- func (a *APIClient) GetAssetStatus(assetID int64) (response apiresponse.AssetStatusGET, err error)
- func (a *APIClient) GetAssetTarget(assetID int64) (response apiresponse.AssetTargetGET, err error)
- func (a *APIClient) GetAssetWithAttributes(assetID int64) (apiresponse.AssetAttributesGET, error)
- func (a *APIClient) GetAssets(options options.GetAssetsOptions) (response apiresponse.AssetsGET, err error)
- func (a *APIClient) GetAssetsAttributes() (response apiresponse.AssetsAttributesGET, err error)
- func (a *APIClient) GetAssetsWithAttributes(deleted bool, pageSize, page int) (apiresponse.AttributeAssetsGET, error)
- func (a *APIClient) GetAttribute(attributeID int64) (response apiresponse.AttributeGET, err error)
- func (a *APIClient) GetAttributeAssets(attributeID int64) (response apiresponse.AttributeAssetsGET, err error)
- func (a *APIClient) GetAttributes() (response apiresponse.AttributesGET, err error)
- func (a *APIClient) GetEvents() (response apiresponse.EventsGET, err error)
- func (a *APIClient) GetHealth() (response apiresponse.HealthGET, err error)
- func (a *APIClient) InsertAssetAttributes(assetAttributes []models.AssetAttribute) (response apiresponse.AssetsAttributesPOST, err error)
- func (a *APIClient) InsertAssets(assets []models.Asset) (response apiresponse.AssetsPOST, err error)
- func (a *APIClient) InsertAttributes(attributes []models.Attribute) (response apiresponse.AttributesPOST, err error)
- func (a *APIClient) RestoreAsset(assetID int64) (response apiresponse.AssetRestorePOST, err error)
- func (a *APIClient) RestoreAttribute(attributeID int64) (response apiresponse.AttributeRestorePOST, err error)
- func (a *APIClient) Seed() (response apiresponse.SeedPOST, err error)
- func (a *APIClient) UpdateAssetDescription(assetID int64, description string) (response apiresponse.AssetDescriptionPUT, err error)
- func (a *APIClient) UpdateAssetStatus(assetID int64, status string) (response apiresponse.AssetStatusPUT, err error)
- func (a *APIClient) UpdateAssetTarget(assetID, target int64) (response apiresponse.AssetTargetPUT, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
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) 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) 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) 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) 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)
Click to show internal directories.
Click to hide internal directories.