Sha256: 55e1ea6b633f8bf51c51269bb2d41454024cf2011fa6156abedea5e49f1616ae
Contents?: true
Size: 1.52 KB
Versions: 14
Compression:
Stored size: 1.52 KB
Contents
require 'nexussw/lxd' module NexusSW module LXD class Driver STATUS_CODES = { 100 => 'created', 101 => 'started', 102 => 'stopped', 103 => 'running', 104 => 'cancelling', 105 => 'pending', 106 => 'starting', 107 => 'stopping', 108 => 'aborting', 109 => 'freezing', 110 => 'frozen', 111 => 'thawed', 200 => 'success', 400 => 'failure', 401 => 'cancelled', }.freeze def create_container(_container_name, _container_options) raise "#{self.class}#create_container not implemented" end def start_container(_container_id) raise "#{self.class}#start_container not implemented" end def stop_container(_container_id, _options = {}) raise "#{self.class}#stop_container not implemented" end def delete_container(_container_id) raise "#{self.class}#delete_container not implemented" end def container_status(_container_id) raise "#{self.class}#container_status not implemented" end def container(_container_id) raise "#{self.class}#container not implemented" end def container_state(_container_id) raise "#{self.class}#container_state not implemented" end def wait_for(_what) raise "#{self.class}#wait_for not implemented" end def transport_for(_container_name) raise "#{self.class}#transport_for not implemented" end end end end
Version data entries
14 entries across 14 versions & 1 rubygems