@@ -19,14 +19,15 @@ type BackendRest struct {
19
19
}
20
20
21
21
type Backend struct {
22
- name string
23
- Type string `mapstructure:"type,omitempty" yaml:"type,omitempty"`
24
- Path string `mapstructure:"path,omitempty" yaml:"path,omitempty"`
25
- Key string `mapstructure:"key,omitempty" yaml:"key,omitempty"`
26
- RequireKey bool `mapstructure:"requireKey,omitempty" yaml:"requireKey,omitempty"`
27
- Env map [string ]string `mapstructure:"env,omitempty" yaml:"env,omitempty"`
28
- Rest BackendRest `mapstructure:"rest,omitempty" yaml:"rest,omitempty"`
29
- Options Options `mapstructure:"options,omitempty" yaml:"options,omitempty"`
22
+ name string
23
+ Type string `mapstructure:"type,omitempty" yaml:"type,omitempty"`
24
+ Path string `mapstructure:"path,omitempty" yaml:"path,omitempty"`
25
+ Key string `mapstructure:"key,omitempty" yaml:"key,omitempty"`
26
+ RequireKey bool `mapstructure:"requireKey,omitempty" yaml:"requireKey,omitempty"`
27
+ AllowFailure bool `mapstructure:"allowFailure,omitempty" yaml:"allowFailure,omitempty"`
28
+ Env map [string ]string `mapstructure:"env,omitempty" yaml:"env,omitempty"`
29
+ Rest BackendRest `mapstructure:"rest,omitempty" yaml:"rest,omitempty"`
30
+ Options Options `mapstructure:"options,omitempty" yaml:"options,omitempty"`
30
31
}
31
32
32
33
func GetBackend (name string ) (Backend , bool ) {
0 commit comments