responses

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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 DeleteAssetResponse added in v0.40.1

type DeleteAssetResponse struct {
	Response
	Data struct {
		AssetID     int64   `json:"asset_id"`
		AffectedIDs []int64 `json:"affected_ids"`
	} `json:"data"`
}

func (DeleteAssetResponse) TabbyPrint added in v0.40.1

func (r DeleteAssetResponse) TabbyPrint() error

type DeleteAssetTargetResponse added in v0.40.1

type DeleteAssetTargetResponse struct {
	Response
	Data struct {
		AssetID   int64 `json:"asset_id"`
		OldTarget int64 `json:"old_target"`
	} `json:"data"`
}

func (DeleteAssetTargetResponse) TabbyPrint added in v0.40.1

func (r DeleteAssetTargetResponse) TabbyPrint() error

type DeleteAssetsResponse added in v0.40.1

type DeleteAssetsResponse struct {
	Response
	Data struct {
		AssetIDs    []int64 `json:"asset_ids"`
		AffectedIDs []int64 `json:"affected_ids"`
	} `json:"data"`
}

func (DeleteAssetsResponse) TabbyPrint added in v0.50.0

func (r DeleteAssetsResponse) TabbyPrint() error

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 GetAssetDescriptionResponse added in v0.40.1

type GetAssetDescriptionResponse struct {
	Response
	Data struct {
		AssetID     int64  `json:"asset_id"`
		Description string `json:"description"`
	} `json:"data"`
}

func (GetAssetDescriptionResponse) TabbyPrint added in v0.40.1

func (r GetAssetDescriptionResponse) TabbyPrint() error

type GetAssetResponse added in v0.40.1

type GetAssetResponse struct {
	Response
	Data struct {
		Asset models.Asset `json:"asset"`
	} `json:"data"`
}

func (GetAssetResponse) TabbyPrint added in v0.40.1

func (r GetAssetResponse) TabbyPrint() error

type GetAssetStatusResponse added in v0.40.1

type GetAssetStatusResponse struct {
	Response
	Data struct {
		AssetID int64  `json:"asset_id"`
		Status  string `json:"status"`
	} `json:"data"`
}

func (GetAssetStatusResponse) TabbyPrint added in v0.40.1

func (r GetAssetStatusResponse) TabbyPrint() error

type GetAssetTargetResponse added in v0.40.1

type GetAssetTargetResponse struct {
	Response
	Data struct {
		AssetID int64 `json:"asset_id"`
		Target  int64 `json:"target"`
	} `json:"data"`
}

func (GetAssetTargetResponse) TabbyPrint added in v0.40.1

func (r GetAssetTargetResponse) TabbyPrint() error

type GetAssetWithAttributesResponse added in v0.44.0

type GetAssetWithAttributesResponse struct {
	Response
	Data struct {
		Asset      models.Asset
		Attributes []models.KeyValue
	}
}

func (GetAssetWithAttributesResponse) TabbyPrint added in v0.44.0

func (r GetAssetWithAttributesResponse) 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 GetAssetsResponse added in v0.40.1

type GetAssetsResponse struct {
	Response
	Data struct {
		Assets []models.Asset `json:"assets"`
	} `json:"data"`
}

func (GetAssetsResponse) TabbyPrint added in v0.40.1

func (r GetAssetsResponse) TabbyPrint() error

type GetAssetsWithAttributesResponse added in v0.40.1

type GetAssetsWithAttributesResponse struct {
	Response
	Data struct {
		AssetsWithAttributes []models.AssetWithAttributes `json:"assets_with_attributes"`
	}
}

func (GetAssetsWithAttributesResponse) TabbyPrint added in v0.40.1

func (r GetAssetsWithAttributesResponse) TabbyPrint() error

type GetAttributeAssetsResponse added in v0.47.0

type GetAttributeAssetsResponse struct {
	Response
	Data struct {
		AssetsWithAttributes []models.AssetWithAttributes
	}
}

func (GetAttributeAssetsResponse) TabbyPrint added in v0.47.0

func (r GetAttributeAssetsResponse) TabbyPrint() error

type GetAttributeResponse added in v0.45.0

type GetAttributeResponse struct {
	Response
	Data struct {
		Attribute models.Attribute
	}
}

func (GetAttributeResponse) TabbyPrint added in v0.45.0

func (r GetAttributeResponse) 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 GetHealthcheckResponse added in v0.40.1

type GetHealthcheckResponse struct {
	Response
	Data struct {
		DatabaseStatus string `json:"database_status"`
	} `json:"data"`
}

func (GetHealthcheckResponse) TabbyPrint added in v0.40.1

func (r GetHealthcheckResponse) 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 PostAssetsResponse added in v0.40.1

type PostAssetsResponse struct {
	Response
	Data struct {
		Assets []models.Asset `json:"assets"`
	} `json:"data"`
}

func (PostAssetsResponse) TabbyPrint added in v0.40.1

func (r PostAssetsResponse) 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 PostSeedResponse added in v0.40.1

type PostSeedResponse struct {
	Response
}

type PutAssetDescriptionResponse added in v0.40.1

type PutAssetDescriptionResponse struct {
	Response
	Data struct {
		AssetID     int64  `json:"asset_id"`
		Description string `json:"description"`
	} `json:"data"`
}

func (PutAssetDescriptionResponse) TabbyPrint added in v0.40.1

func (r PutAssetDescriptionResponse) TabbyPrint() error

type PutAssetStatusResponse added in v0.40.1

type PutAssetStatusResponse struct {
	Response
	Data struct {
		AssetID int64  `json:"asset_id"`
		Status  string `json:"status"`
	} `json:"data"`
}

func (PutAssetStatusResponse) TabbyPrint added in v0.40.1

func (r PutAssetStatusResponse) TabbyPrint() error

type PutAssetTargetResponse added in v0.40.1

type PutAssetTargetResponse struct {
	Response
	Data struct {
		AssetID int64 `json:"asset_id"`
		Target  int64 `json:"target"`
	} `json:"data"`
}

func (PutAssetTargetResponse) TabbyPrint added in v0.40.1

func (r PutAssetTargetResponse) TabbyPrint() error

type Responder added in v0.46.1

type Responder interface {
	Respond() Responder
}

type Response

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

func (Response) Respond added in v0.46.1

func (r Response) Respond() Responder

func (Response) TabbyPrint

func (r Response) TabbyPrint() error

func (Response) TabbyPrintInfo

func (r Response) TabbyPrintInfo() error

type RestoreAssetResponse added in v0.40.1

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

func (RestoreAssetResponse) TabbyPrint added in v0.40.1

func (r RestoreAssetResponse) TabbyPrint() error

Jump to

Keyboard shortcuts

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