lifecycle

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectLifCycleAPI

func CollectLifCycleAPI() (map[string]map[string]map[string]string, error)

CollectLifCycleAPI collect api info deprecation / removal and replacement info as implemented by designated APIs

func GetGroup

func GetGroup(asd []AstData, origGgroup string) string

func Untar

func Untar(reader io.ReadCloser) (map[string]string, error)

Untar API lifecycle implementation object data from k8s repository

Types

type AstData

type AstData struct {
	// contains filtered or unexported fields
}

AstData store k8s source ast data

type AstObjComments

type AstObjComments struct {
	Kind       string
	Deprecated string
	Removed    string
	Replaced   string
}

type AstReader

type AstReader struct {
}

AstReader read k8s source file and parse it

func NewAstReader

func NewAstReader() AstReader

NewAstReader instantiate new AST reader

func (AstReader) Analyze

func (ar AstReader) Analyze(code string) ([]AstData, error)

Analyze scan k8s source file and return it method and return types data

func (AstReader) AnalyzeComments

func (ar AstReader) AnalyzeComments(data string) ([]AstObjComments, error)

AnalyzeComments scan k8s types source file parse it generation comments and return Kind , deprecate,removed and replacements versions

Jump to

Keyboard shortcuts

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