Help us shape the future of Go! Take the 2026 Go Developer Survey

etcd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RoutePath is the path to route image in etcd
	RoutePath string = "/routes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	tools.EtcdHelper
}

Etcd implements route.Registry backed by etcd.

func New

func New(helper tools.EtcdHelper) *Etcd

New creates an etcd registry.

func (*Etcd) CreateRoute

func (registry *Etcd) CreateRoute(ctx kapi.Context, route *api.Route) error

CreateRoute creates a new Route.

func (*Etcd) DeleteRoute

func (registry *Etcd) DeleteRoute(ctx kapi.Context, routeID string) error

DeleteRoute deletes a Route specified by its ID.

func (*Etcd) GetRoute

func (registry *Etcd) GetRoute(ctx kapi.Context, routeID string) (*api.Route, error)

GetRoute gets a specific Route specified by its ID.

func (*Etcd) ListRoutes

func (registry *Etcd) ListRoutes(ctx kapi.Context, selector labels.Selector) (*api.RouteList, error)

ListRoutes obtains a list of Routes.

func (*Etcd) UpdateRoute

func (registry *Etcd) UpdateRoute(ctx kapi.Context, route *api.Route) error

UpdateRoute replaces an existing Route.

func (*Etcd) WatchRoutes

func (registry *Etcd) WatchRoutes(ctx kapi.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)

WatchRoutes begins watching for new, changed, or deleted route configurations.

Source Files

  • etcd.go

Jump to

Keyboard shortcuts

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