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
- func (config Config) GenerateJsPropertiesFile(resources []Resource) string
- func (config Config) GeneratePropertiesFile(resources []Resource) string
- func (config Config) GetProperties(resources []Resource) map[string]Property
- func (config Config) GetPropertiesMap(resources []Resource) map[string]string
- func (config Config) WalkHierarchy(resources []Resource) []Resource
- 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) GetApplicationHandler ¶ added in v0.5.0
func (input *APIServer) GetApplicationHandler() http.HandlerFunc
func (*APIServer) GetConfigHandler ¶ added in v0.4.0
func (input *APIServer) GetConfigHandler() http.HandlerFunc
func (*APIServer) GetSpaHandler ¶ added in v0.7.0
func (input *APIServer) GetSpaHandler(rootFs http.FileSystem) http.HandlerFunc
type Config ¶
type Config struct { Hierarchy []Item `yaml:"hierarchy" json:"hierarchy"` Applications []string `yaml:"applications,omitempty" json:"applications,omitempty"` }
func GetHierarchy ¶ added in v0.1.0
func (Config) GenerateJsPropertiesFile ¶ added in v0.8.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.