overlay

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonMetadata

type CommonMetadata struct {
	Labels     map[string]string `json:"labels" yaml:"labels"`
	Tags       []string          `json:"tags" yaml:"tags"`
	SLORefs    []string          `json:"slo_refs" yaml:"slo_refs"`
	Attributes map[string]string `json:"attributes" yaml:"attributes"`
}

type EdgeOverlay

type EdgeOverlay struct {
	ID             string   `json:"id" yaml:"id"`
	From           string   `json:"from" yaml:"from"`
	To             string   `json:"to" yaml:"to"`
	Kind           string   `json:"kind" yaml:"kind"`
	Blocking       *bool    `json:"blocking" yaml:"blocking"`
	Weight         *float64 `json:"weight" yaml:"weight"`
	CommonMetadata `json:",inline" yaml:",inline"`
}

type EndpointOverlay

type EndpointOverlay struct {
	ID             string   `json:"id" yaml:"id"`
	EntryService   string   `json:"entry_service" yaml:"entry_service"`
	Method         string   `json:"method" yaml:"method"`
	Path           string   `json:"path" yaml:"path"`
	PredicateRef   string   `json:"predicate_ref" yaml:"predicate_ref"`
	Weight         *float64 `json:"weight" yaml:"weight"`
	CommonMetadata `json:",inline" yaml:",inline"`
}

type File

type File struct {
	Name      string            `json:"name" yaml:"name"`
	Services  []ServiceOverlay  `json:"services" yaml:"services"`
	Edges     []EdgeOverlay     `json:"edges" yaml:"edges"`
	Endpoints []EndpointOverlay `json:"endpoints" yaml:"endpoints"`
	Ref       string            `json:"-" yaml:"-"`
}

func FromReplicas

func FromReplicas(values map[string]int, ref string) File

func LoadFile

func LoadFile(path string) (File, error)

func LoadFiles

func LoadFiles(paths []string) ([]File, error)

func (*File) Normalize

func (f *File) Normalize(path string) error

type ServiceOverlay

type ServiceOverlay struct {
	ID              string `json:"id" yaml:"id"`
	Replicas        *int   `json:"replicas" yaml:"replicas"`
	FailureEligible *bool  `json:"failure_eligible" yaml:"failure_eligible"`
	CommonMetadata  `json:",inline" yaml:",inline"`
}

Jump to

Keyboard shortcuts

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