Documentation ¶
Index ¶
- Constants
- func RegisterMux(url string, mux CacheMux)
- func RegisterMuxFactory(url string, f CacheMuxFactory)
- type CacheMux
- func CreateMux(url, hostname string, informerFactory informers.SharedInformerFactory) (CacheMux, error)
- func GetMux(url string) (CacheMux, error)
- func NewEndpointMux(hostname string, informerFactory informers.SharedInformerFactory) (CacheMux, error)
- func NewNodeMux(hostname string, informerFactory informers.SharedInformerFactory) (CacheMux, error)
- func NewServiceMux(hostname string, informerFactory informers.SharedInformerFactory) (CacheMux, error)
- type CacheMuxFactory
Constants ¶
View Source
const (
// EndpointCacheURL is cached url
EndpointCacheURL = "/api/v1/endpoints"
)
View Source
const (
// NodeCacheURL is cached url
NodeCacheURL = "/api/v1/nodes"
)
View Source
const (
// serviceCacheURL is cached url
ServiceCacheURL = "/api/v1/services"
)
Variables ¶
This section is empty.
Functions ¶
func RegisterMux ¶
func RegisterMuxFactory ¶
func RegisterMuxFactory(url string, f CacheMuxFactory)
Types ¶
type CacheMux ¶
type CacheMux interface { Name() string // Match check the resource url if need multiplex Match(method, URLPath string) bool // Watch return a event chan from upstream apiserver Watch(bookmark bool, ResourceVersion string) (watch.Interface, error) // ListObjects list object from informer store, labels filter in store.ListAll // field filter will in downstream ListObjects(selector labels.Selector, appendFn cache.AppendFunc) error }
func CreateMux ¶
func CreateMux(url, hostname string, informerFactory informers.SharedInformerFactory) (CacheMux, error)
func NewEndpointMux ¶
func NewEndpointMux(hostname string, informerFactory informers.SharedInformerFactory) (CacheMux, error)
NewEndpointMux ...
func NewNodeMux ¶
func NewNodeMux(hostname string, informerFactory informers.SharedInformerFactory) (CacheMux, error)
NewNodeMux ...
func NewServiceMux ¶
func NewServiceMux(hostname string, informerFactory informers.SharedInformerFactory) (CacheMux, error)
NewserviceMux ...
type CacheMuxFactory ¶
type CacheMuxFactory interface {
Create(hostname string, informerFactory informers.SharedInformerFactory) (CacheMux, error)
}
func GetMuxFactory ¶
func GetMuxFactory(url string) (CacheMuxFactory, error)
Click to show internal directories.
Click to hide internal directories.