Documentation ¶
Index ¶
- Constants
- type Etcd
- func (registry *Etcd) CreateRoute(ctx kapi.Context, route *api.Route) error
- func (registry *Etcd) DeleteRoute(ctx kapi.Context, routeID string) error
- func (registry *Etcd) GetRoute(ctx kapi.Context, routeID string) (*api.Route, error)
- func (registry *Etcd) ListRoutes(ctx kapi.Context, selector labels.Selector) (*api.RouteList, error)
- func (registry *Etcd) UpdateRoute(ctx kapi.Context, route *api.Route) error
- func (registry *Etcd) WatchRoutes(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)
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 (*Etcd) CreateRoute ¶
CreateRoute creates a new Route.
func (*Etcd) DeleteRoute ¶
DeleteRoute deletes a 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 ¶
UpdateRoute replaces an existing Route.
Click to show internal directories.
Click to hide internal directories.