catalog

package
v0.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionDeleteRequest

type CollectionDeleteRequest = model.CatalogDeleteInputs

type CollectionGetRequest

type CollectionGetRequest struct {
	model.CatalogQueryInputs `path:",inline" query:",inline"`

	runtime.RequestCollection[
		predicate.Catalog, catalog.OrderOption,
	] `query:",inline"`

	Stream *runtime.RequestUnidiStream
}

func (*CollectionGetRequest) SetStream

func (r *CollectionGetRequest) SetStream(stream runtime.RequestUnidiStream)

type CollectionGetResponse

type CollectionGetResponse = []*model.CatalogOutput

type CreateRequest

type CreateRequest struct {
	model.CatalogCreateInput `path:",inline" json:",inline"`
}

func (*CreateRequest) Validate

func (r *CreateRequest) Validate() error

type CreateResponse

type CreateResponse = *model.CatalogOutput

type DeleteRequest

type DeleteRequest = model.CatalogDeleteInput

type GetRequest

type GetRequest struct {
	model.CatalogQueryInput `path:",inline"`
}

type GetResponse

type GetResponse = *model.CatalogOutput

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func Handle

func Handle(mc model.ClientSet) Handler

func (Handler) CollectionDelete

func (h Handler) CollectionDelete(req CollectionDeleteRequest) error

func (Handler) CollectionGet

func (h Handler) CollectionGet(req CollectionGetRequest) (CollectionGetResponse, int, error)

func (Handler) Create

func (h Handler) Create(req CreateRequest) (CreateResponse, error)

func (Handler) Delete

func (h Handler) Delete(req DeleteRequest) error

func (Handler) Get

func (h Handler) Get(req GetRequest) (GetResponse, error)

func (Handler) Kind

func (Handler) Kind() string

func (Handler) RouteGetTemplates

func (Handler) RouteRefresh

func (h Handler) RouteRefresh(req RouteSyncCatalogRequest) error

func (Handler) Update

func (h Handler) Update(req UpdateRequest) error

type RouteGetTemplatesRequest

type RouteGetTemplatesRequest struct {
	model.CatalogQueryInput `path:",inline"`

	runtime.RequestCollection[
		predicate.Template, template.OrderOption,
	] `query:",inline"`
	// contains filtered or unexported fields
}

NB(thxCode): the following cases is similar to pkg/apis/template/basic_view.go, but for multiple templates under a catalog at once query.

type RouteGetTemplatesResponse

type RouteGetTemplatesResponse = []*model.TemplateOutput

NB(thxCode): the following cases is similar to pkg/apis/template/basic_view.go, but for multiple templates under a catalog at once query.

type RouteSyncCatalogRequest

type RouteSyncCatalogRequest struct {
	model.CatalogQueryInput `path:",inline" query:",inline"`
	// contains filtered or unexported fields
}

type UpdateRequest

type UpdateRequest struct {
	model.CatalogUpdateInput `path:",inline" json:",inline"`
}

func (*UpdateRequest) Validate

func (r *UpdateRequest) Validate() error

Jump to

Keyboard shortcuts

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