module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 29, 2022
License: Apache-2.0
Opens a new window with license information.
README
¶
Auth module
Module provides useful helper functions for authentication in the RHOAS SDKs.
Example
offlineToken := os.Getenv("OFFLINE_TOKEN")
httpClient := rhoasAuth.BuildAuthenticatedHTTPClient(offlineToken)
ctx := context.Background()
client := kafkamgmt.NewAPIClient(&kafkamgmt.Config{
HTTPClient: httpClient,
})
_, _, err := client.DefaultApi.GetKafkas(ctx).Execute()
if err != nil {
panic(err)
}
Directories
¶
Click to show internal directories.
Click to hide internal directories.