feature

package
v0.0.0-...-93a508a Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package feature provides feature generator

Index

Constants

This section is empty.

Variables

View Source
var (
	// RuleDefinition is a marker for defining Feature rules.
	RuleDefinition = markers.Must(markers.MakeDefinition(markerName, markers.DescribesType, Rule{}))
)

Functions

This section is empty.

Types

type Generator

type Generator struct{}

Generator is feature generator that registers feature markers and produces output artifacts

func (Generator) Generate

func (g Generator) Generate(ctx *genall.GenerationContext) error

Generate generates artifacts produced by feature marker.

func (Generator) RegisterMarkers

func (Generator) RegisterMarkers(reg *markers.Registry) error

RegisterMarkers registers all markers needed by this Generator

type Rule

type Rule struct {
	// Name of the feature.
	Name string
	// Description of the feature.
	Description string `marker:",optional"`
	// Stability indicates stability level of this feature.
	Stability corev1alpha2.StabilityLevel
}

Rule is the output type of the marker value

Directories

Path Synopsis
Package fakedata provides data needed for testing
Package fakedata provides data needed for testing

Jump to

Keyboard shortcuts

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