github.com/doitroot/helm@v3.0.0-beta.3+incompatible/pkg/chartutil/doc.go (about) 1 /* 2 Copyright The Helm Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 /*Package chartutil contains tools for working with charts. 18 19 Charts are described in the protocol buffer definition (pkg/proto/charts). 20 This packe provides utilities for serializing and deserializing charts. 21 22 A chart can be represented on the file system in one of two ways: 23 24 - As a directory that contains a Chart.yaml file and other chart things. 25 - As a tarred gzipped file containing a directory that then contains a 26 Chart.yaml file. 27 28 This package provides utilitites for working with those file formats. 29 30 The preferred way of loading a chart is using 'loader.Load`: 31 32 chart, err := loader.Load(filename) 33 34 This will attempt to discover whether the file at 'filename' is a directory or 35 a chart archive. It will then load accordingly. 36 37 For accepting raw compressed tar file data from an io.Reader, the 38 'loader.LoadArchive()' will read in the data, uncompress it, and unpack it 39 into a Chart. 40 41 When creating charts in memory, use the 'helm.sh/helm/pkg/proto/chart' 42 package directly. 43 */ 44 package chartutil // import "helm.sh/helm/pkg/chartutil"