github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/service/windows/service_nix.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Copyright 2015 Cloudbase Solutions
     3  // Licensed under the AGPLv3, see LICENCE file for details.
     4  //
     5  // +build !windows
     6  
     7  package windows
     8  
     9  import (
    10  	"github.com/juju/juju/service/common"
    11  )
    12  
    13  // SvcManager implements ServiceManager interface
    14  type SvcManager struct{}
    15  
    16  // Start starts a service.
    17  func (s *SvcManager) Start(name string) error {
    18  	return nil
    19  }
    20  
    21  // Stop stops a service.
    22  func (s *SvcManager) Stop(name string) error {
    23  	return nil
    24  }
    25  
    26  // Delete deletes a service.
    27  func (s *SvcManager) Delete(name string) error {
    28  	return nil
    29  }
    30  
    31  // Create creates a service with the given config.
    32  func (s *SvcManager) Create(name string, conf common.Conf) error {
    33  	return nil
    34  }
    35  
    36  // Running returns the status of a service.
    37  func (s *SvcManager) Running(name string) (bool, error) {
    38  	return false, nil
    39  }
    40  
    41  // Exists checks whether the config of the installed service matches the
    42  // config supplied to this function
    43  func (s *SvcManager) Exists(name string, conf common.Conf) (bool, error) {
    44  	return false, nil
    45  }
    46  
    47  // ChangeServicePassword can change the password of a service
    48  // as long as it belongs to the user defined in this package
    49  func (s *SvcManager) ChangeServicePassword(name, newPassword string) error {
    50  	return nil
    51  }
    52  
    53  var listServices = func() ([]string, error) {
    54  	return []string{}, nil
    55  }
    56  
    57  var NewServiceManager = func() (ServiceManager, error) {
    58  	return &SvcManager{}, nil
    59  }