Documentation ¶
Index ¶
- func ApplyResource(c echo.Context) error
- func CreateOrUpdateCattleHelmChart(c echo.Context) error
- func DeleteCattleHelmChart(c echo.Context) error
- func DeleteResource(c echo.Context) error
- func GetCattleHelmChart(c echo.Context) error
- func GetChartReleaseRevisions(c echo.Context) error
- func GetHelmChartRelease(c echo.Context) error
- func GetHelmChartReleaseWithWorkloads(c echo.Context) error
- func GetHelmRepoChartSpec(c echo.Context) error
- func GetHelmRepoIndex(c echo.Context) error
- func GetNamespaces(c echo.Context) error
- func GetResources(c echo.Context) error
- func K3sInstall(c echo.Context) error
- func K3sJoin(c echo.Context) error
- func K3sStableVersions(c echo.Context) error
- func K3sUninstall(c echo.Context) error
- func ListAPIResources(c echo.Context) error
- func ListCattleHelmCharts(c echo.Context) error
- func ListClusters(c echo.Context) error
- func ListHelmChartReleases(c echo.Context) error
- func ListHelmRepos(c echo.Context) error
- func ListNodes(c echo.Context) error
- type Cache
- type ChartVersion
- type EchoOutputHandler
- type HelmIndex
- type K3sInstallRequest
- type K3sJoinRequest
- type K3sUninstallRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyResource ¶
func ApplyResource(c echo.Context) error
ApplyResource handles the request to apply a Kubernetes resource.
func CreateOrUpdateCattleHelmChart ¶
func CreateOrUpdateCattleHelmChart(c echo.Context) error
CreateOrUpdateCattleHelmChart creates or updates a CattleHelmChart in a namespace
func DeleteCattleHelmChart ¶
func DeleteCattleHelmChart(c echo.Context) error
DeleteCattleHelmChart deletes a CattleHelmChart in a namespace
func DeleteResource ¶
func DeleteResource(c echo.Context) error
DeleteResource handles the request to delete a Kubernetes resource.
func GetCattleHelmChart ¶
func GetCattleHelmChart(c echo.Context) error
GetCattleHelmChart gets a CattleHelmChart in a namespace
func GetChartReleaseRevisions ¶
func GetChartReleaseRevisions(c echo.Context) error
func GetHelmChartRelease ¶
func GetHelmChartRelease(c echo.Context) error
GetHelmChartRelease returns the Helm chart release
func GetHelmChartReleaseWithWorkloads ¶
func GetHelmChartReleaseWithWorkloads(c echo.Context) error
GetHelmChartReleaseWithWorkloads returns the Helm chart release with workloads
func GetHelmRepoChartSpec ¶
func GetHelmRepoChartSpec(c echo.Context) error
GetHelmRepoChartSpec returns the chart data for a Helm chart
func GetHelmRepoIndex ¶
func GetHelmRepoIndex(c echo.Context) error
GetHelmRepoIndex returns the index.yaml for a Helm repository
func GetNamespaces ¶
func GetNamespaces(c echo.Context) error
GetNamespaces handles the request to get a list of Kubernetes namespaces.
func GetResources ¶
func GetResources(c echo.Context) error
GetResources handles the request to retrieve Kubernetes resources.
func K3sStableVersions ¶
func K3sStableVersions(c echo.Context) error
K3sStableVersions lists K3s stable versions
func ListAPIResources ¶
func ListAPIResources(c echo.Context) error
ListApiResources handles the request to list API resources in the Kubernetes cluster.
func ListCattleHelmCharts ¶
func ListCattleHelmCharts(c echo.Context) error
ListCattleHelmCharts lists all CattleHelmCharts in all namespaces
func ListHelmChartReleases ¶
func ListHelmChartReleases(c echo.Context) error
ListHelmChartReleases returns the list of Helm chart releases
func ListHelmRepos ¶
func ListHelmRepos(c echo.Context) error
ListHelmRepos returns the list of Helm repositories
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a struct to hold the cached data
type ChartVersion ¶
ChartVersion represents a Helm chart version
type EchoOutputHandler ¶
type EchoOutputHandler struct {
// contains filtered or unexported fields
}
EchoOutputHandler is a struct to handle the output from SSH
func (EchoOutputHandler) Flush ¶
func (e EchoOutputHandler) Flush()
Flush method to ensure all data is sent
type HelmIndex ¶
type HelmIndex struct {
Entries map[string][]ChartVersion `yaml:"entries"`
}
HelmIndex represents a Helm repository index
type K3sInstallRequest ¶
type K3sInstallRequest struct { SSHClient *ssh.Client `json:"ssh" validate:"required"` TLSSAN string `json:"tls_san,omitempty" validate:"omitempty,hostname"` K3sArgs string `json:"k3s_args,omitempty"` Version string `json:"version,omitempty"` Cluster bool `json:"cluster,omitempty"` DownloadKubeconfig bool `json:"KUBECONFIG,omitempty"` }
K3sInstallRequest is the request payload for K3s install
type K3sJoinRequest ¶
type K3sUninstallRequest ¶
type K3sUninstallRequest struct { SSHClient *ssh.Client `json:"ssh" validate:"required"` Agent bool `json:"agent,omitempty"` }
K3sUninstallRequest is the request payload for K3s uninstall