Documentation
¶
Index ¶
- type AddClusterNamespaceRequest
- type AddFlowRequest
- type AddFlowRequestComponent
- type AddFlowRequestComponentConnection
- type AddFlowRunnerRequest
- type Cluster
- type ClusterNamespace
- type Component
- type ComponentArgument
- type ComponentArgumentType
- type ListClusterNamespacesRequest
- type ListClusterNamespacesResponse
- type ListClustersResponse
- type ListComponentsResponse
- type ListFlowsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddClusterNamespaceRequest ¶
type AddFlowRequest ¶
type AddFlowRequest struct {
Name string `json:"name" validate:"required"`
Components []AddFlowRequestComponent `json:"components" validate:"min=1,dive"`
}
func (*AddFlowRequest) Validate ¶
func (r *AddFlowRequest) Validate(components []Component) error
type AddFlowRequestComponent ¶
type AddFlowRequestComponent struct {
Key string `json:"key" validate:"required"`
Version string `json:"-"`
Arguments map[string]any `json:"arguments"`
Connections AddFlowRequestComponentConnection `json:"connections"`
}
type AddFlowRequestComponentConnection ¶
type AddFlowRequestComponentConnection struct {
Targets []uint `json:"targets"`
}
type AddFlowRunnerRequest ¶
type ClusterNamespace ¶
type ClusterNamespace struct {
Name string `json:"name,omitempty"`
}
type Component ¶
type Component struct {
Version string `json:"version,omitempty" yaml:"version"`
Image string `json:"-" yaml:"image"`
Key string `json:"key,omitempty" yaml:"key"`
Name string `json:"name,omitempty" yaml:"name"`
Description string `json:"description,omitempty" yaml:"description"`
Trigger *bool `json:"trigger" yaml:"trigger"`
Arguments []ComponentArgument `json:"arguments,omitempty" yaml:"arguments"`
}
type ComponentArgument ¶
type ComponentArgument struct {
Key string `json:"key,omitempty" yaml:"key"`
Name string `json:"name,omitempty" yaml:"name"`
Description string `json:"description,omitempty" yaml:"description"`
Type ComponentArgumentType `json:"type,omitempty" yaml:"type"`
Required *bool `json:"required" yaml:"required"`
}
type ComponentArgumentType ¶
type ComponentArgumentType string
const ( ComponentArgumentTypeString ComponentArgumentType = "string" ComponentArgumentTypeNumber ComponentArgumentType = "number" ComponentArgumentTypeBool ComponentArgumentType = "bool" )
type ListClusterNamespacesRequest ¶
type ListClusterNamespacesRequest struct {
Params struct {
ClusterName string `params:"name" validate:"required"`
}
}
type ListClusterNamespacesResponse ¶
type ListClusterNamespacesResponse struct {
Items []ClusterNamespace `json:"items"`
}
type ListClustersResponse ¶
type ListClustersResponse struct {
Items []Cluster `json:"items"`
}
type ListComponentsResponse ¶
type ListComponentsResponse struct {
Items []Component `json:"items"`
}
type ListFlowsResponse ¶
Click to show internal directories.
Click to hide internal directories.