mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
24 lines
476 B
Ruby
24 lines
476 B
Ruby
require 'fog/core/collection'
|
|
require 'fog/fogdocker/models/compute/image'
|
|
|
|
module Fog
|
|
module Compute
|
|
class Fogdocker
|
|
class Images < Fog::Collection
|
|
model Fog::Compute::Fogdocker::Image
|
|
|
|
def all(filters = {})
|
|
load service.image_all(filters)
|
|
end
|
|
|
|
def get(id)
|
|
new service.image_get(id)
|
|
end
|
|
|
|
def image_search(query = {})
|
|
service.image_search(query)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|