drivers

package
v0.0.0-...-bc7948d Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright © 2016 Nuxeo SA (http://nuxeo.com/) and others.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2016 Nuxeo SA (http://nuxeo.com/) and others.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnitName

func UnitName(s *Service) string

Types

type FleetServiceDriver

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

func NewFleetServiceDriver

func NewFleetServiceDriver(etcdAddress string) *FleetServiceDriver

func (*FleetServiceDriver) Create

func (f *FleetServiceDriver) Create(s *Service, startOnCreate bool) (interface{}, error)

func (*FleetServiceDriver) Destroy

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

func (*FleetServiceDriver) FinishUpgrade

func (f *FleetServiceDriver) FinishUpgrade(s *Service) (interface{}, error)

func (*FleetServiceDriver) GetInfo

func (f *FleetServiceDriver) GetInfo(s *Service) (interface{}, error)

func (*FleetServiceDriver) Listen

func (f *FleetServiceDriver) Listen() chan *ModelEvent

func (*FleetServiceDriver) NeedToBeUpgraded

func (r *FleetServiceDriver) NeedToBeUpgraded(s *Service) (bool, error)

func (*FleetServiceDriver) Passivate

func (f *FleetServiceDriver) Passivate(s *Service) (interface{}, error)

func (*FleetServiceDriver) Rollback

func (f *FleetServiceDriver) Rollback(s *Service) (interface{}, error)

func (*FleetServiceDriver) Start

func (f *FleetServiceDriver) Start(s *Service) (interface{}, error)

func (*FleetServiceDriver) Stop

func (f *FleetServiceDriver) Stop(s *Service) (interface{}, error)

func (*FleetServiceDriver) Upgrade

func (f *FleetServiceDriver) Upgrade(s *Service) (interface{}, error)

type RancherServiceDriver

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

func NewRancherServiceDriver

func NewRancherServiceDriver(rancherHost string, rancherAccessKey string, rancherSecretKey string) (*RancherServiceDriver, error)

func (*RancherServiceDriver) Create

func (r *RancherServiceDriver) Create(s *Service, startOnCreate bool) (interface{}, error)

func (*RancherServiceDriver) Destroy

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

func (*RancherServiceDriver) FinishUpgrade

func (r *RancherServiceDriver) FinishUpgrade(s *Service) (interface{}, error)

func (*RancherServiceDriver) GetInfo

func (r *RancherServiceDriver) GetInfo(s *Service) (interface{}, error)

Return the RancheInfotype for the given service

func (*RancherServiceDriver) Listen

func (r *RancherServiceDriver) Listen() chan *ModelEvent

func (*RancherServiceDriver) NeedToBeUpgraded

func (r *RancherServiceDriver) NeedToBeUpgraded(s *Service) (bool, error)

func (*RancherServiceDriver) Rollback

func (r *RancherServiceDriver) Rollback(s *Service) (interface{}, error)

func (*RancherServiceDriver) Start

func (r *RancherServiceDriver) Start(s *Service) (interface{}, error)

func (*RancherServiceDriver) Stop

func (r *RancherServiceDriver) Stop(s *Service) (interface{}, error)

func (*RancherServiceDriver) Upgrade

func (r *RancherServiceDriver) Upgrade(s *Service) (interface{}, error)

Jump to

Keyboard shortcuts

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