helm

package
v0.0.0-...-1d3370d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActionConfig

func NewActionConfig(clientConfig clientcmd.ClientConfig, namespace string) (*action.Configuration, error)

func RemoveRepository

func RemoveRepository(name string, settings *cli.EnvSettings) error

func UpdateRepository

func UpdateRepository(name, url string, settings *cli.EnvSettings) error

Types

type ActionStatusRequest

type ActionStatusRequest struct {
	Name   string `json:"name" validate:"required"`
	Action string `json:"action" validate:"required"`
}

func (*ActionStatusRequest) Validate

func (a *ActionStatusRequest) Validate() error

type AddUpdateRepoRequest

type AddUpdateRepoRequest struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

add repository.

type CommonInstallUpdateRequest

type CommonInstallUpdateRequest struct {
	Name        string `json:"name" validate:"required"`
	Namespace   string `json:"namespace" validate:"required"`
	Description string `json:"description" validate:"required"`
	Values      string `json:"values"`
	Chart       string `json:"chart" validate:"required"`
	Version     string `json:"version" validate:"required"`
}

type GetReleaseHistoryRequest

type GetReleaseHistoryRequest struct {
	Name      string `json:"name" validate:"required"`
	Namespace string `json:"namespace" validate:"required"`
}

type GetReleaseHistoryResponse

type GetReleaseHistoryResponse struct {
	Releases []*release.Release `json:"releases"`
}

type GetReleaseRequest

type GetReleaseRequest struct {
	Name      string `json:"name" validate:"required"`
	Namespace string `json:"namespace" validate:"required"`
}

type Handler

type Handler struct {
	*action.Configuration
	*cli.EnvSettings
	Cache cache.Cache[interface{}]
}

func NewHandler

func NewHandler(clientConfig clientcmd.ClientConfig,
	cache cache.Cache[interface{}], namespace string,
) (*Handler, error)

func NewHandlerWithSettings

func NewHandlerWithSettings(clientConfig clientcmd.ClientConfig,
	cache cache.Cache[interface{}],
	namespace string, settings *cli.EnvSettings,
) (*Handler, error)

func (*Handler) AddRepo

func (h *Handler) AddRepo(w http.ResponseWriter, r *http.Request)

func (*Handler) GetActionStatus

func (h *Handler) GetActionStatus(w http.ResponseWriter, r *http.Request)

func (*Handler) GetRelease

func (h *Handler) GetRelease(w http.ResponseWriter, r *http.Request)

func (*Handler) GetReleaseHistory

func (h *Handler) GetReleaseHistory(w http.ResponseWriter, r *http.Request)

func (*Handler) InstallRelease

func (h *Handler) InstallRelease(w http.ResponseWriter, r *http.Request)

func (*Handler) ListCharts

func (h *Handler) ListCharts(w http.ResponseWriter, r *http.Request)

list charts.

func (*Handler) ListRelease

func (h *Handler) ListRelease(w http.ResponseWriter, r *http.Request)

func (*Handler) ListRepo

func (h *Handler) ListRepo(w http.ResponseWriter, r *http.Request)

func (*Handler) RemoveRepo

func (h *Handler) RemoveRepo(w http.ResponseWriter, r *http.Request)

Remove repository name.

func (*Handler) RollbackRelease

func (h *Handler) RollbackRelease(w http.ResponseWriter, r *http.Request)

func (*Handler) UninstallRelease

func (h *Handler) UninstallRelease(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateRepository

func (h *Handler) UpdateRepository(w http.ResponseWriter, r *http.Request)

Update repository name.

func (*Handler) UpgradeRelease

func (h *Handler) UpgradeRelease(w http.ResponseWriter, r *http.Request)

type InstallRequest

type InstallRequest struct {
	CommonInstallUpdateRequest
	CreateNamespace  bool `json:"createNamespace"`
	DependencyUpdate bool `json:"dependencyUpdate"`
}

func (*InstallRequest) Validate

func (req *InstallRequest) Validate() error

type ListAllChartsResponse

type ListAllChartsResponse struct {
	Charts []chartInfo `json:"charts"`
}

type ListReleaseRequest

type ListReleaseRequest struct {
	AllNamespaces *bool   `json:"allNamespaces,omitempty"`
	Namespace     *string `json:"namespace,omitempty"`
	All           *bool   `json:"all,omitempty"`
	ByDate        *bool   `json:"byDate,omitempty"`
	Limit         *int    `json:"limit,omitempty"`
	Offset        *int    `json:"offset,omitempty"`
	Filter        *string `json:"filter,omitempty"`
	Uninstalled   *bool   `json:"uninstalled,omitempty"`
	Superseded    *bool   `json:"superseded,omitempty"`
	Uninstalling  *bool   `json:"uninstalling,omitempty"`
	Deployed      *bool   `json:"deployed,omitempty"`
	Failed        *bool   `json:"failed,omitempty"`
	Pending       *bool   `json:"pending,omitempty"`
}

type ListReleaseResponse

type ListReleaseResponse struct {
	Releases []*release.Release `json:"releases"`
}

type ListRepoResponse

type ListRepoResponse struct {
	Repositories []repositoryInfo `json:"repositories"`
}

type RollbackReleaseRequest

type RollbackReleaseRequest struct {
	Name      string `json:"name" validate:"required"`
	Namespace string `json:"namespace" validate:"required"`
	Revision  int    `json:"revision" validate:"required"`
}

func (*RollbackReleaseRequest) Validate

func (req *RollbackReleaseRequest) Validate() error

type UninstallReleaseRequest

type UninstallReleaseRequest struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type UpgradeReleaseRequest

type UpgradeReleaseRequest struct {
	CommonInstallUpdateRequest
	Install *bool `json:"install"`
}

func (*UpgradeReleaseRequest) Validate

func (req *UpgradeReleaseRequest) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL