config

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Overview

Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Garbage Collection controller depends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToContext

func ToContext(ctx context.Context, c *Config) context.Context

ToContext adds config to the given context.

Types

type Config

type Config struct {
	RevisionGC *gc.Config
}

Config is the configuration for GC.

func FromContext

func FromContext(ctx context.Context) *Config

FromContext fetches the config from the context.

type Store

type Store struct {
	*configmap.UntypedStore
}

Store is a configmap.UntypedStore based config store.

func NewStore

func NewStore(ctx context.Context, onAfterStore ...func(name string, value interface{})) *Store

NewStore creates a configmap.UntypedStore based config store.

func (*Store) Load

func (s *Store) Load() *Config

Load fetches config from Store.

func (*Store) ToContext

func (s *Store) ToContext(ctx context.Context) context.Context

ToContext adds config to given context.

Jump to

Keyboard shortcuts

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