service

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessEndpoint

type AccessEndpoint struct {
	// Name is identifier for the endpoint.
	Name string `json:"name,omitempty"`
	// Endpoint is access endpoint.
	Endpoints []string `json:"endpoints,omitempty"`
}

type CollectionCreateRequest

type CollectionCreateRequest struct {
	model.ServiceCreateInputs `path:",inline" json:",inline"`
}

func (*CollectionCreateRequest) Validate

func (r *CollectionCreateRequest) Validate() error

type CollectionCreateResponse

type CollectionCreateResponse = []*model.ServiceOutput

type CollectionDeleteRequest

type CollectionDeleteRequest struct {
	model.ServiceDeleteInputs `path:",inline" json:",inline"`

	WithoutCleanup bool `query:"withoutCleanup,omitempty"`
}

func (*CollectionDeleteRequest) Validate

func (r *CollectionDeleteRequest) Validate() error

type CollectionGetRequest

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

	runtime.RequestCollection[
		predicate.Service, service.OrderOption,
	] `query:",inline"`

	WithSchema bool `query:"withSchema,omitempty"`

	Stream *runtime.RequestUnidiStream
}

func (*CollectionGetRequest) SetStream

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

type CollectionGetResponse

type CollectionGetResponse = []*model.ServiceOutput

type CreateRequest

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

func (*CreateRequest) Validate

func (r *CreateRequest) Validate() error

type CreateResponse

type CreateResponse = *model.ServiceOutput

type DeleteRequest

type DeleteRequest struct {
	model.ServiceDeleteInput `path:",inline"`

	WithoutCleanup bool `query:"withoutCleanup,omitempty"`
}

func (*DeleteRequest) Validate

func (r *DeleteRequest) Validate() error

type GetRequest

type GetRequest = model.ServiceQueryInput

type GetResponse

type GetResponse = *model.ServiceOutput

type GraphEdge

type GraphEdge = types.GraphEdge

GraphEdge defines the edge of graph.

type GraphVertex

type GraphVertex = types.GraphVertex

GraphVertex defines the vertex of graph.

type GraphVertexID

type GraphVertexID = types.GraphVertexID

GraphVertexID defines the identifier of the vertex, which uniquely represents an API resource.

type Handler

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

func Handle

func Handle(mc model.ClientSet, kc *rest.Config, tc bool) Handler

func (Handler) CollectionCreate

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) (err error)

func (Handler) Get

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

func (Handler) Kind

func (Handler) Kind() string

func (Handler) RouteGetGraph

func (h Handler) RouteGetGraph(req RouteGetGraphRequest) (*RouteGetGraphResponse, error)

func (Handler) RouteGetOutputs

func (h Handler) RouteGetOutputs(req RouteGetOutputsRequest) (RouteGetOutputsResponse, error)

func (Handler) RouteRollback

func (h Handler) RouteRollback(req RouteRollbackRequest) error

func (Handler) RouteUpgrade

func (h Handler) RouteUpgrade(req RouteUpgradeRequest) error

func (Handler) SubResourceHandlers

func (h Handler) SubResourceHandlers() []runtime.IResourceHandler

type RouteGetAccessEndpointsRequest

type RouteGetAccessEndpointsRequest struct {
	model.ServiceQueryInput `path:",inline"`

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

func (*RouteGetAccessEndpointsRequest) SetStream

type RouteGetAccessEndpointsResponse

type RouteGetAccessEndpointsResponse = []AccessEndpoint

type RouteGetGraphRequest

type RouteGetGraphRequest struct {
	model.ServiceQueryInput `path:",inline"`

	WithoutKeys bool `query:"withoutKeys,omitempty"`
	// contains filtered or unexported fields
}

type RouteGetGraphResponse

type RouteGetGraphResponse struct {
	Vertices []GraphVertex `json:"vertices"`
	Edges    []GraphEdge   `json:"edges"`
}

type RouteGetOutputsRequest

type RouteGetOutputsRequest struct {
	model.ServiceQueryInput `path:",inline"`

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

func (*RouteGetOutputsRequest) SetStream

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

type RouteGetOutputsResponse

type RouteGetOutputsResponse = []types.OutputValue

type RouteRollbackRequest

type RouteRollbackRequest struct {
	model.ServiceQueryInput `path:",inline"`

	RevisionID object.ID `query:"revisionID"`
	// contains filtered or unexported fields
}

func (*RouteRollbackRequest) Validate

func (r *RouteRollbackRequest) Validate() error

type RouteUpgradeRequest

type RouteUpgradeRequest struct {
	model.ServiceUpdateInput `path:",inline" json:",inline"`
	// contains filtered or unexported fields
}

func (*RouteUpgradeRequest) Validate

func (r *RouteUpgradeRequest) Validate() error

Jump to

Keyboard shortcuts

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