v1alpha1

package
v1.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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