Documentation
¶
Index ¶
- Constants
- type ACLKey
- type ETCDRouteLoader
- func (routeLoader *ETCDRouteLoader) BootstrapRoutes(ctx context.Context, upsertRouteFunc server.UpsertRouteFunc) error
- func (routeLoader *ETCDRouteLoader) DelACL(key ACLKey) error
- func (routeLoader *ETCDRouteLoader) GetACL(key ACLKey) (*weaver.ACL, error)
- func (routeLoader *ETCDRouteLoader) PutACL(acl *weaver.ACL) (ACLKey, error)
- func (routeLoader *ETCDRouteLoader) WatchRoutes(ctx context.Context, upsertRouteFunc server.UpsertRouteFunc, ...)
Constants ¶
View Source
const (
// ACLKeyFormat - Format for a ACL's key in a KV Store
ACLKeyFormat = "/%s/acls/%s/acl"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLKey ¶
type ACLKey string
ACLKey - Points to a stored ACL
type ETCDRouteLoader ¶
type ETCDRouteLoader struct {
// contains filtered or unexported fields
}
ETCDRouteLoader - To store and modify proxy configuration
func NewRouteLoader ¶
func NewRouteLoader() (*ETCDRouteLoader, error)
func (*ETCDRouteLoader) BootstrapRoutes ¶
func (routeLoader *ETCDRouteLoader) BootstrapRoutes(ctx context.Context, upsertRouteFunc server.UpsertRouteFunc) error
func (*ETCDRouteLoader) DelACL ¶
func (routeLoader *ETCDRouteLoader) DelACL(key ACLKey) error
DelACL - Deletes an ACL given an ACLKey
func (*ETCDRouteLoader) GetACL ¶
func (routeLoader *ETCDRouteLoader) GetACL(key ACLKey) (*weaver.ACL, error)
GetACL - Fetches an ACL given an ACLKey
func (*ETCDRouteLoader) PutACL ¶
func (routeLoader *ETCDRouteLoader) PutACL(acl *weaver.ACL) (ACLKey, error)
PutACL - Upserts a given ACL
func (*ETCDRouteLoader) WatchRoutes ¶
func (routeLoader *ETCDRouteLoader) WatchRoutes(ctx context.Context, upsertRouteFunc server.UpsertRouteFunc, deleteRouteFunc server.DeleteRouteFunc)
Click to show internal directories.
Click to hide internal directories.