Documentation ¶
Index ¶
- func ApplyOAuth2MockServer(resourceMgr *resource.Manager, k8sClient dynamic.Interface, namespace string, ...) (string, string, error)
- func EnsureOAuth2Server(resourceMgr *resource.Manager, k8sClient dynamic.Interface, namespace string, ...) (string, string, error)
- func GetAccessToken(oauth2Cfg clientcredentials.Config, tokenType string) (string, error)
- func GetAccessTokenWithRetries(oauth2Cfg clientcredentials.Config, tokenType string, retryOpts []retry.Option) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyOAuth2MockServer ¶
func ApplyOAuth2MockServer(resourceMgr *resource.Manager, k8sClient dynamic.Interface, namespace string, domain string) (string, string, error)
ApplyOAuth2MockServer creates OAuth2 mock server deployment, service and virtual service. Returns the issuer URL of the mock server.
func EnsureOAuth2Server ¶
func GetAccessToken ¶
func GetAccessToken(oauth2Cfg clientcredentials.Config, tokenType string) (string, error)
func GetAccessTokenWithRetries ¶
func GetAccessTokenWithRetries(oauth2Cfg clientcredentials.Config, tokenType string, retryOpts []retry.Option) (string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.