parser

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package parser provide types and methods used to convert the swagger.json into a valid KubeAPI structure

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeAPI

type KubeAPI struct {
	Description string
	Group       string
	// kind, as for Kind: Pod
	Kind    string
	Version string
	// Name is the resource name in plural (pods) to be used by the resource lister for dynamic client
	Name       string
	Deprecated bool
}

KubeAPI represents a Kubernetes API defined in swagger.json

type KubernetesAPIs

type KubernetesAPIs map[string]KubeAPI

KubernetesAPIs is a map of KubeAPI objects

func (KubernetesAPIs) PopulateKubeAPIMap

func (KubeAPIs KubernetesAPIs) PopulateKubeAPIMap(swaggerfile string) (err error)

PopulateKubeAPIMap Converts an API Definition into a map of KubeAPIs["group/version/kind"]

Jump to

Keyboard shortcuts

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