mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
526 B
27 lines
526 B
package chart
|
|
|
|
// Template represents a template as a name/value pair.
|
|
//
|
|
// By convention, name is a relative path within the scope of the chart's
|
|
// base directory.
|
|
type Template struct {
|
|
// Name is the path-like name of the template.
|
|
Name string `json:"name,omitempty"`
|
|
// Data is the template as byte data.
|
|
Data []byte `json:"data,omitempty"`
|
|
}
|
|
|
|
func (m *Template) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Template) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|