internal

package
v0.11.0-nightly.20240711 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	// field contains the path to the field that was changed. Nested fields can
	// be represented with dots (e.g. nested.field)
	Field      string
	ChangeType ChangeType
	// message is the log message that will be printed if a file is detected
	// that uses this field with an unsupported version.
	Message string
}

Change is a single change that was introduced in a specific version.

type ChangeType

type ChangeType int

ChangeType defines the type of the change introduced in a specific version.

const (
	FieldDeprecated ChangeType = iota
	FieldIntroduced
)

type Changelog

type Changelog map[string][]Change

Changelog contains a map of all changes introduced in each version. Based on the changelog the parser can output warnings.

func (Changelog) Expand

func (c Changelog) Expand() map[string]map[string]any

Expand expands a changelog map into a structure that is useful for traversing in ConfigLinter.

Jump to

Keyboard shortcuts

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