36 lines
		
	
	
		
			525 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			525 B
		
	
	
	
		
			Go
		
	
	
	
| package app
 | |
| 
 | |
| import (
 | |
| 	"gopkg.in/yaml.v2"
 | |
| 
 | |
| 	"github.com/helmfile/helmfile/pkg/state"
 | |
| )
 | |
| 
 | |
| type LoadOpts struct {
 | |
| 	Selectors   []string
 | |
| 	Environment state.SubhelmfileEnvironmentSpec
 | |
| 
 | |
| 	RetainValuesFiles bool
 | |
| 
 | |
| 	// CalleePath is the absolute path to the file being loaded
 | |
| 	CalleePath string
 | |
| 
 | |
| 	Reverse bool
 | |
| 
 | |
| 	Filter bool
 | |
| }
 | |
| 
 | |
| func (o LoadOpts) DeepCopy() LoadOpts {
 | |
| 	bytes, err := yaml.Marshal(o)
 | |
| 	if err != nil {
 | |
| 		panic(err)
 | |
| 	}
 | |
| 
 | |
| 	new := LoadOpts{}
 | |
| 	if err := yaml.Unmarshal(bytes, &new); err != nil {
 | |
| 		panic(err)
 | |
| 	}
 | |
| 
 | |
| 	return new
 | |
| }
 |