Documentation ¶
Overview ¶
Package apiresponse defines haul's API response types
Index ¶
- type AssetAttributesGET
- type AssetDELETE
- type AssetDescriptionGET
- type AssetDescriptionPUT
- type AssetGET
- type AssetRestorePOST
- type AssetStatusDELETE
- type AssetStatusGET
- type AssetStatusPUT
- type AssetTargetDELETE
- type AssetTargetGET
- type AssetTargetPUT
- type AssetsAllGET
- type AssetsDELETE
- type AssetsDetailedGET
- type AssetsGET
- type AssetsPOST
- type AssetsRestorePOST
- type AttributeAllowEmptyValuePUT
- type AttributeAssetsGET
- type AttributeDELETE
- type AttributeGET
- type AttributeKeyGET
- type AttributeKeyPUT
- type AttributeRestorePOST
- type AttributesDELETE
- type AttributesGET
- type AttributesPOST
- type EventsGET
- type HealthGET
- type Response
- type SeedPOST
- type SpecGET
- type TabbyPrinter
- type TagDELETE
- type TagDetailedGET
- type TagGET
- type TagValueGET
- type TagValuePUT
- type TagsDELETE
- type TagsGET
- type TagsPOST
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetAttributesGET ¶ added in v0.63.0
type AssetAttributesGET struct { Response Data struct { Asset models.Asset KeyValues []models.KeyValue } }
AssetAttributesGET is the response type for `GET /v1/assets/{asset_id}/attributes`
func (AssetAttributesGET) TabbyPrint ¶ added in v0.63.0
func (r AssetAttributesGET) TabbyPrint() error
type AssetDELETE ¶ added in v0.63.0
AssetDELETE is the response type for `DELETE /v1/assets/{asset_id}`
func (AssetDELETE) TabbyPrint ¶ added in v0.63.0
func (r AssetDELETE) TabbyPrint() error
type AssetDescriptionGET ¶ added in v0.63.0
AssetDescriptionGET is the response type for `GET /v1/assets/{asset_id}/description`
func (AssetDescriptionGET) TabbyPrint ¶ added in v0.63.0
func (r AssetDescriptionGET) TabbyPrint() error
type AssetDescriptionPUT ¶ added in v0.63.0
AssetDescriptionPUT is the response type for `PUT /v1/assets/{asset_id}/description`
func (AssetDescriptionPUT) TabbyPrint ¶ added in v0.63.0
func (r AssetDescriptionPUT) TabbyPrint() error
type AssetGET ¶ added in v0.63.0
AssetGET is the response type for `GET /v1/assets/{asset_id}`
func (AssetGET) TabbyPrint ¶ added in v0.63.0
type AssetRestorePOST ¶ added in v0.63.0
AssetRestorePOST is the response type for `POST /v1/assets/{asset_id}/restore`
func (AssetRestorePOST) TabbyPrint ¶ added in v0.63.0
func (r AssetRestorePOST) TabbyPrint() error
type AssetStatusDELETE ¶ added in v0.63.0
AssetStatusDELETE is the response type for `DELETE /v1/assets/{asset_id}/status`
func (AssetStatusDELETE) TabbyPrint ¶ added in v0.63.0
func (r AssetStatusDELETE) TabbyPrint() error
type AssetStatusGET ¶ added in v0.63.0
AssetStatusGET is the response type for `GET /v1/assets/{asset_id}/status`
func (AssetStatusGET) TabbyPrint ¶ added in v0.63.0
func (r AssetStatusGET) TabbyPrint() error
type AssetStatusPUT ¶ added in v0.63.0
AssetStatusPUT is the response type for `PUT /v1/assets/{asset_id}/status`
func (AssetStatusPUT) TabbyPrint ¶ added in v0.63.0
func (r AssetStatusPUT) TabbyPrint() error
type AssetTargetDELETE ¶ added in v0.63.0
AssetTargetDELETE is the response type for `DELETE /v1/assets/{asset_id}/target`
func (AssetTargetDELETE) TabbyPrint ¶ added in v0.63.0
func (r AssetTargetDELETE) TabbyPrint() error
type AssetTargetGET ¶ added in v0.63.0
AssetTargetGET is the response type for `GET /v1/assets/{asset_id}/target`
func (AssetTargetGET) TabbyPrint ¶ added in v0.63.0
func (r AssetTargetGET) TabbyPrint() error
type AssetTargetPUT ¶ added in v0.63.0
AssetTargetPUT is the response type for `PUT /v1/assets/{asset_id}/target`
func (AssetTargetPUT) TabbyPrint ¶ added in v0.63.0
func (r AssetTargetPUT) TabbyPrint() error
type AssetsAllGET ¶ added in v0.60.0
AssetsAllGET is the response type for `GET /v1/assets/all`
func (AssetsAllGET) TabbyPrint ¶ added in v0.60.0
func (r AssetsAllGET) TabbyPrint() error
type AssetsDELETE ¶ added in v0.63.0
AssetsDELETE is the response type for `DELETE /v1/assets`
func (AssetsDELETE) TabbyPrint ¶ added in v0.63.0
func (r AssetsDELETE) TabbyPrint() error
type AssetsDetailedGET ¶ added in v0.74.0
type AssetsDetailedGET struct { Response Data struct { AssetsDetailed []models.AssetDetailed } }
AssetsDetailedGET is the response type for `GET /v1/assets/detailed`
func (AssetsDetailedGET) TabbyPrint ¶ added in v0.74.0
func (r AssetsDetailedGET) TabbyPrint() error
type AssetsGET ¶ added in v0.63.0
AssetsGET is the response type for `GET /v1/assets`
func (AssetsGET) TabbyPrint ¶ added in v0.63.0
type AssetsPOST ¶ added in v0.63.0
AssetsPOST is the response type for `POST /v1/assets`
func (AssetsPOST) TabbyPrint ¶ added in v0.63.0
func (r AssetsPOST) TabbyPrint() error
type AssetsRestorePOST ¶ added in v0.67.0
AssetsRestorePOST is the response type for `POST /v1/assets/restore`
func (AssetsRestorePOST) TabbyPrint ¶ added in v0.67.0
func (r AssetsRestorePOST) TabbyPrint() error
type AttributeAllowEmptyValuePUT ¶ added in v0.75.0
type AttributeAllowEmptyValuePUT struct {
AttributeGET
}
AttributeAllowEmptyValuePUT
type AttributeAssetsGET ¶ added in v0.63.0
type AttributeAssetsGET struct { Response Data struct { AssetsWithAttributes []models.AssetWithAttributes } }
AttributeAssetsGET is the response type for `GET /v1/attributes/{attribute_id}/assets`
func (AttributeAssetsGET) TabbyPrint ¶ added in v0.63.0
func (r AttributeAssetsGET) TabbyPrint() error
type AttributeDELETE ¶ added in v0.63.0
AttributeDELETE is the response type for `DELETE /v1/attributes/{attribute_id}`
func (AttributeDELETE) TabbyPrint ¶ added in v0.63.0
func (r AttributeDELETE) TabbyPrint() error
type AttributeGET ¶ added in v0.63.0
AttributeGET is the response type for `GET /v1/attributes/{attribute_id}`
func (AttributeGET) TabbyPrint ¶ added in v0.63.0
func (r AttributeGET) TabbyPrint() error
type AttributeKeyGET ¶ added in v0.95.0
func (AttributeKeyGET) TabbyPrint ¶ added in v0.95.0
func (r AttributeKeyGET) TabbyPrint() error
type AttributeKeyPUT ¶ added in v0.75.0
type AttributeKeyPUT struct {
AttributeGET
}
AttributeKeyPUT
type AttributeRestorePOST ¶ added in v0.63.0
AttributeRestorePOST is the response type for `POST /v1/attributes/{attribute_id}/restore`
func (AttributeRestorePOST) TabbyPrint ¶ added in v0.63.0
func (r AttributeRestorePOST) TabbyPrint() error
type AttributesDELETE ¶ added in v0.77.0
AttributesDELETE
func (AttributesDELETE) TabbyPrint ¶ added in v0.77.0
func (r AttributesDELETE) TabbyPrint() error
type AttributesGET ¶ added in v0.63.0
AttributesGET is the response type for `GET /v1/attributes`
func (AttributesGET) TabbyPrint ¶ added in v0.63.0
func (r AttributesGET) TabbyPrint() error
type AttributesPOST ¶ added in v0.63.0
AttributesPOST is the response type for `POST /v1/attributes`
func (AttributesPOST) TabbyPrint ¶ added in v0.63.0
func (r AttributesPOST) TabbyPrint() error
type EventsGET ¶ added in v0.62.0
EventsGET is the response type for `GET /v1/events`
func (EventsGET) TabbyPrint ¶ added in v0.62.0
type HealthGET ¶
HealthGET is the response type for `GET /v1/health`
func (HealthGET) TabbyPrint ¶ added in v0.60.0
type Response ¶ added in v0.60.0
func (Response) BetterTabbyPrint ¶ added in v0.66.1
func (Response) TabbyPrint ¶ added in v0.61.0
func (Response) TabbyPrintInfo ¶ added in v0.60.0
type SeedPOST ¶ added in v0.61.0
type SeedPOST struct {
Response
}
SeedPOST is the response type for `POST /v1/seed`
type SpecGET ¶ added in v0.87.0
SpecGET is the response type for `GET /v1/spec`
func (SpecGET) TabbyPrint ¶ added in v0.87.0
type TabbyPrinter ¶ added in v0.60.0
type TagDELETE ¶ added in v0.78.0
TagDELETE is the response type for `DELETE /v1/tags/{tag_id}`
func (TagDELETE) TabbyPrint ¶ added in v0.78.0
type TagDetailedGET ¶ added in v0.78.0
type TagDetailedGET struct { Response Data struct { TagDetailed models.TagDetailed } }
TagDetailedGET is the response type for `GET /v1/tags/{tag_id}/detailed`
func (TagDetailedGET) TabbyPrint ¶ added in v0.78.0
func (r TagDetailedGET) TabbyPrint() error
type TagGET ¶ added in v0.78.0
TagGET is the response type for `GET /v1/tags/{tag_id}`
func (TagGET) TabbyPrint ¶ added in v0.78.0
type TagValueGET ¶ added in v0.78.0
TagValueGET is the response type for `GET /v1/tags/{tag_id}/value`
func (TagValueGET) TabbyPrint ¶ added in v0.78.0
func (r TagValueGET) TabbyPrint() error
type TagValuePUT ¶ added in v0.78.0
TagValuePUT is the response type for `PUT /v1/tags/{tag_id}/value`
func (TagValuePUT) TabbyPrint ¶ added in v0.78.0
func (r TagValuePUT) TabbyPrint() error
type TagsDELETE ¶ added in v0.78.0
TagsDELETE is the response type for `DELETE /v1/tags`
func (TagsDELETE) TabbyPrint ¶ added in v0.78.0
func (r TagsDELETE) TabbyPrint() error
type TagsGET ¶ added in v0.78.0
TagsGET is the response type for `GET /v1/tags`
func (TagsGET) TabbyPrint ¶ added in v0.78.0
type TagsPOST ¶ added in v0.78.0
type TagsPOST struct { Response Data struct { Tags []models.TagDetailed } }
TagsPOST is the response type for `POST /v1/tags`