Documentation
¶
Overview ¶
Package v1alpha1 provides converters between v1alpha1 API types and domain types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogConverter ¶
type CatalogConverter interface {
ToDomain(apiv1alpha1.Catalog) domain.Catalog
FromDomain(*domain.Catalog) *apiv1alpha1.Catalog
ListFromDomain(*domain.CatalogList) *apiv1alpha1.CatalogList
// CatalogItem conversions
ItemToDomain(apiv1alpha1.CatalogItem) domain.CatalogItem
ItemFromDomain(*domain.CatalogItem) *apiv1alpha1.CatalogItem
ItemListFromDomain(*domain.CatalogItemList) *apiv1alpha1.CatalogItemList
// Params conversions
ListParamsToDomain(apiv1alpha1.ListCatalogsParams) domain.ListCatalogsParams
ListAllItemsParamsToDomain(apiv1alpha1.ListAllCatalogItemsParams) domain.ListAllCatalogItemsParams
ListItemsParamsToDomain(apiv1alpha1.ListCatalogItemsParams) domain.ListCatalogItemsParams
}
CatalogConverter converts between v1alpha1 API types and domain types for Catalog resources.
func NewCatalogConverter ¶
func NewCatalogConverter() CatalogConverter
NewCatalogConverter creates a new CatalogConverter.
type CommonConverter ¶
type CommonConverter interface {
PatchRequestToDomain(apiv1beta1.PatchRequest) domain.PatchRequest
StatusFromDomain(domain.Status) apiv1alpha1.Status
}
CommonConverter converts common types shared across API versions.
func NewCommonConverter ¶
func NewCommonConverter() CommonConverter
NewCommonConverter creates a new CommonConverter.
type Converter ¶
type Converter interface {
Catalog() CatalogConverter
Common() CommonConverter
}
Converter aggregates all resource-specific converters for v1alpha1 API.
func NewConverter ¶
func NewConverter() Converter
NewConverter creates a new Converter instance with all resource converters.
Click to show internal directories.
Click to hide internal directories.