template

package
v0.5.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 16 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.TemplateDeleteInputs

type CollectionGetRequest

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

	runtime.RequestCollection[
		predicate.Template, template.OrderOption,
	] `query:",inline"`

	CatalogIDs []object.ID `query:"catalogID,omitempty"`
	NonCatalog bool        `query:"nonCatalog,omitempty"`
	WithGlobal bool        `query:"withGlobal,omitempty"`

	Stream *runtime.RequestUnidiStream
}

func (*CollectionGetRequest) SetStream

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

func (*CollectionGetRequest) Validate

func (r *CollectionGetRequest) Validate() error

type CollectionGetResponse

type CollectionGetResponse = []*model.TemplateOutput

type CreateRequest

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

func (*CreateRequest) Validate

func (r *CreateRequest) Validate() error

type CreateResponse

type CreateResponse = *model.TemplateOutput

type DeleteRequest

type DeleteRequest = model.TemplateDeleteInput

type GetRequest

type GetRequest = model.TemplateQueryInput

type GetResponse

type GetResponse = *model.TemplateOutput

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) RouteGetVersions

func (h Handler) RouteGetVersions(
	req RouteGetVersionsRequest,
) (RouteGetVersionsResponse, int, error)

func (Handler) RouteRefresh

func (h Handler) RouteRefresh(req RouteRefreshRequest) error

func (Handler) Update

func (h Handler) Update(req UpdateRequest) error

type RouteGetVersionsRequest

type RouteGetVersionsRequest struct {
	model.TemplateQueryInput `path:",inline"`

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

type RouteGetVersionsResponse

type RouteGetVersionsResponse = []*model.TemplateVersionOutput

type RouteRefreshRequest

type RouteRefreshRequest struct {
	model.TemplateQueryInput `path:",inline"`
	// contains filtered or unexported fields
}

type UpdateRequest

type UpdateRequest struct {
	model.TemplateUpdateInput `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