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 RawService ¶
type RawServices ¶
type RawServices []*RawService
type Service ¶
type Service struct {
Labels []string `yaml:"labels,omitempty" json:"labels,omitempty"`
}
type Services ¶
func ConvertEntries ¶
func ConvertEntries(rawServices RawServices, withTags map[string]struct{}) Services
func MergeEntries ¶
Click to show internal directories.
Click to hide internal directories.