{"modulePath":"github.com/crooks/api_cache","version":"v0.0.0-20251110110223-2afcc6f89f1c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nsatapi provides an API interface to Red Hat Satellite\n\n## Types\n\n```go\ntype AuthClient struct {\n\tUsername   string\n\tPassword   string\n\tHTTPClient *http.Client\n}\n```\nAuthClient contains the HTTP client components\n\n```go\nfunc NewBasicAuthClient(username, password, certFile string) *AuthClient\n```\nNewBasicAuthClient returns an instance of AuthClient\n\n```go\nfunc (s *AuthClient) GetJSON(url string) ([]byte, error)\n```\nGetJSON takes a URL relating to a Rest API and returns the resulting JSON as a byte slice.\n\n","path":"github.com/crooks/api_cache/api","name":"api","synopsis":"satapi provides an API interface to Red Hat Satellite","isRedistributable":true}
