config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = "config.json"
	// If we change the config or store format to something incompatible,
	// we can bump this and write shims to decode both. Hopefully.
	DefaultVersion = 1
)

Functions

func NewInBackend

func NewInBackend(b backend.Backend) *inBackend

Types

type Config

type Config struct {
	Resources []*metav1.APIResourceList `json:"resources"`
	Version   int                       `json:"version"`
}

func (*Config) BestResourceMappingFor

func (c *Config) BestResourceMappingFor(resource string) (string, metav1.APIResource, error)

type Configger

type Configger interface {
	WriteConfig(context.Context, *Config) error
	ReadConfig(context.Context) (*Config, error)
}

Jump to

Keyboard shortcuts

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