Documentation ¶
Index ¶
- Constants
- func ComputeFlagName(name string) string
- func SortResourcesForApply(catalog KindCatalog, resources []resource.Resource, debug bool)
- func SortResourcesForDelete(catalog KindCatalog, resources []resource.Resource, debug bool)
- type ConsoleKindVersion
- type GatewayKindVersion
- type GetParameter
- type Kind
- func (kind *Kind) AddVersion(version int, kindVersion KindVersion) error
- func (kind *Kind) ApplyPath(resource *resource.Resource) (string, error)
- func (kind *Kind) DeletePath(resource *resource.Resource) (string, error)
- func (kind *Kind) DescribePath(parentPathValues []string, name string) string
- func (kind *Kind) GetLatestKindVersion() KindVersion
- func (kind *Kind) GetListFlag() map[string]QueryParameterOption
- func (Kind *Kind) GetName() string
- func (kind *Kind) GetParentFlag() []string
- func (kind *Kind) ListPath(parentPathValues []string) string
- func (kind *Kind) MaxVersion() int
- type KindCatalog
- type KindGeneric
- type KindVersion
- type QueryParameterOption
- type Schema
Constants ¶
View Source
const DefaultPriority = 1000 //update json annotation for Order when changing this value
Variables ¶
This section is empty.
Functions ¶
func ComputeFlagName ¶ added in v0.3.0
two logics: uniformize flag name and kebab case
func SortResourcesForApply ¶ added in v0.2.7
func SortResourcesForApply(catalog KindCatalog, resources []resource.Resource, debug bool)
func SortResourcesForDelete ¶ added in v0.2.7
func SortResourcesForDelete(catalog KindCatalog, resources []resource.Resource, debug bool)
Types ¶
type ConsoleKindVersion ¶ added in v0.3.0
type ConsoleKindVersion struct { ListPath string Name string ParentPathParam []string ListQueryParamter map[string]QueryParameterOption Order int `json:1000` //same value DefaultPriority }
func (*ConsoleKindVersion) GetListPath ¶ added in v0.3.0
func (c *ConsoleKindVersion) GetListPath() string
func (*ConsoleKindVersion) GetListQueryParamter ¶ added in v0.3.0
func (c *ConsoleKindVersion) GetListQueryParamter() map[string]QueryParameterOption
func (*ConsoleKindVersion) GetName ¶ added in v0.3.0
func (c *ConsoleKindVersion) GetName() string
func (*ConsoleKindVersion) GetOrder ¶ added in v0.3.0
func (c *ConsoleKindVersion) GetOrder() int
func (*ConsoleKindVersion) GetParentPathParam ¶ added in v0.3.0
func (c *ConsoleKindVersion) GetParentPathParam() []string
type GatewayKindVersion ¶ added in v0.3.0
type GatewayKindVersion struct { ListPath string Name string ParentPathParam []string ListQueryParameter map[string]QueryParameterOption GetAvailable bool Order int `json:1000` //same value DefaultPriority }
func (*GatewayKindVersion) GetListPath ¶ added in v0.3.0
func (g *GatewayKindVersion) GetListPath() string
func (*GatewayKindVersion) GetListQueryParamter ¶ added in v0.3.0
func (g *GatewayKindVersion) GetListQueryParamter() map[string]QueryParameterOption
func (*GatewayKindVersion) GetName ¶ added in v0.3.0
func (g *GatewayKindVersion) GetName() string
func (*GatewayKindVersion) GetOrder ¶ added in v0.3.0
func (g *GatewayKindVersion) GetOrder() int
func (*GatewayKindVersion) GetParentPathParam ¶ added in v0.3.0
func (g *GatewayKindVersion) GetParentPathParam() []string
type GetParameter ¶ added in v0.3.0
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 ¶ added in v0.2.7
func (*Kind) DescribePath ¶
func (*Kind) GetLatestKindVersion ¶
func (kind *Kind) GetLatestKindVersion() KindVersion
func (*Kind) GetListFlag ¶ added in v0.3.0
func (kind *Kind) GetListFlag() map[string]QueryParameterOption
func (*Kind) GetParentFlag ¶ added in v0.3.0
func (*Kind) MaxVersion ¶
type KindCatalog ¶
func ConsoleDefaultKind ¶ added in v0.3.0
func ConsoleDefaultKind() KindCatalog
func GatewayDefaultKind ¶ added in v0.3.0
func GatewayDefaultKind() KindCatalog
type KindGeneric ¶ added in v0.3.0
type KindGeneric[T KindVersion] struct { Versions map[int]T }
type KindVersion ¶
type QueryParameterOption ¶ added in v0.3.0
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func (*Schema) GetConsoleKinds ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.