Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSdsClientNotInit = errors.New("sds client not init")
View Source
var (
SubscriberRetryPeriod = 3 * time.Second
)
Functions ¶
func NewSdsClientSingleton ¶
func NewSdsClientSingleton(config *auth.SdsSecretConfig) types.SdsClient
NewSdsClientSingleton use by tls module , when get sds config from xds
Types ¶
type SdsClientImpl ¶
type SdsClientImpl struct { SdsConfigMap map[string]*auth.SdsSecretConfig SdsCallbackMap map[string]types.SdsUpdateCallbackFunc // contains filtered or unexported fields }
func (*SdsClientImpl) AddUpdateCallback ¶
func (client *SdsClientImpl) AddUpdateCallback(sdsConfig *auth.SdsSecretConfig, callback types.SdsUpdateCallbackFunc) error
func (*SdsClientImpl) DeleteUpdateCallback ¶
func (client *SdsClientImpl) DeleteUpdateCallback(sdsConfig *auth.SdsSecretConfig) error
DeleteUpdateCallback
type SdsStreamClient ¶
type SdsStreamClient struct {
// contains filtered or unexported fields
}
type SdsStreamConfig ¶
type SdsStreamConfig struct {
// contains filtered or unexported fields
}
type SdsSubscriber ¶
type SdsSubscriber struct {
// contains filtered or unexported fields
}
func NewSdsSubscriber ¶
func NewSdsSubscriber(provider types.SecretProvider, sdsConfig *core.ConfigSource, serviceNode string, serviceCluster string) *SdsSubscriber
func (*SdsSubscriber) SendSdsRequest ¶
func (subscribe *SdsSubscriber) SendSdsRequest(name string)
func (*SdsSubscriber) Start ¶
func (subscribe *SdsSubscriber) Start()
func (*SdsSubscriber) Stop ¶
func (subscribe *SdsSubscriber) Stop()
Click to show internal directories.
Click to hide internal directories.