# Path: subuserlib/classes/userOwnedObject.py
# class UserOwnedObject(object):
#   def __init__(self,user):
#     self.user = user
# 
# Path: subuserlib/classes/describable.py
# class Describable(object):
#   __metaclass__ = abc.ABCMeta
# 
#   @abc.abstractmethod
#   def describe(self):
#     """ Print out a human readable description of the object. """
#     pass


import os
import json
import subuserlib.classes.docker.dockerDaemon as dockerDaemon
from collections import OrderedDict
from subuserlib.classes.userOwnedObject import UserOwnedObject
from subuserlib.classes.describable import Describable
# -*- coding: utf-8 -*-

"""
Each user has a set of images that have been installed.
"""

#external imports
#internal imports

class InstalledImage(UserOwnedObject,Describable):
  def __init__(self,user,imageId,imageSourceName,sourceRepoId,imageSourceHash):
    self.imageId = imageId
    self.imageSourceHash = imageSourceHash
    self.imageSourceName = imageSourceName
    self.sourceRepoId = sourceRepoId
    self.__alreadyCheckedForUpdates = None

# Path: subuserlib/classes/userOwnedObject.py
# class UserOwnedObject(object):
#   def __init__(self,user):
#     self.user = user
# 
# Path: subuserlib/classes/describable.py
# class Describable(object):
#   __metaclass__ = abc.ABCMeta
# 
#   @abc.abstractmethod
#   def describe(self):
#     """ Print out a human readable description of the object. """
#     pass


# Path: subuserlib/classes/installedImage.py
import os
import json
import subuserlib.classes.docker.dockerDaemon as dockerDaemon
from collections import OrderedDict
from subuserlib.classes.userOwnedObject import UserOwnedObject
from subuserlib.classes.describable import Describable

# -*- coding: utf-8 -*-

"""
Each user has a set of images that have been installed.
"""

#external imports
#internal imports

class InstalledImage(UserOwnedObject,Describable):
  def __init__(self,user,imageId,imageSourceName,sourceRepoId,imageSourceHash):
    self.imageId = imageId
    self.imageSourceHash = imageSourceHash
    self.imageSourceName = imageSourceName
    self.sourceRepoId = sourceRepoId
    self.__alreadyCheckedForUpdates = None

    UserOwnedObject.__init__(self,user)