responses

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package responses contains structs for manipulating haul API responses

Index

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 DeleteV1AssetsResponse struct {
	Response
	Data struct {
		AssetIDs []int64 `json:"asset_ids"`
	} `json:"data"`
}

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 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 Response

type Response struct {
	StatusCode int    `json:"status_code"`
	Message    string `json:"message"`
}

func (Response) TabbyPrint

func (r Response) TabbyPrint() error

func (Response) TabbyPrintInfo

func (r Response) TabbyPrintInfo() error

type RestoreV1AssetResponse

type RestoreV1AssetResponse struct {
	Response
	Data struct {
		AssetID int64 `json:"asset_id"`
	} `json:"data"`
}

func (RestoreV1AssetResponse) TabbyPrint

func (r RestoreV1AssetResponse) TabbyPrint() error

Jump to

Keyboard shortcuts

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