generatedstore

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package generatedstore contains the store that uses the generated json based on Kubernetes APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneratedStore

type GeneratedStore struct {
	// contains filtered or unexported fields
}

func NewGeneratedStore

func NewGeneratedStore(config StoreConfig) (*GeneratedStore, error)

func NewGeneratedStoreFromBytes

func NewGeneratedStoreFromBytes(data []byte, config StoreConfig) (*GeneratedStore, error)

NewGeneratedStoreFromBytes allows setting a reader as a database. It should contain a valid Kubernetes generated data definition

func (*GeneratedStore) GetAPIDefinition

func (s *GeneratedStore) GetAPIDefinition(_ context.Context, group, version, kind string) (result apis.APIVersionStatus, err error)

type StoreConfig

type StoreConfig struct {
	// MinVerison defines the Kubernetes MinVersion that should be compared with this API
	MinVersion string
	// Path defines the path of the generated File
	Path string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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