Documentation ¶
Overview ¶
Copyright © 2020 weapons97@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func LoadWithRawValues(cp string) (c *chart.Chart, e error)
- func MergeValues(v1, v2 []byte) (v3 []byte, e3 error)
- func ToStruct(msg interface{}) (pbs *pstruct.Struct, e error)
- type Adapter
- type Chart
- type ChartInfo
- type Dependency
- type Entry
- type File
- type Hook
- type Maintainer
- type Metadata
- type Release
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NULL_POINT_ERROR = fmt.Errorf(`null pointer`)
)
Functions ¶
func MergeValues ¶
MergeValues 合并yaml 值, 如果同一key上值冲突会用v2 覆盖v1 的值
Types ¶
type Adapter ¶
type Adapter interface { InstallCharts(releaseName, repoName, version string, userValues []byte, dryRun bool) (*Release, error) UpgradeRelease(releaseName, repoName, version string, userValues []byte, dryRun bool, maxhistory int, resetValue bool) (*Release, error) UninstallRelease(relName string) error GetChartDetail(chartPath, version string) (*Chart, error) GetRelease(release string) (*Release, error) GetValues(relName string) (string, map[string]interface{}, error) ListRelease() ([]*Release, error) RollbackRelease(releaseName string, ver int) error GetHistory(name string) ([]*Release, error) Search(keyword string, regexp bool) (charts []*ChartInfo, e error) All() (charts []*ChartInfo, e error) }
func NewAdapter ¶
func NewAdapter(cfg *action.Configuration, setting *cli.EnvSettings, namespace string, ) Adapter
type ChartInfo ¶
type Dependency ¶
type Dependency chart.Dependency
func (*Dependency) Convert ¶
func (d *Dependency) Convert() (res *protos.Dependency, e error)
Convert to protos for Dependency
type Entry ¶
func ConvertEntry ¶
ConvertEntry convert protos.Entry to adpter Entry
type Maintainer ¶
type Maintainer chart.Maintainer
func (*Maintainer) Convert ¶
func (mt *Maintainer) Convert() (res *protos.Maintainer, e error)
Click to show internal directories.
Click to hide internal directories.