synthesis

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 36 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecController

func NewExecController(mgr ctrl.Manager, cfg *Config, conn SynthesizerConnection) error

func NewPodLifecycleController

func NewPodLifecycleController(mgr ctrl.Manager, cfg *Config) error

NewPodLifecycleController is responsible for creating and deleting pods as needed to synthesize compositions.

func NewRolloutController

func NewRolloutController(mgr ctrl.Manager) error

NewRolloutController re-synthesizes compositions when their synthesizer has changed while honoring a cooldown period.

func NewSliceCleanupController

func NewSliceCleanupController(mgr ctrl.Manager) error

func NewStatusController

func NewStatusController(mgr ctrl.Manager) error

NewStatusController updates composition statuses as pods transition through states.

Types

type Config

type Config struct {
	SliceCreationQPS  float64
	PodNamespace      string
	PodServiceAccount string
}

type SynthesizerConnection

type SynthesizerConnection interface {
	Synthesize(ctx context.Context, syn *apiv1.Synthesizer, pod *corev1.Pod, input []byte) (io.Reader, error)
}

type SynthesizerConnectionFunc

type SynthesizerConnectionFunc func(ctx context.Context, syn *apiv1.Synthesizer, pod *corev1.Pod, inputsJson []byte) (io.Reader, error)

func (SynthesizerConnectionFunc) Synthesize

func (s SynthesizerConnectionFunc) Synthesize(ctx context.Context, syn *apiv1.Synthesizer, pod *corev1.Pod, inputsJson []byte) (io.Reader, error)

type SynthesizerPodConnection

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

func NewSynthesizerConnection

func NewSynthesizerConnection(mgr ctrl.Manager) (*SynthesizerPodConnection, error)

func (*SynthesizerPodConnection) Synthesize

func (s *SynthesizerPodConnection) Synthesize(ctx context.Context, syn *apiv1.Synthesizer, pod *corev1.Pod, input []byte) (io.Reader, error)

Jump to

Keyboard shortcuts

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