Documentation
¶
Index ¶
- Constants
- func SortResourcesForApply(catalog KindCatalog, resources []resource.Resource, debug bool)
- func SortResourcesForDelete(catalog KindCatalog, resources []resource.Resource, debug bool)
- type BackendType
- type Catalog
- type CatalogGeneric
- type ConsoleKindVersion
- func (c *ConsoleKindVersion) GetApplyExample() string
- func (c *ConsoleKindVersion) GetListPath() string
- func (c *ConsoleKindVersion) GetListQueryParameter() map[string]FlagParameterOption
- func (c *ConsoleKindVersion) GetName() string
- func (c *ConsoleKindVersion) GetOrder() int
- func (c *ConsoleKindVersion) GetParentPathParam() []string
- func (c *ConsoleKindVersion) GetParentQueryParam() []string
- type FlagParameterOption
- type GatewayKindVersion
- func (g *GatewayKindVersion) GetApplyExample() string
- func (g *GatewayKindVersion) GetListPath() string
- func (g *GatewayKindVersion) GetListQueryParameter() map[string]FlagParameterOption
- func (g *GatewayKindVersion) GetName() string
- func (g *GatewayKindVersion) GetOrder() int
- func (g *GatewayKindVersion) GetParentPathParam() []string
- func (g *GatewayKindVersion) GetParentQueryParam() []string
- type Kind
- func (kind *Kind) AddVersion(version int, kindVersion KindVersion) error
- func (kind *Kind) ApplyPath(resource *resource.Resource) (QueryInfo, error)
- func (kind *Kind) DeletePath(resource *resource.Resource) (string, map[string]string, error)
- func (kind *Kind) DescribePath(parentPathValues []string, parentQueryValues []string, name string) QueryInfo
- func (kind *Kind) GetLatestKindVersion() KindVersion
- func (kind *Kind) GetListFlag() map[string]FlagParameterOption
- func (kind *Kind) GetName() string
- func (kind *Kind) GetParentFlag() []string
- func (kind *Kind) GetParentQueryFlag() []string
- func (kind *Kind) IsConsoleKind() bool
- func (kind *Kind) IsGatewayKind() bool
- func (kind *Kind) IsKindGatewayInterceptor() bool
- func (kind *Kind) IsKindIdentifiedByNameAndVCluster() bool
- func (kind *Kind) IsRootKind() bool
- func (kind *Kind) ListPath(parentValues []string, parentQueryValues []string) QueryInfo
- func (kind *Kind) MaxVersion() int
- type KindCatalog
- type KindVersion
- type OpenAPIParser
- type QueryInfo
- type QueryParam
- type Run
- type RunCatalog
Constants ¶
View Source
const DefaultPriority = 1000 //update json annotation for Order when changing this value
Variables ¶
This section is empty.
Functions ¶
func SortResourcesForApply ¶
func SortResourcesForApply(catalog KindCatalog, resources []resource.Resource, debug bool)
func SortResourcesForDelete ¶
func SortResourcesForDelete(catalog KindCatalog, resources []resource.Resource, debug bool)
Types ¶
type Catalog ¶
type Catalog struct {
Kind KindCatalog
Run RunCatalog
}
func ConsoleDefaultCatalog ¶
func ConsoleDefaultCatalog() *Catalog
func GatewayDefaultCatalog ¶
func GatewayDefaultCatalog() *Catalog
func (*Catalog) IsConsoleResource ¶
func (*Catalog) IsGatewayResource ¶
type CatalogGeneric ¶
type CatalogGeneric[T KindVersion] struct { Kind map[string]kindGeneric[T] Run RunCatalog }
type ConsoleKindVersion ¶
type ConsoleKindVersion struct {
ListPath string
Name string
ParentPathParam []string
ParentQueryParam []string
ListQueryParameter map[string]FlagParameterOption
ApplyExample string
Order int
}
func (*ConsoleKindVersion) GetApplyExample ¶
func (c *ConsoleKindVersion) GetApplyExample() string
func (*ConsoleKindVersion) GetListPath ¶
func (c *ConsoleKindVersion) GetListPath() string
func (*ConsoleKindVersion) GetListQueryParameter ¶
func (c *ConsoleKindVersion) GetListQueryParameter() map[string]FlagParameterOption
func (*ConsoleKindVersion) GetName ¶
func (c *ConsoleKindVersion) GetName() string
func (*ConsoleKindVersion) GetOrder ¶
func (c *ConsoleKindVersion) GetOrder() int
func (*ConsoleKindVersion) GetParentPathParam ¶
func (c *ConsoleKindVersion) GetParentPathParam() []string
func (*ConsoleKindVersion) GetParentQueryParam ¶
func (c *ConsoleKindVersion) GetParentQueryParam() []string
type FlagParameterOption ¶
type GatewayKindVersion ¶
type GatewayKindVersion struct {
ListPath string
Name string
ParentPathParam []string
ParentQueryParam []string
ListQueryParameter map[string]FlagParameterOption
GetAvailable bool
ApplyExample string
Order int
}
func (*GatewayKindVersion) GetApplyExample ¶
func (g *GatewayKindVersion) GetApplyExample() string
func (*GatewayKindVersion) GetListPath ¶
func (g *GatewayKindVersion) GetListPath() string
func (*GatewayKindVersion) GetListQueryParameter ¶
func (g *GatewayKindVersion) GetListQueryParameter() map[string]FlagParameterOption
func (*GatewayKindVersion) GetName ¶
func (g *GatewayKindVersion) GetName() string
func (*GatewayKindVersion) GetOrder ¶
func (g *GatewayKindVersion) GetOrder() int
func (*GatewayKindVersion) GetParentPathParam ¶
func (g *GatewayKindVersion) GetParentPathParam() []string
func (*GatewayKindVersion) GetParentQueryParam ¶
func (g *GatewayKindVersion) GetParentQueryParam() []string
type Kind ¶
type Kind struct {
Versions map[int]KindVersion
}
func NewKind ¶
func NewKind(version int, kindVersion KindVersion) Kind
func (*Kind) AddVersion ¶
func (kind *Kind) AddVersion(version int, kindVersion KindVersion) error
func (*Kind) DeletePath ¶
func (*Kind) DescribePath ¶
func (*Kind) GetLatestKindVersion ¶
func (kind *Kind) GetLatestKindVersion() KindVersion
func (*Kind) GetListFlag ¶
func (kind *Kind) GetListFlag() map[string]FlagParameterOption
func (*Kind) GetParentFlag ¶
func (*Kind) GetParentQueryFlag ¶
func (*Kind) IsConsoleKind ¶
Determines if the kind is a Console Kind.
func (*Kind) IsGatewayKind ¶
Determines if the kind is a Gateway Kind.
func (*Kind) IsKindGatewayInterceptor ¶
Determines if the kind is a Gateway Kind that is an Interceptor.
func (*Kind) IsKindIdentifiedByNameAndVCluster ¶
Determines if the kind is a Gateway Kind that need to be identified by name and vCluster.
func (*Kind) IsRootKind ¶
func (*Kind) MaxVersion ¶
type KindCatalog ¶
type KindVersion ¶
type OpenAPIParser ¶
type OpenAPIParser struct {
// contains filtered or unexported fields
}
func NewOpenAPIParser ¶
func NewOpenAPIParser(schema []byte) (*OpenAPIParser, error)
func (*OpenAPIParser) GetConsoleCatalog ¶
func (s *OpenAPIParser) GetConsoleCatalog(strict bool) (*Catalog, error)
func (*OpenAPIParser) GetConsoleKinds ¶
func (s *OpenAPIParser) GetConsoleKinds(strict bool) (KindCatalog, error)
func (*OpenAPIParser) GetGatewayCatalog ¶
func (s *OpenAPIParser) GetGatewayCatalog(strict bool) (*Catalog, error)
func (*OpenAPIParser) GetGatewayKinds ¶
func (s *OpenAPIParser) GetGatewayKinds(strict bool) (KindCatalog, error)
type QueryInfo ¶
type QueryInfo struct {
Path string
QueryParams []QueryParam
}
type QueryParam ¶
type Run ¶
type Run struct {
Path string
Name string
Doc string
QueryParameter map[string]FlagParameterOption
PathParameter []string
BodyFields map[string]FlagParameterOption
Method string
BackendType BackendType `json:"-"`
}
type RunCatalog ¶
Click to show internal directories.
Click to hide internal directories.