Documentation
¶
Index ¶
- func GetClientUtilForServiceType(svcType string) (oauth2util.OAuth2Util, error)
- type AppConfigs
- func (cfgs *AppConfigs) AddAppConfigWrapper(key string, acw oauth2util.AppCredentialsWrapper) error
- func (cfgs *AppConfigs) AddAppConfigWrapperBytes(key string, val []byte) error
- func (cfgs *AppConfigs) Get(key string) (*oauth2.Config, error)
- func (cfgs *AppConfigs) MustGet(key string) *oauth2.Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientUtilForServiceType ¶ added in v0.1.0
func GetClientUtilForServiceType(svcType string) (oauth2util.OAuth2Util, error)
Types ¶
type AppConfigs ¶ added in v0.1.0
func EnvOAuth2ConfigMap ¶
func EnvOAuth2ConfigMap(env []osutil.EnvVar, prefix string) (*AppConfigs, error)
EnvOAuth2ConfigMap returns a map of *oauth2.Config from environment variables in AppCredentialsWrapper format.
func NewAppConfigs ¶ added in v0.1.0
func NewAppConfigs() *AppConfigs
func (*AppConfigs) AddAppConfigWrapper ¶ added in v0.1.0
func (cfgs *AppConfigs) AddAppConfigWrapper(key string, acw oauth2util.AppCredentialsWrapper) error
func (*AppConfigs) AddAppConfigWrapperBytes ¶ added in v0.1.0
func (cfgs *AppConfigs) AddAppConfigWrapperBytes(key string, val []byte) error
Click to show internal directories.
Click to hide internal directories.