generator

package
v0.0.0-...-37cc865 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextType = types.NewOpaqueType("generator.Context")

Functions

func Latest

func Latest() *version.Version

func Lib

func Lib(generatorCtx ContextInterface, v *version.Version) cel.EnvOption

Types

type Context

type Context struct {
	ContextInterface
}

type ContextInterface

type ContextInterface interface {
	GenerateResources(namespace string, dataList []map[string]any) error
}

type ContextMock

type ContextMock struct {
	GenerateResourcesFunc func(string, []map[string]any) error
}

func (*ContextMock) GenerateResources

func (mock *ContextMock) GenerateResources(namespace string, dataList []map[string]any) error

Jump to

Keyboard shortcuts

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