server

package
v0.0.0-...-1aed651 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatasetGC

func DatasetGC(ctx context.Context, ins dsync.Interface) error

DatasetGC runs the dataset garbage collection

func NewEventHandlerFuncs

func NewEventHandlerFuncs(ctx context.Context, ins dsync.Interface, set nodeset.Interface) cache.ResourceEventHandlerFuncs

NewEventHandlerFuncs returns a resource event handler funcs

func NewRouter

func NewRouter(cfg *Config, kubeClient kubernetes.Interface, ins dsync.Interface, set nodeset.Interface) http.Handler

func Run

func Run(cfg *Config, kubeClient kubernetes.Interface, dynamicClient dynamic.Interface) error

Types

type Config

type Config struct {
	Logger     logr.Config   `json:"logger,omitempty"`
	Instance   Instance      `json:"instance,omitempty"`
	Server     server.Config `json:"server,omitempty"`
	Kubernetes *k8s.Config   `json:"kubernetes,omitempty"`
	Storage    Storage       `json:"storage,omitempty"`
}

func Environ

func Environ(envPrefix string) *Config

func (*Config) Complete

func (c *Config) Complete()

func (*Config) Validate

func (c *Config) Validate() error

type Instance

type Instance struct {
	Name string `json:"name"`
}

type Storage

type Storage struct {
	Badger *badgerstorage.Config `json:"badger"`
}

Jump to

Keyboard shortcuts

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