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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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