github.com/blixtra/nomad@v0.7.2-0.20171221000451-da9a1d7bb050/client/driver/rkt_nonlinux.go (about)

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