service

package
v0.0.0-...-cabf8b7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLoader

type FileLoader interface {
	Run(context.Context, HandlerFunc) error
}

func NewFileLoader

func NewFileLoader(paths []string, opts ...FileLoaderOption) FileLoader

type FileLoaderOption

type FileLoaderOption func(*fileLoader)

func FileLoadWithLogger

func FileLoadWithLogger(logger logr.Logger) FileLoaderOption

func FileLoaderWithProtoValidatorFunc

func FileLoaderWithProtoValidatorFunc(fn ProtoValidatorFunc) FileLoaderOption

func FileLoaderWithTags

func FileLoaderWithTags(tags []string) FileLoaderOption

type HandlerFunc

type HandlerFunc func(Services)

type ProtoValidatorFunc

type ProtoValidatorFunc func(*core.Service) error

type RawService

type RawService = core.Service

type RawServices

type RawServices []*RawService

type Service

type Service struct {
	Labels []string `yaml:"labels,omitempty" json:"labels,omitempty"`
}

type Services

type Services map[string]*Service

func ConvertEntries

func ConvertEntries(rawServices RawServices, withTags map[string]struct{}) Services

func MergeEntries

func MergeEntries(l, r Services) Services

Jump to

Keyboard shortcuts

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