drivers

package
v0.0.0-...-c992646 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2016 License: LGPL-2.1 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FleetServiceDriver

type FleetServiceDriver struct {
	// contains filtered or unexported fields
}

func NewFleetServiceDriver

func NewFleetServiceDriver(client *etcd.Client) *FleetServiceDriver

func (*FleetServiceDriver) Create

func (f *FleetServiceDriver) Create(s *Service) (*Service, error)

func (*FleetServiceDriver) Destroy

func (f *FleetServiceDriver) Destroy(s *Service) error

func (*FleetServiceDriver) Passivate

func (f *FleetServiceDriver) Passivate(s *Service) (*Service, error)

func (*FleetServiceDriver) Start

func (f *FleetServiceDriver) Start(s *Service) (*Service, error)

func (*FleetServiceDriver) Stop

func (f *FleetServiceDriver) Stop(s *Service) (*Service, error)

type RancherServiceDriver

type RancherServiceDriver struct {
	// contains filtered or unexported fields
}

func NewRancherServiceDriver

func NewRancherServiceDriver(client *etcd.Client, rancherHost string, rancherAccessKey string, rancherSecretKey string) *RancherServiceDriver

func (*RancherServiceDriver) Create

func (r *RancherServiceDriver) Create(s *Service) (*Service, error)

func (*RancherServiceDriver) Destroy

func (r *RancherServiceDriver) Destroy(s *Service) error

func (*RancherServiceDriver) Passivate

func (r *RancherServiceDriver) Passivate(s *Service) (*Service, error)

func (*RancherServiceDriver) Start

func (r *RancherServiceDriver) Start(s *Service) (*Service, error)

func (*RancherServiceDriver) Stop

func (r *RancherServiceDriver) Stop(s *Service) (*Service, error)

type ServiceDriver

type ServiceDriver interface {
	Create(s *Service) (*Service, error)
	Start(s *Service) (*Service, error)
	Stop(s *Service) (*Service, error)
	Passivate(s *Service) (*Service, error)
	Destroy(s *Service) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL