Documentation
¶
Index ¶
- Variables
- func FileHandler(w http.ResponseWriter, r *http.Request)
- func GetAnalyticsData(w http.ResponseWriter, r *http.Request)
- func GetChart(w http.ResponseWriter, r *http.Request)
- func GetChartVersion(w http.ResponseWriter, r *http.Request)
- func GetCharts(w http.ResponseWriter, r *http.Request)
- func GetCommunityAnalyticsData(w http.ResponseWriter, r *http.Request)
- func GetGithubRepoData(w http.ResponseWriter, r *http.Request)
- func GetIconHandler(w http.ResponseWriter, r *http.Request)
- type Annotation
- type Chart
- type Charts
- type Link
- type Maintainer
- type Metadata
- type PackageInformation
- type Spec
Constants ¶
This section is empty.
Variables ¶
var ChaosChartPath = os.Getenv("GOPATH") + "/src/github.com/litmuschaos/charthub.litmuschaos.io/app/client/public/chaos-charts/"
ChaosChartPath refers the location of the freshly updated repository
Functions ¶
func FileHandler ¶
func FileHandler(w http.ResponseWriter, r *http.Request)
FileHandler takes out the file paths from the query params respectives URLs
func GetAnalyticsData ¶
func GetAnalyticsData(w http.ResponseWriter, r *http.Request)
GetAnalyticsData gets the data from GA instance
func GetChart ¶
func GetChart(w http.ResponseWriter, r *http.Request)
GetChart is used to create YAML objects from experiments' directories from the respective charts'
func GetChartVersion ¶
func GetChartVersion(w http.ResponseWriter, r *http.Request)
GetChartVersion will return the available version of chaos-chart
func GetCharts ¶
func GetCharts(w http.ResponseWriter, r *http.Request)
GetCharts is used to create list of YAML objects from charts' directories
func GetCommunityAnalyticsData ¶
func GetCommunityAnalyticsData(w http.ResponseWriter, r *http.Request)
GetCommunityAnalyticsData returns all the analytics data related to the community
func GetGithubRepoData ¶
func GetGithubRepoData(w http.ResponseWriter, r *http.Request)
GetGithubRepoData will return the github repo data for litmus
func GetIconHandler ¶
func GetIconHandler(w http.ResponseWriter, r *http.Request)
GetIconHandler takes the experiment group and icon file required and returns the specific icon file
Types ¶
type Annotation ¶
type Maintainer ¶
type Metadata ¶
type Metadata struct { Name string `yaml:"name"` Version string `yaml:"version"` Annotations Annotation `yaml:"annotations"` }
type PackageInformation ¶
type Spec ¶
type Spec struct { DisplayName string `yaml:"displayName"` CategoryDescription string `yaml:"categoryDescription"` Keywords []string `yaml:"keywords"` Maturity string `yaml:"maturity"` Maintainers []Maintainer `yaml:"maintainers"` MinKubeVersion string `yaml:"minKubeVersion"` Provider struct { Name string `yaml:"name"` } `yaml:"provider"` Links []Link `yaml:"links"` Experiments []string `yaml:"experiments"` ChaosExpCRDLink string `yaml:"chaosexpcrdlink"` Platforms []string `yaml:"platforms"` ChaosType string `yaml:"chaosType"` }