package
0.0.0-20241104161355-939959eb3a81
Repository: https://github.com/uyuni-project/uyuni-tools.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddAPIFlags is a helper to include api details for the provided command tree.
Get issues an HTTP GET request to the API using the client and decodes the response.
Init returns a HTTPClient object for further API use.
IsAlreadyLoggedIn returns true if credentials file already exists.
Post
Post issues a POST HTTP request to the API target using the client and decodes the response.
RemoveLoginCreds removes the stored API credentials.
StoreLoginCreds stores the API credentials for future API use.

# Structs

APIClient is the API entrypoint structure.
APIResponse describes the HTTP response where T is the type of the result.
ConnectionDetails holds the details for initial API connection.

# Interfaces

HTTPClient is a minimal HTTPClient interface primarily for unit testing.