mapping

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapping

type Mapping struct {
	// From is the API looking to be mapped
	DeprecatedAPI string `json:"deprecatedAPI"`

	// To is the API to be mapped to
	NewAPI string `json:"newAPI"`

	// Kubernetes version API is deprecated in
	DeprecatedInVersion string `json:"deprecatedInVersion,omitempty"`

	// Kubernetes version API is removed in
	RemovedInVersion string `json:"removedInVersion,omitempty"`
}

Mapping describes mappings which defines the Kubernetes API deprecations and the new replacement API

type Metadata

type Metadata struct {
	// Mappings are a list of mappings.
	Mappings []*Mapping `json:"mappings,omitempty"`
}

Metadata for a Mapping file. This models the structure of a Mapping.yaml file.

func LoadMapfile

func LoadMapfile(filename string) (*Metadata, error)

LoadMapfile loads a Map.yaml file into a *Metadata.

Jump to

Keyboard shortcuts

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