Documentation ¶
Overview ¶
Package responses contains structs for manipulating haul API responses
Index ¶
- type DeleteV1AssetResponse
- type DeleteV1AssetTargetResponse
- type DeleteV1AssetsResponse
- type GetAssetAttributesResponse
- type GetAssetsAttributesResponse
- type GetAttributesResponse
- type GetEventsResponse
- type GetV1AssetDescriptionResponse
- type GetV1AssetResponse
- type GetV1AssetStatusResponse
- type GetV1AssetTargetResponse
- type GetV1AssetsResponse
- type GetV1AssetsWithAttributesResponse
- type GetV1HealthcheckResponse
- type PostAssetAttributesResponse
- type PostAttributesResponse
- type PostV1AssetsResponse
- type PostV1SeedResponse
- type PutV1AssetDescriptionResponse
- type PutV1AssetStatusResponse
- type PutV1AssetTargetResponse
- type Response
- type RestoreV1AssetResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteV1AssetResponse ¶
type DeleteV1AssetResponse struct { Response Data struct { AssetID int64 `json:"asset_id"` AffectedIDs []int64 `json:"affected_ids"` } `json:"data"` }
func (DeleteV1AssetResponse) TabbyPrint ¶
func (r DeleteV1AssetResponse) TabbyPrint() error
type DeleteV1AssetTargetResponse ¶
type DeleteV1AssetTargetResponse struct { Response Data struct { AssetID int64 `json:"asset_id"` OldTarget int64 `json:"old_target"` } `json:"data"` }
func (DeleteV1AssetTargetResponse) TabbyPrint ¶
func (r DeleteV1AssetTargetResponse) TabbyPrint() error
type DeleteV1AssetsResponse ¶
type GetAssetAttributesResponse ¶ added in v0.33.0
type GetAssetAttributesResponse struct { Response Data struct { KeyValues []models.KeyValue `json:"key_values"` } `json:"data"` }
func (GetAssetAttributesResponse) TabbyPrint ¶ added in v0.33.0
func (r GetAssetAttributesResponse) TabbyPrint() error
type GetAssetsAttributesResponse ¶ added in v0.33.0
type GetAssetsAttributesResponse struct { Response Data struct { AssetAttributes []models.AssetAttribute `json:"asset_attributes"` } `json:"data"` }
func (GetAssetsAttributesResponse) TabbyPrint ¶ added in v0.33.0
func (r GetAssetsAttributesResponse) TabbyPrint() error
type GetAttributesResponse ¶ added in v0.33.0
type GetAttributesResponse struct { Response Data struct { Attributes []models.Attribute `json:"attributes"` } `json:"data"` }
func (GetAttributesResponse) TabbyPrint ¶ added in v0.33.0
func (r GetAttributesResponse) TabbyPrint() error
type GetEventsResponse ¶
type GetEventsResponse struct { Response Data struct { Events []models.Event `json:"events"` } `json:"data"` }
func (GetEventsResponse) TabbyPrint ¶
func (r GetEventsResponse) TabbyPrint() error
type GetV1AssetDescriptionResponse ¶
type GetV1AssetDescriptionResponse struct { Response Data struct { AssetID int64 `json:"asset_id"` Description string `json:"description"` } `json:"data"` }
func (GetV1AssetDescriptionResponse) TabbyPrint ¶
func (r GetV1AssetDescriptionResponse) TabbyPrint() error
type GetV1AssetResponse ¶
type GetV1AssetResponse struct { Response Data struct { Asset models.Asset `json:"asset"` } `json:"data"` }
func (GetV1AssetResponse) TabbyPrint ¶
func (r GetV1AssetResponse) TabbyPrint() error
type GetV1AssetStatusResponse ¶
type GetV1AssetStatusResponse struct { Response Data struct { AssetID int64 `json:"asset_id"` Status string `json:"status"` } `json:"data"` }
func (GetV1AssetStatusResponse) TabbyPrint ¶
func (r GetV1AssetStatusResponse) TabbyPrint() error
type GetV1AssetTargetResponse ¶
type GetV1AssetTargetResponse struct { Response Data struct { AssetID int64 `json:"asset_id"` Target int64 `json:"target"` } `json:"data"` }
func (GetV1AssetTargetResponse) TabbyPrint ¶
func (r GetV1AssetTargetResponse) TabbyPrint() error
type GetV1AssetsResponse ¶
type GetV1AssetsResponse struct { Response Data struct { Assets []models.Asset `json:"assets"` } `json:"data"` }
func (GetV1AssetsResponse) TabbyPrint ¶
func (r GetV1AssetsResponse) TabbyPrint() error
type GetV1AssetsWithAttributesResponse ¶ added in v0.37.0
type GetV1AssetsWithAttributesResponse struct { Response Data struct { //Assets []models.Asset `json:"assets"` AssetsWithAttributes []struct { Asset models.Asset `json:"asset"` Attributes []models.KeyValue `json:"attributes"` } `json:"assets_with_attributes"` } `json:"data"` }
func (GetV1AssetsWithAttributesResponse) TabbyPrint ¶ added in v0.37.0
func (r GetV1AssetsWithAttributesResponse) TabbyPrint() error
type GetV1HealthcheckResponse ¶
type GetV1HealthcheckResponse struct { Response Data struct { DatabaseStatus string `json:"database_status"` } `json:"data"` }
func (GetV1HealthcheckResponse) TabbyPrint ¶
func (r GetV1HealthcheckResponse) TabbyPrint() error
type PostAssetAttributesResponse ¶ added in v0.33.0
type PostAssetAttributesResponse struct { Response Data struct { AssetAttributes []models.AssetAttribute `json:"asset_attributes"` } `json:"data"` }
func (PostAssetAttributesResponse) TabbyPrint ¶ added in v0.33.0
func (r PostAssetAttributesResponse) TabbyPrint() error
type PostAttributesResponse ¶ added in v0.33.0
type PostAttributesResponse struct { Response Data struct { Attributes []models.Attribute `json:"attributes"` } `json:"data"` }
func (PostAttributesResponse) TabbyPrint ¶ added in v0.33.0
func (r PostAttributesResponse) TabbyPrint() error
type PostV1AssetsResponse ¶
type PostV1AssetsResponse struct { Response Data struct { Assets []models.Asset `json:"assets"` } `json:"data"` }
func (PostV1AssetsResponse) TabbyPrint ¶
func (r PostV1AssetsResponse) TabbyPrint() error
type PostV1SeedResponse ¶
type PostV1SeedResponse struct {
Response
}
type PutV1AssetDescriptionResponse ¶
type PutV1AssetDescriptionResponse struct { Response Data struct { AssetID int64 `json:"asset_id"` Description string `json:"description"` } `json:"data"` }
func (PutV1AssetDescriptionResponse) TabbyPrint ¶
func (r PutV1AssetDescriptionResponse) TabbyPrint() error
type PutV1AssetStatusResponse ¶
type PutV1AssetStatusResponse struct { Response Data struct { AssetID int64 `json:"asset_id"` Status string `json:"status"` } `json:"data"` }
func (PutV1AssetStatusResponse) TabbyPrint ¶
func (r PutV1AssetStatusResponse) TabbyPrint() error
type PutV1AssetTargetResponse ¶
type PutV1AssetTargetResponse struct { Response Data struct { AssetID int64 `json:"asset_id"` Target int64 `json:"target"` } `json:"data"` }
func (PutV1AssetTargetResponse) TabbyPrint ¶
func (r PutV1AssetTargetResponse) TabbyPrint() error
type RestoreV1AssetResponse ¶
type RestoreV1AssetResponse struct { Response Data struct { AssetID int64 `json:"asset_id"` } `json:"data"` }
func (RestoreV1AssetResponse) TabbyPrint ¶
func (r RestoreV1AssetResponse) TabbyPrint() error
Click to show internal directories.
Click to hide internal directories.