class Kube::Client::Api

Defined in:

kube/client/api.cr
kube/error.cr

Constructors

Instance Method Summary

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") #

[View source]

Instance Method Detail

def api_path : String #

[View source]
def api_path=(api_path : String) #

[View source]
def default_headers : Hash(String, String) #

[View source]
def default_headers=(default_headers : Hash(String, String)) #

[View source]
def get(path : String, params : Hash(String, String)) #

Make a GET request


[View source]
def get(path : String, params : String | Nil = nil) #

Make a GET request


[View source]
def host : String #

[View source]
def host=(host : String) #

[View source]
def logger : Logger #

Returns the logger


[View source]
def make_request_uri(path : String, params : String | Nil = nil) : URI #

URI helper function


[View source]
def port : Int32 | Nil #

[View source]
def port=(port : Int32 | Nil) #

[View source]
def post(path : String, body = "", params : String | Nil = nil) #

Make a POST request


[View source]
def scheme : String #

[View source]
def scheme=(scheme : String) #

[View source]