Better support for Talos ISO downloads.

This commit is contained in:
2025-10-12 20:16:17 +00:00
parent 772e324d89
commit 0307e4610e
4 changed files with 410 additions and 26 deletions

View File

@@ -146,6 +146,15 @@ func (r *APIResponse) GetArray(key string) []interface{} {
return nil
}
// GetBool extracts boolean data from API response
func (r *APIResponse) GetBool(key string) bool {
val := r.GetData(key)
if b, ok := val.(bool); ok {
return b
}
return false
}
// BaseURL returns the base URL of the client
func (c *Client) BaseURL() string {
return c.baseURL