Documentation ¶
Index ¶
- Constants
- func NewSnapshotCache(xdsCache cachev3.SnapshotCache, hook CacheHook) cachev3.SnapshotCache
- type CDSBuilder
- func (cds *CDSBuilder) Generate(option *resource.BuildOption) (interface{}, error)
- func (cds *CDSBuilder) GenerateByDirection(option *resource.BuildOption, direction corev3.TrafficDirection) ([]types.Resource, error)
- func (cds *CDSBuilder) Init(client *resource.XDSClient, svr service.DiscoverServer)
- type CacheHook
- type EDSBuilder
- type LDSBuilder
- type RDSBuilder
- type ResourceServer
- type XDSServer
- func (x *XDSServer) Generate(needPush map[string]map[model.ServiceKey]*resource.ServiceInfo)
- func (x *XDSServer) GetPort() uint32
- func (x *XDSServer) GetProtocol() string
- func (x *XDSServer) Initialize(ctx context.Context, option map[string]interface{}, ...) error
- func (x *XDSServer) OnCreateDeltaWatch(request *cachev3.DeltaRequest, state stream.StreamState, ...)
- func (x *XDSServer) OnCreateWatch(request *cachev3.Request, streamState stream.StreamState, ...)
- func (x *XDSServer) OnFetch(ctx context.Context, request *cachev3.Request)
- func (x *XDSServer) Restart(option map[string]interface{}, apiConf map[string]apiserver.APIConfig, ...) error
- func (x *XDSServer) Run(errCh chan error)
- func (x *XDSServer) Stop()
- type XdsResourceGenerator
Constants ¶
View Source
const (
SniTemp = "outbound_.default_.%s.%s.svc.cluster.local"
)
Variables ¶
This section is empty.
Functions ¶
func NewSnapshotCache ¶ added in v1.16.0
func NewSnapshotCache(xdsCache cachev3.SnapshotCache, hook CacheHook) cachev3.SnapshotCache
NewSnapshotCache create a XDS SnapshotCache to proxy cachev3.SnapshotCache
Types ¶
type CDSBuilder ¶ added in v1.17.3
type CDSBuilder struct {
// contains filtered or unexported fields
}
CDSBuilder .
func (*CDSBuilder) Generate ¶ added in v1.17.3
func (cds *CDSBuilder) Generate(option *resource.BuildOption) (interface{}, error)
func (*CDSBuilder) GenerateByDirection ¶ added in v1.17.3
func (cds *CDSBuilder) GenerateByDirection(option *resource.BuildOption, direction corev3.TrafficDirection) ([]types.Resource, error)
func (*CDSBuilder) Init ¶ added in v1.17.3
func (cds *CDSBuilder) Init(client *resource.XDSClient, svr service.DiscoverServer)
type CacheHook ¶ added in v1.16.0
type CacheHook interface { // OnCreateWatch OnCreateWatch(request *cachev3.Request, streamState stream.StreamState, value chan cachev3.Response) // OnCreateDeltaWatch OnCreateDeltaWatch(request *cachev3.DeltaRequest, state stream.StreamState, value chan cachev3.DeltaResponse) // OnFetch OnFetch(ctx context.Context, request *cachev3.Request) }
CacheHook
type EDSBuilder ¶ added in v1.17.3
type EDSBuilder struct {
// contains filtered or unexported fields
}
EDSBuilder .
func (*EDSBuilder) Generate ¶ added in v1.17.3
func (eds *EDSBuilder) Generate(option *resource.BuildOption) (interface{}, error)
func (*EDSBuilder) Init ¶ added in v1.17.3
func (eds *EDSBuilder) Init(client *resource.XDSClient, svr service.DiscoverServer)
type LDSBuilder ¶ added in v1.17.3
type LDSBuilder struct {
// contains filtered or unexported fields
}
LDSBuilder .
func (*LDSBuilder) Generate ¶ added in v1.17.3
func (lds *LDSBuilder) Generate(option *resource.BuildOption) (interface{}, error)
func (*LDSBuilder) Init ¶ added in v1.17.3
func (lds *LDSBuilder) Init(clien *resource.XDSClient, svr service.DiscoverServer)
type RDSBuilder ¶ added in v1.17.3
type RDSBuilder struct {
// contains filtered or unexported fields
}
RDSBuilder .
func (*RDSBuilder) Generate ¶ added in v1.17.3
func (rds *RDSBuilder) Generate(option *resource.BuildOption) (interface{}, error)
func (*RDSBuilder) Init ¶ added in v1.17.3
func (rds *RDSBuilder) Init(client *resource.XDSClient, svr service.DiscoverServer)
type ResourceServer ¶ added in v1.17.3
type ResourceServer interface {
Generate(versionLocal string, registryInfo map[string]map[model.ServiceKey]*resource.ServiceInfo)
}
type XDSServer ¶
type XDSServer struct {
// contains filtered or unexported fields
}
XDSServer is the xDS server
func (*XDSServer) Generate ¶ added in v1.17.3
func (x *XDSServer) Generate(needPush map[string]map[model.ServiceKey]*resource.ServiceInfo)
func (*XDSServer) Initialize ¶
func (x *XDSServer) Initialize(ctx context.Context, option map[string]interface{}, apiConf map[string]apiserver.APIConfig) error
Initialize 初始化
func (*XDSServer) OnCreateDeltaWatch ¶ added in v1.16.0
func (x *XDSServer) OnCreateDeltaWatch(request *cachev3.DeltaRequest, state stream.StreamState, value chan cachev3.DeltaResponse)
OnCreateDeltaWatch before call cachev3.SnapshotCache OnCreateDeltaWatch
func (*XDSServer) OnCreateWatch ¶ added in v1.16.0
func (x *XDSServer) OnCreateWatch(request *cachev3.Request, streamState stream.StreamState, value chan cachev3.Response)
OnCreateWatch before call cachev3.SnapshotCache CreateWatch
type XdsResourceGenerator ¶ added in v1.17.3
type XdsResourceGenerator struct {
// contains filtered or unexported fields
}
XdsResourceGenerator is the xDS resource generator
func (*XdsResourceGenerator) Generate ¶ added in v1.17.3
func (x *XdsResourceGenerator) Generate(versionLocal string, registryInfo map[string]map[model.ServiceKey]*resource.ServiceInfo)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.