github.com/anuvu/nomad@v0.8.7-atom1/client/driver/rkt_nonlinux.go (about)

     1  //+build !linux
     2  
     3  package driver
     4  
     5  import (
     6  	"time"
     7  
     8  	cstructs "github.com/hashicorp/nomad/client/structs"
     9  	"github.com/hashicorp/nomad/nomad/structs"
    10  )
    11  
    12  // NewRktDriver returns an unimplemented driver that returns false during
    13  // fingerprinting.
    14  func NewRktDriver(*DriverContext) Driver {
    15  	return RktDriver{}
    16  }
    17  
    18  type RktDriver struct{}
    19  
    20  func (RktDriver) Prestart(*ExecContext, *structs.Task) (*PrestartResponse, error) {
    21  	panic("not implemented")
    22  }
    23  
    24  func (RktDriver) Start(ctx *ExecContext, task *structs.Task) (*StartResponse, error) {
    25  	panic("not implemented")
    26  }
    27  
    28  func (RktDriver) Open(ctx *ExecContext, handleID string) (DriverHandle, error) {
    29  	panic("not implemented")
    30  }
    31  
    32  func (RktDriver) Cleanup(*ExecContext, *CreatedResources) error {
    33  	panic("not implemented")
    34  }
    35  
    36  func (RktDriver) Validate(map[string]interface{}) error {
    37  	panic("not implemented")
    38  }
    39  
    40  func (RktDriver) Abilities() DriverAbilities {
    41  	panic("not implemented")
    42  }
    43  
    44  func (RktDriver) FSIsolation() cstructs.FSIsolation {
    45  	panic("not implemented")
    46  }
    47  
    48  func (RktDriver) Fingerprint(req *cstructs.FingerprintRequest, resp *cstructs.FingerprintResponse) error {
    49  	return nil
    50  }
    51  
    52  func (RktDriver) Periodic() (bool, time.Duration) {
    53  	return false, 0
    54  }