zync

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGenerator

type APIGenerator struct {
	generators.BaseOptionsV2
	Image   saasv1alpha1.ImageSpec
	APISpec saasv1alpha1.APISpec
	Options pod.Options
	Traffic bool
}

APIGenerator has methods to generate resources for a Zync environment

func (*APIGenerator) Deployment

func (gen *APIGenerator) Deployment() *resource.Template[*appsv1.Deployment]

func (*APIGenerator) HPASpec

func (*APIGenerator) Labels

func (gen *APIGenerator) Labels() map[string]string

func (*APIGenerator) MonitoredEndpoints

func (gen *APIGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint

func (*APIGenerator) PDBSpec

func (*APIGenerator) PublishingStrategies added in v0.25.0

func (gen *APIGenerator) PublishingStrategies() ([]service.ServiceDescriptor, error)

func (*APIGenerator) SendTraffic

func (gen *APIGenerator) SendTraffic() bool

func (*APIGenerator) TrafficSelector

func (gen *APIGenerator) TrafficSelector() map[string]string

type ConsoleGenerator

type ConsoleGenerator struct {
	generators.BaseOptionsV2
	Image   saasv1alpha1.ImageSpec
	Spec    saasv1alpha1.ZyncRailsConsoleSpec
	Options pod.Options
	Enabled bool
}

ConsoleGenerator has methods to generate resources for zync-console

func (*ConsoleGenerator) StatefulSet

func (gen *ConsoleGenerator) StatefulSet() []resource.TemplateInterface

type Generator

type Generator struct {
	generators.BaseOptionsV2
	API                  APIGenerator
	Que                  QueGenerator
	Console              ConsoleGenerator
	GrafanaDashboardSpec saasv1alpha1.GrafanaDashboardSpec
	Config               saasv1alpha1.ZyncConfig
}

Generator configures the generators for Zync

func NewGenerator

func NewGenerator(instance, namespace string, spec saasv1alpha1.ZyncSpec) Generator

NewGenerator returns a new Options struct

func (*Generator) Resources

func (gen *Generator) Resources() ([]resource.TemplateInterface, error)

Resources returns the list of templates

type QueGenerator

type QueGenerator struct {
	generators.BaseOptionsV2
	Image   saasv1alpha1.ImageSpec
	QueSpec saasv1alpha1.QueSpec
	Options pod.Options
}

QueGenerator has methods to generate resources for a Que environment

func (*QueGenerator) Deployment

func (gen *QueGenerator) Deployment() *resource.Template[*appsv1.Deployment]

func (*QueGenerator) HPASpec

func (*QueGenerator) MonitoredEndpoints

func (gen *QueGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint

func (*QueGenerator) PDBSpec

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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