cache

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(resourceKind, resourceAPIVersion, k8sVersion string) (interface{}, error)
	Set(resourceKind, resourceAPIVersion, k8sVersion string, schema interface{}) error
}

func NewInMemoryCache

func NewInMemoryCache() Cache

New creates a new cache for downloaded schemas

func NewOnDiskCache

func NewOnDiskCache(cache string) Cache

New creates a new cache for downloaded schemas

Jump to

Keyboard shortcuts

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