Documentation
¶
Overview ¶
Package parser provide types and methods used to convert the swagger.json into a valid KubeAPI structure
Index ¶
Constants ¶
const (
CoreAPI = "CORE"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIGroups ¶
APIGroups contains a map of groups of APIs that exists. Eg.: networking.k8s.io
func (APIGroups) CheckForItem ¶
func (db APIGroups) CheckForItem(group, version, kind, resource string, itemlister ListerFunc) (*results.ResultItem, bool, error)
CheckForItem verifies for an item inside a database and returns: An item (may be null case not found/not deprecated) A bool that indicate if the field was deleted. False indicates it was deprecated An error
type APIKinds ¶
type APIKinds map[string]APIVersion
APIKind contains a Kind of API (like "Ingress") and may also be populated with the resource name
type APIVersion ¶
type APIVersion map[string]APIVersionStatus
APIVersion is an APIVersion of a group/kind that will be queried on description and if it is deprecated
type APIVersionStatus ¶
APIVersionStatus represents the status of a group/kind/version
type ListerFunc ¶
type ListerFunc func(group, version, resource, kind string) (results.ResultItem, error)