15 lines
		
	
	
		
			464 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			464 B
		
	
	
	
		
			Go
		
	
	
	
| package options
 | |
| 
 | |
| // SecretSource references an individual secret value.
 | |
| // Only one source within the struct should be defined at any time.
 | |
| type SecretSource struct {
 | |
| 	// Value expects a base64 encoded []byte
 | |
| 	Value []byte `yaml:"value,omitempty"`
 | |
| 
 | |
| 	// FromEnv expects the name of an environment variable.
 | |
| 	FromEnv string `yaml:"fromEnv,omitempty"`
 | |
| 
 | |
| 	// FromFile expects a path to a file containing the secret value.
 | |
| 	FromFile string `yaml:"fromFile,omitempty"`
 | |
| }
 |