Documentation
¶
Index ¶
- func BuilderFor(appCtx context.Context, cfg kuma_cp.Config) (*core_runtime.Builder, error)
- type DummyEnvoyAdminClient
- func (d *DummyEnvoyAdminClient) Clusters(ctx context.Context, proxy core_model.ResourceWithAddress, ...) ([]byte, error)
- func (d *DummyEnvoyAdminClient) ConfigDump(ctx context.Context, proxy core_model.ResourceWithAddress, includeEds bool) ([]byte, error)
- func (d *DummyEnvoyAdminClient) GenerateAPIToken(dp *core_mesh.DataplaneResource) (string, error)
- func (d *DummyEnvoyAdminClient) PostQuit(ctx context.Context, dataplane *core_mesh.DataplaneResource) error
- func (d *DummyEnvoyAdminClient) Stats(ctx context.Context, proxy core_model.ResourceWithAddress, ...) ([]byte, error)
- type TestRuntime
- func (r *TestRuntime) APIInstaller() customization.APIInstaller
- func (r *TestRuntime) APIServerAuthenticator() authn.Authenticator
- func (r *TestRuntime) APIWebServiceCustomize() func(ws *restful.WebService) error
- func (r *TestRuntime) Access() core_runtime.Access
- func (r *TestRuntime) Config() kuma_cp.Config
- func (r *TestRuntime) EnvoyAdminClient() admin.EnvoyAdminClient
- func (r *TestRuntime) Extensions() context.Context
- func (r *TestRuntime) GetClusterId() string
- func (r *TestRuntime) GetInstanceId() string
- func (r *TestRuntime) GlobalInsightService() globalinsight.GlobalInsightService
- func (r *TestRuntime) Metrics() metrics.Metrics
- func (r *TestRuntime) ReadOnlyResourceManager() core_manager.ReadOnlyResourceManager
- func (r *TestRuntime) ResourceManager() core_manager.ResourceManager
- func (r *TestRuntime) TokenIssuers() tokens_builtin.TokenIssuers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuilderFor ¶
Types ¶
type DummyEnvoyAdminClient ¶
type DummyEnvoyAdminClient struct {
PostQuitCalled *int
ConfigDumpCalled int
StatsCalled int
ClustersCalled int
}
func (*DummyEnvoyAdminClient) Clusters ¶
func (d *DummyEnvoyAdminClient) Clusters(ctx context.Context, proxy core_model.ResourceWithAddress, format v1alpha1.AdminOutputFormat) ([]byte, error)
func (*DummyEnvoyAdminClient) ConfigDump ¶
func (d *DummyEnvoyAdminClient) ConfigDump(ctx context.Context, proxy core_model.ResourceWithAddress, includeEds bool) ([]byte, error)
func (*DummyEnvoyAdminClient) GenerateAPIToken ¶
func (d *DummyEnvoyAdminClient) GenerateAPIToken(dp *core_mesh.DataplaneResource) (string, error)
func (*DummyEnvoyAdminClient) PostQuit ¶
func (d *DummyEnvoyAdminClient) PostQuit(ctx context.Context, dataplane *core_mesh.DataplaneResource) error
func (*DummyEnvoyAdminClient) Stats ¶
func (d *DummyEnvoyAdminClient) Stats(ctx context.Context, proxy core_model.ResourceWithAddress, format v1alpha1.AdminOutputFormat) ([]byte, error)
type TestRuntime ¶ added in v2.10.9
type TestRuntime struct {
core_runtime.Runtime
// contains filtered or unexported fields
}
func NewTestRuntime ¶ added in v2.10.9
func NewTestRuntime( rm core_manager.ResourceManager, config kuma_cp.Config, metrics metrics.Metrics, apiInstaller customization.APIInstaller, access core_runtime.Access, tokenIssuers tokens_builtin.TokenIssuers, globalInsightService globalinsight.GlobalInsightService, ) *TestRuntime
func (*TestRuntime) APIInstaller ¶ added in v2.10.9
func (r *TestRuntime) APIInstaller() customization.APIInstaller
func (*TestRuntime) APIServerAuthenticator ¶ added in v2.10.9
func (r *TestRuntime) APIServerAuthenticator() authn.Authenticator
func (*TestRuntime) APIWebServiceCustomize ¶ added in v2.10.9
func (r *TestRuntime) APIWebServiceCustomize() func(ws *restful.WebService) error
func (*TestRuntime) Access ¶ added in v2.10.9
func (r *TestRuntime) Access() core_runtime.Access
func (*TestRuntime) Config ¶ added in v2.10.9
func (r *TestRuntime) Config() kuma_cp.Config
func (*TestRuntime) EnvoyAdminClient ¶ added in v2.10.9
func (r *TestRuntime) EnvoyAdminClient() admin.EnvoyAdminClient
func (*TestRuntime) Extensions ¶ added in v2.10.9
func (r *TestRuntime) Extensions() context.Context
func (*TestRuntime) GetClusterId ¶ added in v2.10.9
func (r *TestRuntime) GetClusterId() string
func (*TestRuntime) GetInstanceId ¶ added in v2.10.9
func (r *TestRuntime) GetInstanceId() string
func (*TestRuntime) GlobalInsightService ¶ added in v2.10.9
func (r *TestRuntime) GlobalInsightService() globalinsight.GlobalInsightService
func (*TestRuntime) Metrics ¶ added in v2.10.9
func (r *TestRuntime) Metrics() metrics.Metrics
func (*TestRuntime) ReadOnlyResourceManager ¶ added in v2.10.9
func (r *TestRuntime) ReadOnlyResourceManager() core_manager.ReadOnlyResourceManager
func (*TestRuntime) ResourceManager ¶ added in v2.10.9
func (r *TestRuntime) ResourceManager() core_manager.ResourceManager
func (*TestRuntime) TokenIssuers ¶ added in v2.10.9
func (r *TestRuntime) TokenIssuers() tokens_builtin.TokenIssuers
Click to show internal directories.
Click to hide internal directories.