resourcecomponent

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionGetRequest

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

	runtime.RequestCollection[
		predicate.ResourceComponent, resourcecomponent.OrderOption,
	] `query:",inline"`

	WithoutKeys bool `query:"withoutKeys,omitempty"`

	Stream *runtime.RequestUnidiStream
}

func (*CollectionGetRequest) SetStream

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

type CollectionGetResponse

type CollectionGetResponse = []*model.ResourceComponentOutput

type Handler

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

func Handle

func Handle(mc model.ClientSet) Handler

func (Handler) CollectionGet

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

func (Handler) Kind

func (Handler) Kind() string

func (Handler) RouteExec

func (h Handler) RouteExec(req RouteExecRequest) error

func (Handler) RouteGetKeys

func (h Handler) RouteGetKeys(req RouteGetKeysRequest) (RouteGetKeysResponse, error)

func (Handler) RouteLog

func (h Handler) RouteLog(req RouteLogRequest) error

type Request

type Request struct {
	model.ResourceComponentQueryInput `path:",inline"`

	Entity *model.ResourceComponent
}

func (*Request) Validate

func (r *Request) Validate() error

type RouteExecRequest

type RouteExecRequest struct {
	Request ` path:",inline"`

	Key    string `query:"key"`
	Shell  string `query:"shell,omitempty"`
	Width  int32  `query:"width,omitempty"`
	Height int32  `query:"height,omitempty"`

	Stream *runtime.RequestBidiStream
	// contains filtered or unexported fields
}

func (*RouteExecRequest) SetStream

func (r *RouteExecRequest) SetStream(stream runtime.RequestBidiStream)

func (*RouteExecRequest) Validate

func (r *RouteExecRequest) Validate() error

type RouteGetKeysRequest

type RouteGetKeysRequest struct {
	Request `path:",inline"`
	// contains filtered or unexported fields
}

type RouteGetKeysResponse

type RouteGetKeysResponse = *types.ResourceComponentOperationKeys

type RouteLogRequest

type RouteLogRequest struct {
	Request ` path:",inline"`

	Key          string `query:"key"`
	Previous     bool   `query:"previous,omitempty"`
	SinceSeconds *int64 `query:"sinceSeconds,omitempty"`
	TailLines    *int64 `query:"tailLines,omitempty"`
	Timestamps   bool   `query:"timestamps,omitempty"`

	Stream *runtime.RequestUnidiStream
	// contains filtered or unexported fields
}

func (*RouteLogRequest) SetStream

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

func (*RouteLogRequest) Validate

func (r *RouteLogRequest) Validate() error

Jump to

Keyboard shortcuts

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