Class: Docker::Registry::Sync::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/docker/registry/sync/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/docker/registry/sync/configuration.rb', line 59

def initialize
  @source_bucket = nil
  @source_region = nil

  @target_buckets = nil

  @sqs_region = nil
  @sqs_url = nil

  @source_sse = false
  @sse = false

  @empty_queue_sleep_time = 5
  @pool_size = 5

  @log_level = :debug
  @logger = Docker::Registry::Sync::STDLogger
end

Instance Attribute Details

#empty_queue_sleep_timeObject

Returns the value of attribute empty_queue_sleep_time.



56
57
58
# File 'lib/docker/registry/sync/configuration.rb', line 56

def empty_queue_sleep_time
  @empty_queue_sleep_time
end

#log_levelObject

Returns the value of attribute log_level.



57
58
59
# File 'lib/docker/registry/sync/configuration.rb', line 57

def log_level
  @log_level
end

#loggerObject

Returns the value of attribute logger.



57
58
59
# File 'lib/docker/registry/sync/configuration.rb', line 57

def logger
  @logger
end

#pool_sizeObject

Returns the value of attribute pool_size.



56
57
58
# File 'lib/docker/registry/sync/configuration.rb', line 56

def pool_size
  @pool_size
end

#source_bucketObject

Returns the value of attribute source_bucket.



56
57
58
# File 'lib/docker/registry/sync/configuration.rb', line 56

def source_bucket
  @source_bucket
end

#source_regionObject

Returns the value of attribute source_region.



56
57
58
# File 'lib/docker/registry/sync/configuration.rb', line 56

def source_region
  @source_region
end

#source_sseObject

Returns the value of attribute source_sse.



56
57
58
# File 'lib/docker/registry/sync/configuration.rb', line 56

def source_sse
  @source_sse
end

#sqs_regionObject

Returns the value of attribute sqs_region.



56
57
58
# File 'lib/docker/registry/sync/configuration.rb', line 56

def sqs_region
  @sqs_region
end

#sqs_urlObject

Returns the value of attribute sqs_url.



56
57
58
# File 'lib/docker/registry/sync/configuration.rb', line 56

def sqs_url
  @sqs_url
end

#sseObject

Returns the value of attribute sse.



56
57
58
# File 'lib/docker/registry/sync/configuration.rb', line 56

def sse
  @sse
end

#target_bucketsObject

Returns the value of attribute target_buckets.



56
57
58
# File 'lib/docker/registry/sync/configuration.rb', line 56

def target_buckets
  @target_buckets
end