class Kube::Client::Api
- Kube::Client::Api
- Reference
- Object
Defined in:
kube/client/api.crkube/error.cr
Constructors
Instance Method Summary
- #api_path : String
- #api_path=(api_path : String)
- #default_headers : Hash(String, String)
- #default_headers=(default_headers : Hash(String, String))
-
#get(path : String, params : Hash(String, String))
Make a GET request
-
#get(path : String, params : String | Nil = nil)
Make a GET request
- #host : String
- #host=(host : String)
-
#logger : Logger
Returns the logger
-
#make_request_uri(path : String, params : String | Nil = nil) : URI
URI helper function
- #port : Int32 | Nil
- #port=(port : Int32 | Nil)
-
#post(path : String, body = "", params : String | Nil = nil)
Make a POST request
- #scheme : String
- #scheme=(scheme : String)
Constructor Detail
def self.new(host : String, port : Int32 | Nil = nil, user : String | Nil = nil, pass : String | Nil = nil, logger : Logger = Logger.new(STDOUT, level: Logger::WARN), scheme : String = "https", api_path : String = "api/v1")
#