Documentation ¶
Index ¶
- func GetConfigData(input *APIServer, appName string, showObjects string) ([]map[string]KustomizeResources, error)
- func ReadConfiguration(repos []string, branches []string, hierarchy Config) []map[string]KustomizeResources
- func Server(cmd *cobra.Command)
- type APIServer
- type Config
- type Error
- type Item
- type KustomizeResources
- type Properties
- type Property
- type Resource
- type ResourceType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigData ¶ added in v0.4.0
func ReadConfiguration ¶ added in v0.1.0
func ReadConfiguration(repos []string, branches []string, hierarchy Config) []map[string]KustomizeResources
Types ¶
type APIServer ¶ added in v0.1.0
func (*APIServer) GetConfigHandler ¶ added in v0.4.0
func (input *APIServer) GetConfigHandler() http.HandlerFunc
type Config ¶
type Config struct {
Hierarchy []Item `yaml:"hierarchy" json:"hierarchy"`
}
func GetHierarchy ¶ added in v0.1.0
func (Config) GeneratePropertiesFile ¶ added in v0.1.0
func (Config) GetProperties ¶ added in v0.1.0
func (Config) GetPropertiesMap ¶ added in v0.1.0
func (Config) WalkHierarchy ¶ added in v0.1.0
type Error ¶ added in v0.4.0
type Error struct {
ErrorMessage string `yaml:"errorMessage" json:"errorMessage"`
}
type Item ¶
type Item struct { Kind string `yaml:"kind" json:"kind"` Name string `yaml:"name" json:"name"` Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"` Type ResourceType `yaml:"type,omitempty" json:"type,omitempty"` Key string `yaml:"key,omitempty" json:"key,omitempty"` Index int `yaml:"index,omitempty" json:"index,omitempty"` HierarchyName string `yaml:"hierarchyName,omitempty" json:"hierarchyName,omitempty"` }
type KustomizeResources ¶ added in v0.1.0
type Properties ¶ added in v0.1.0
type Properties []Property
func (Properties) Len ¶ added in v0.1.0
func (p Properties) Len() int
func (Properties) Less ¶ added in v0.1.0
func (p Properties) Less(i, j int) bool
func (Properties) Swap ¶ added in v0.1.0
func (p Properties) Swap(i, j int)
type Resource ¶
type Resource struct { // path is the relative path to the file containing the resource definition Path string // A configmap, secret or sealed secret Item *unstructured.Unstructured // A type of resource that resource holds either native or properties from file Hierarchy Item }
func GetResources ¶ added in v0.1.0
func ReadResources ¶ added in v0.1.0
func (Resource) GeneratePropertesMapFromProperties ¶ added in v0.1.0
func (Resource) GeneratePropertiesMapFromNative ¶ added in v0.1.0
func (Resource) GetProperties ¶ added in v0.1.0
func (Resource) GetPropertiesMap ¶ added in v0.1.0
type ResourceType ¶ added in v0.1.0
type ResourceType string
const ( ResourceTypeNative ResourceType = "native" ResourceTypeProperties ResourceType = "properties" )
Click to show internal directories.
Click to hide internal directories.