overlay

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 7 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 {
	model.CommonMetadata `json:",inline" yaml:",inline"`
	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"`
	Resilience     *model.ResiliencePolicy `json:"resilience" yaml:"resilience"`
	Observed       *model.ObservedEdge     `json:"observed" yaml:"observed"`
	PolicyScope    *model.PolicyScope      `json:"policy_scope" yaml:"policy_scope"`
	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"`
	Placements         []model.Placement `json:"placements" yaml:"placements"`
	SharedResourceRefs []string          `json:"shared_resource_refs" yaml:"shared_resource_refs"`
	CommonMetadata     `json:",inline" yaml:",inline"`
}

Jump to

Keyboard shortcuts

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