github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/pkg/os/device_other.go (about)

     1  // +build !linux
     2  
     3  package os
     4  
     5  func Mount(device BlockDevice) (mntpoint string, err error) {
     6  	panic("Not supported")
     7  }
     8  func MountDevice(device string) (mntpoint string, err error) {
     9  	panic("Not supported")
    10  }
    11  
    12  func Umount(point string) error {
    13  	panic("Not supported")
    14  }
    15  
    16  type MsDosPartioner struct {
    17  	Device string
    18  }
    19  
    20  func (m *MsDosPartioner) MakeTable() error {
    21  	panic("Not supported")
    22  }
    23  
    24  func (m *MsDosPartioner) MakePart(partType string, start, size DiskSize) error {
    25  	panic("Not supported")
    26  	return nil
    27  }
    28  func (m *MsDosPartioner) MakePartTillEnd(partType string, start DiskSize) error {
    29  	panic("Not supported")
    30  	return nil
    31  }
    32  
    33  func (m *MsDosPartioner) Makebootable(partnum int) error {
    34  	panic("Not supported")
    35  	return nil
    36  }
    37  
    38  type DiskLabelPartioner struct {
    39  	Device string
    40  }
    41  
    42  func (m *DiskLabelPartioner) MakeTable() error {
    43  	panic("Not supported")
    44  	return nil
    45  }
    46  
    47  func (m *DiskLabelPartioner) MakePart(partType string, start, size DiskSize) error {
    48  	panic("Not supported")
    49  	return nil
    50  }
    51  
    52  func ListParts(device BlockDevice) ([]Part, error) {
    53  	panic("Not supported")
    54  	return nil, nil
    55  }
    56  
    57  type PartedPart struct {
    58  	Device BlockDevice
    59  }
    60  
    61  func (p *PartedPart) Size() DiskSize {
    62  	panic("Not supported")
    63  	return Bytes(0)
    64  }
    65  func (p *PartedPart) Offset() DiskSize {
    66  	panic("Not supported")
    67  	return Bytes(0)
    68  }
    69  
    70  func (p *PartedPart) Acquire() (BlockDevice, error) {
    71  
    72  	panic("Not supported")
    73  	return "", nil
    74  }
    75  
    76  func (p *PartedPart) Release() error {
    77  	panic("Not supported")
    78  	return nil
    79  }
    80  
    81  func (p *PartedPart) Get() BlockDevice {
    82  	panic("Not supported")
    83  	return ""
    84  }
    85  
    86  type DeviceMapperDevice struct {
    87  	DeviceName string
    88  }
    89  
    90  func NewDevice(start, size Sectors, origDevice BlockDevice, deivceName string) Resource {
    91  	panic("Not supported")
    92  	return nil
    93  }
    94  
    95  func (p *DeviceMapperDevice) Size() DiskSize {
    96  	panic("Not supported")
    97  	return Bytes(0)
    98  }
    99  func (p *DeviceMapperDevice) Offset() DiskSize {
   100  	panic("Not supported")
   101  	return Bytes(0)
   102  }
   103  
   104  func (p *DeviceMapperDevice) Acquire() (BlockDevice, error) {
   105  
   106  	panic("Not supported")
   107  	return "", nil
   108  }
   109  
   110  func (p *DeviceMapperDevice) Release() error {
   111  
   112  	panic("Not supported")
   113  	return nil
   114  }
   115  
   116  func (p *DeviceMapperDevice) Get() BlockDevice {
   117  
   118  	panic("Not supported")
   119  	return ""
   120  }
   121  
   122  type LoDevice struct {
   123  }
   124  
   125  func NewLoDevice(device string) Resource {
   126  
   127  	panic("Not supported")
   128  	return nil
   129  }
   130  
   131  func (p *LoDevice) Acquire() (BlockDevice, error) {
   132  
   133  	panic("Not supported")
   134  	return "", nil
   135  }
   136  
   137  func (p *LoDevice) Release() error {
   138  
   139  	panic("Not supported")
   140  	return nil
   141  }