clustercron package¶
Submodules¶
clustercron.alb module¶
clustercron.alb¶
Modules holds class for AWS ElasticLoadBalancing v2 (ALB)
-
class
clustercron.alb.
Alb
(name)¶ Bases:
clustercron.lb.Lb
-
get_healty_instances
()¶
-
clustercron.cache module¶
clustercron.cache¶
-
class
clustercron.cache.
Cache
¶ Bases:
object
-
expired
(expire_time)¶
-
static
iso2datetime_hook
(dct)¶
-
static
json_serial
(obj)¶ JSON serializer for objects not serializable by default json code
-
load_json
(fp)¶
-
safe_json
(fp)¶
-
set_now
()¶
-
-
clustercron.cache.
check
(master_check, filename, expire_time, max_iter)¶
clustercron.config module¶
clustercron.elb module¶
clustercron.elb¶
Modules holds class for AWS ElasticLoadBalancing (ELB)
-
class
clustercron.elb.
Elb
(name)¶ Bases:
clustercron.lb.Lb
-
get_healty_instances
()¶
-
clustercron.lb module¶
clustercron.main module¶
clustercron.main¶
-
class
clustercron.main.
Optarg
(arg_list)¶ Bases:
object
Parse arguments from sys.argv[0] list. Set usage string. Set properties from arguments.
-
parse
()¶
-
-
clustercron.main.
clustercron
(lb_type, name, command, output, use_cache)¶ API clustercron
Parameters: - lb_type – Type of loadbalancer
- name – Name of the loadbalancer instance
- command – Command as a list
- output – Boolean
-
clustercron.main.
command
()¶ Entry point for the package, as defined in setup.py.
-
clustercron.main.
setup_logging
(verbose, syslog)¶ Sets up logging.