blob: 63743cd3f866e840c78028282e34f1892e94676c [file] [log] [blame]
mblighdcd57a82007-07-11 23:06:47 +00001#!/usr/bin/python
2#
3# Copyright 2007 Google Inc. Released under the GPL v2
4
mblighdc735a22007-08-02 16:54:37 +00005"""
6This module defines the Kernel class
mblighdcd57a82007-07-11 23:06:47 +00007
8 Kernel: an os kernel
9"""
10
mblighdc735a22007-08-02 16:54:37 +000011__author__ = """
12mbligh@google.com (Martin J. Bligh),
mblighdcd57a82007-07-11 23:06:47 +000013poirier@google.com (Benjamin Poirier),
mblighdc735a22007-08-02 16:54:37 +000014stutsman@google.com (Ryan Stutsman)
15"""
mblighdcd57a82007-07-11 23:06:47 +000016
17
18import installable_object
19
20
21class Kernel(installable_object.InstallableObject):
mblighdc735a22007-08-02 16:54:37 +000022 """
23 This class represents a kernel.
mblighdcd57a82007-07-11 23:06:47 +000024
25 It is used to obtain a built kernel or create one from source and
26 install it on a Host.
27
28 Implementation details:
29 This is an abstract class, leaf subclasses must implement the methods
30 listed here and in parent classes which have no implementation. They
31 may reimplement methods which already have an implementation. You
32 must not instantiate this class but should instantiate one of those
mblighdc735a22007-08-02 16:54:37 +000033 leaf subclasses.
34 """
mblighdcd57a82007-07-11 23:06:47 +000035
mbligh6a641262007-07-23 23:33:31 +000036 def get_version():
37 pass
mblighdc735a22007-08-02 16:54:37 +000038
39
mbligh6a641262007-07-23 23:33:31 +000040 def get_image_name():
41 pass
mblighdc735a22007-08-02 16:54:37 +000042
43
mbligh6a641262007-07-23 23:33:31 +000044 def get_initrd_name():
45 pass