Documentation
¶
Index ¶
- func Cost(model modelcatalog.Model) *contract.ModelCatalogCostPayload
- func OptionalString(value *string) string
- func ProviderModel(model modelcatalog.Model) contract.ProviderModelPayload
- func ProviderModelList(models []modelcatalog.Model) contract.ProviderModelListResponse
- func SourceRefs(refs []modelcatalog.SourceRef) []contract.ModelCatalogSourceRefPayload
- func SourceStatuses(statuses []modelcatalog.SourceStatus) []contract.ModelCatalogSourceStatusPayload
- func TimeString(value time.Time) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cost ¶
func Cost(model modelcatalog.Model) *contract.ModelCatalogCostPayload
Cost projects the complete five-rate catalog cost when any rate is known.
func OptionalString ¶
OptionalString projects a nullable catalog string to its wire representation.
func ProviderModel ¶
func ProviderModel(model modelcatalog.Model) contract.ProviderModelPayload
ProviderModel converts one catalog model without exposing transport aliases.
func ProviderModelList ¶
func ProviderModelList(models []modelcatalog.Model) contract.ProviderModelListResponse
ProviderModelList converts catalog models into the shared public API contract.
func SourceRefs ¶
func SourceRefs(refs []modelcatalog.SourceRef) []contract.ModelCatalogSourceRefPayload
SourceRefs converts model source provenance to the public contract.
func SourceStatuses ¶
func SourceStatuses(statuses []modelcatalog.SourceStatus) []contract.ModelCatalogSourceStatusPayload
SourceStatuses converts catalog lifecycle state to the public contract.
func TimeString ¶
TimeString projects catalog timestamps in the canonical wire format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.