class CB::Client

Defined in:

cb/client.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(token : Token) #

[View source]

Class Method Detail

def self.get_token(creds : Creds) : Token #

[View source]
def self.tls #

[View source]

Instance Method Detail

def add_firewall_rule(cluster_id, cidr) #

[View source]
def add_logdest(lda : CB::LogdestAdd) #

[View source]
def create_cluster(cc) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clusters/post


[View source]
def delete(path) #

[View source]
def delete_firewall_rule(cluster_id, firewall_rule_id) #

[View source]
def destroy_cluster(id) #

[View source]
def destroy_logdest(cluster_id, logdest_id) #

[View source]
def exec(method, path, body : String | Nil = nil) #

[View source]
def exec(method, path, body) #

[View source]
def fork_cluster(cc) #

https://crunchybridgeapi.docs.apiary.io/#reference/0/clustersclusteridforks/post


[View source]
def get(path) #

[View source]
def get_account #

[View source]
def get_cluster(id) #

[View source]
def get_cluster_default_role(id) #

[View source]
def get_clusters #

[View source]
def get_firewall_rules(cluster_id) #

[View source]
def get_logdests(cluster_id) #

[View source]
def get_providers #

[View source]
def get_teams #

[View source]
def headers : HTTP::Headers #

[View source]
def headers=(headers : HTTP::Headers) #

[View source]
def host : String #

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

[View source]
def http : HTTP::Client #

memoize to avoid slow tests


[View source]
def post(path, body) #

[View source]
def put(path, body) #

[View source]
def replicate_cluster(cc) #

[View source]