model

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMap

type ConfigMap map[string]interface{}

type Function

type Function struct {
	Name      string            `json:"name"`
	Namespace string            `json:"namespace,omitempty"`
	Runtime   *RuntimeConfig    `json:"runtime"`
	Sources   []*TubeConfig     `json:"source,omitempty"`
	Sink      *TubeConfig       `json:"sink,omitempty"`
	Config    map[string]string `json:"config,omitempty"`
	Replicas  int32             `json:"replicas"`
}

func (*Function) Validate added in v0.4.0

func (f *Function) Validate() error

type RuntimeConfig

type RuntimeConfig struct {
	Config ConfigMap `json:"config,omitempty" yaml:"config,omitempty"`
	Type   *string   `json:"type,omitempty" yaml:"type,omitempty"`
}

type TubeConfig

type TubeConfig struct {
	Type   *string           `json:"type,omitempty"` // Default to `default`
	Config contube.ConfigMap `json:"config,omitempty"`
}

Jump to

Keyboard shortcuts

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