Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GsmOption ¶
type GsmOption interface {
// contains filtered or unexported methods
}
func WithGsmConfigType ¶
func WithGsmProjectId ¶
func WithGsmResourceName ¶
func WithGsmUseJsonCreds ¶
func WithGsmUseJsonCredsFile ¶
type Manager ¶
type Manager interface { Get(key string) interface{} GetBool(key string) bool GetBoolOrElse(key string, elseValue bool) bool GetFloat64(key string) float64 GetFloat64OrElse(key string, elseValue float64) float64 GetInt(key string) int GetIntOrElse(key string, elseValue int) int GetIntSlice(key string) []int GetIntSliceOrElse(key string, elseValue []int) []int GetString(key string) string GetStringOrElse(key string, elseValue string) string GetStringMap(key string) map[string]interface{} GetStringMapOrElse(key string, elseValue map[string]interface{}) map[string]interface{} GetStringMapString(key string) map[string]string GetStringMapStringOrElse(key string, elseValue map[string]string) map[string]string GetStringSlice(key string) []string GetStringSliceOrElse(key string, orElse []string) []string GetMapArray(key string) []map[string]interface{} GetTime(key string) time.Time GetDuration(key string) time.Duration GetDurationOrElse(key string, elseValue time.Duration) time.Duration UnmarshalTo(key string, to interface{}) error IsSet(key string) bool AllSettings() map[string]interface{} Init() error MustInit() Manager }
type Provider ¶
func NewConfigLocal ¶
func NewGoogleSecretManager ¶
NewGoogleSecretManager instantiate google secret manager with the given projectId and secret name The resource name of the [Secret][google.cloud.secretmanager.v1.Secret], in the format `projects/*/secrets/*`.
type RemoteProvider ¶
type RemoteProvider string
const ( RemoteProviderGSM RemoteProvider = "google_secret_manager" RemoteProviderConsul RemoteProvider = "consul" RemoteProviderNone RemoteProvider = "none" )
func (RemoteProvider) String ¶
func (rp RemoteProvider) String() string
Click to show internal directories.
Click to hide internal directories.