github.com/vseinstrumentiru/lego@v1.0.2/internal/lego/config.go (about)

     1  package lego
     2  
     3  import (
     4  	"github.com/spf13/pflag"
     5  	"github.com/spf13/viper"
     6  )
     7  
     8  type Config interface {
     9  	Validatable
    10  	SetDefaults(env *viper.Viper, flag *pflag.FlagSet)
    11  }
    12  
    13  type ConfigWithKey interface {
    14  	Validatable
    15  	SetDefaults(key string, env *viper.Viper, flag *pflag.FlagSet)
    16  }
    17  
    18  type ConfigWithCustomEnvPrefix interface {
    19  	Config
    20  	GetEnvPrefix() string
    21  }