environment

package
v0.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 48 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.EnvironmentDeleteInputs

type CollectionGetRequest

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

	runtime.RequestCollection[
		predicate.Environment, environment.OrderOption,
	] `query:",inline"`

	IncludeSummary bool `query:"includeSummary,omitempty"`

	Stream *runtime.RequestUnidiStream
}

func (*CollectionGetRequest) SetStream added in v0.4.1

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

type CollectionGetResponse

type CollectionGetResponse = []*environmentOutput

type CreateRequest

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

func (*CreateRequest) Validate

func (r *CreateRequest) Validate() error

type CreateResponse

type CreateResponse = *model.EnvironmentOutput

type DeleteRequest

type DeleteRequest = model.EnvironmentDeleteInput

type GetRequest

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

	IncludeSummary bool `query:"includeSummary,omitempty"`
}

type GetResponse

type GetResponse = *environmentOutput

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) 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) RouteApply added in v0.5.0

func (h Handler) RouteApply(req RouteApplyRequest) error

func (Handler) RouteClone added in v0.5.0

func (Handler) RouteExport added in v0.5.0

func (h Handler) RouteExport(req RouteExportRequest) error

func (Handler) RouteGetGraph

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

func (Handler) RouteGetResourceDefinitions added in v0.4.0

func (Handler) RouteStart added in v0.4.0

func (h Handler) RouteStart(req RouteStartRequest) error

func (Handler) RouteStop added in v0.4.0

func (h Handler) RouteStop(req RouteStopRequest) error

func (Handler) SubResourceHandlers

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

func (Handler) Update

func (h Handler) Update(req UpdateRequest) error

type RouteApplyRequest added in v0.5.0

type RouteApplyRequest struct {
	model.EnvironmentQueryInput `path:",inline"`

	YAML string `json:"yaml"`
	// contains filtered or unexported fields
}

func (*RouteApplyRequest) Validate added in v0.5.0

func (r *RouteApplyRequest) Validate() error

type RouteCloneEnvironmentRequest added in v0.4.0

type RouteCloneEnvironmentRequest struct {
	model.EnvironmentCreateInput `path:",inline" json:",inline"`

	CloneEnvironmentId object.ID `path:"environment"`

	// When draft is true, clone given resources as undeployed draft in target environment.
	Draft bool `json:"draft,default=false"`
	// contains filtered or unexported fields
}

func (*RouteCloneEnvironmentRequest) Validate added in v0.4.0

func (r *RouteCloneEnvironmentRequest) Validate() error

type RouteCloneEnvironmentResponse added in v0.4.0

type RouteCloneEnvironmentResponse = model.EnvironmentOutput

type RouteExportRequest added in v0.5.0

type RouteExportRequest struct {
	model.EnvironmentQueryInput `path:",inline"`

	Names []string `query:"name,omitempty"`

	IDs []object.ID `query:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RouteExportRequest) Validate added in v0.5.0

func (r *RouteExportRequest) Validate() error

type RouteGetGraphRequest

type RouteGetGraphRequest struct {
	model.EnvironmentQueryInput `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 RouteGetResourceDefinitionsRequest added in v0.4.0

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

type RouteGetResourceDefinitionsResponse added in v0.4.0

type RouteGetResourceDefinitionsResponse = []*model.ResourceDefinitionOutput

type RouteStartRequest added in v0.4.0

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

func (*RouteStartRequest) Validate added in v0.4.0

func (r *RouteStartRequest) Validate() error

type RouteStopRequest added in v0.4.0

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

func (*RouteStopRequest) Validate added in v0.4.0

func (r *RouteStopRequest) Validate() error

type UpdateRequest

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

func (*UpdateRequest) Validate

func (r *UpdateRequest) Validate() error

type WalrusFile added in v0.5.0

type WalrusFile struct {
	model.ResourceCreateInput
}

Jump to

Keyboard shortcuts

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