Documentation ¶
Index ¶
- func KubeClient() *kubernetes.Clientset
- func KubeConfig() *rest.Config
- func KubeDiscoveryClient() *discovery.DiscoveryClient
- func KubeDynamicClient() dynamic.Interface
- func KubeGVPMapCache() meta.RESTMapper
- func KubeGVRFromGK(gk schema.GroupKind) (schema.GroupVersionResource, bool)
- func KubeRestClient() *rest.RESTClient
- func LoadKubeGVRMap()
- func ToObjects(in io.Reader) ([]runtime.Object, error)
- type ChartPathOptions
- type Config
- type DeployInfo
- type Helm
- func (h *Helm) History(name string) (ReleaseHistory, error)
- func (h *Helm) Install(name, chart, version string, overrides []string) error
- func (h *Helm) Load(chart, version string) (string, error)
- func (h *Helm) PreInstall(name, chart, version string) error
- func (h *Helm) Rollback(name string, revision int) error
- func (h *Helm) Status(name string) (*release.Release, error)
- func (h *Helm) Uninstall(name string) error
- func (h *Helm) Upgrade(name string, chart, version string, overrides []string) error
- type Release
- type ReleaseHistory
- type ReleaseHistoryInfo
- type ReleaseInfo
- type Repo
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubeClient ¶ added in v1.1.0
func KubeClient() *kubernetes.Clientset
func KubeConfig ¶ added in v1.1.0
func KubeDiscoveryClient ¶ added in v1.1.0
func KubeDiscoveryClient() *discovery.DiscoveryClient
func KubeDynamicClient ¶ added in v1.1.0
func KubeGVPMapCache ¶ added in v1.1.0
func KubeGVPMapCache() meta.RESTMapper
func KubeGVRFromGK ¶ added in v1.1.0
func KubeGVRFromGK(gk schema.GroupKind) (schema.GroupVersionResource, bool)
func KubeRestClient ¶ added in v1.1.0
func KubeRestClient() *rest.RESTClient
func LoadKubeGVRMap ¶ added in v1.1.0
func LoadKubeGVRMap()
Types ¶
type ChartPathOptions ¶
type ChartPathOptions struct {
action.ChartPathOptions
}
ChartPathOptions -
func (*ChartPathOptions) LocateChart ¶
func (c *ChartPathOptions) LocateChart(name, dest string, settings *cli.EnvSettings) (string, error)
LocateChart looks for a chart directory in known places, and returns either the full path or an error.
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) ChartCache ¶
type DeployInfo ¶ added in v1.1.0
type DeployInfo struct { Info Resource `json:"info"` ApiResource unstructured.Unstructured `json:"apiResource"` }
func AllResources ¶ added in v1.1.0
func AllResources(name, namespace string) ([]DeployInfo, error)
type Helm ¶
type Helm struct {
// contains filtered or unexported fields
}
Helm -
type Release ¶ added in v1.1.0
type Release struct { Name string `json:"name"` Namespace string `json:"namespace"` Revision int `json:"revision"` Updated time.Time `json:"updated"` Status string `json:"status"` Chart string `json:"chart"` AppVersion string `json:"appVersion"` Description string `json:"description"` Histories []ReleaseHistoryInfo `json:"histories"` }
func AllReleases ¶ added in v1.1.0
type ReleaseHistoryInfo ¶ added in v1.1.0
type ReleaseInfo ¶
type ReleaseInfo struct { Revision int `json:"revision"` Updated helmtime.Time `json:"updated"` Status string `json:"status"` Chart string `json:"chart"` AppVersion string `json:"app_version"` Description string `json:"description"` }
ReleaseInfo -
type Resource ¶ added in v1.1.0
type Resource struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Name string `json:"name"` Namespace string `json:"namespace"` CreationTime time.Time `json:"creationTime"` Labels map[string]string `json:"labels"` Annotations map[string]string `json:"annotations"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.