Documentation
¶
Index ¶
- type EdgeManager
- func (m *EdgeManager) AddProvider(config *types.ProviderConfig) error
- func (m *EdgeManager) CompileToWASM(ctx context.Context, req *types.CompilationRequest) (*types.CompilationResponse, error)
- func (m *EdgeManager) Deploy(ctx context.Context, providerName string, req *types.DeployRequest) (*types.DeployResponse, error)
- func (m *EdgeManager) DeployWithFallback(ctx context.Context, primaryProvider string, req *types.DeployRequest) (*types.DeployResponse, error)
- func (m *EdgeManager) GetDeployment(ctx context.Context, providerName string, req *types.GetDeploymentRequest) (*types.DeploymentInfo, error)
- func (m *EdgeManager) GetLogs(ctx context.Context, providerName string, req *types.GetLogsRequest) (*types.LogsResponse, error)
- func (m *EdgeManager) GetMetrics(ctx context.Context, providerName string, req *types.GetMetricsRequest) (*types.MetricsResponse, error)
- func (m *EdgeManager) GetProvider(name string) (types.EdgeProvider, error)
- func (m *EdgeManager) GetProviderStats(providerName string) (*types.ProviderStats, error)
- func (m *EdgeManager) GetStats() map[string]*types.ProviderStats
- func (m *EdgeManager) GetSupportedRegions(ctx context.Context) (map[string][]string, error)
- func (m *EdgeManager) GetSupportedRuntimes(ctx context.Context) (map[string][]string, error)
- func (m *EdgeManager) HealthCheck(ctx context.Context) (map[string]*types.HealthStatus, error)
- func (m *EdgeManager) Invoke(ctx context.Context, providerName string, req *types.InvokeRequest) (*types.InvokeResponse, error)
- func (m *EdgeManager) InvokeWithFallback(ctx context.Context, primaryProvider string, req *types.InvokeRequest) (*types.InvokeResponse, error)
- func (m *EdgeManager) ListDeployments(ctx context.Context, providerName string) ([]*types.DeploymentInfo, error)
- func (m *EdgeManager) ListProviders() []string
- func (m *EdgeManager) RemoveProvider(name string) error
- func (m *EdgeManager) SetWASMRuntime(runtime types.WASMRuntime)
- func (m *EdgeManager) Undeploy(ctx context.Context, providerName string, req *types.UndeployRequest) error
- func (m *EdgeManager) Update(ctx context.Context, providerName string, req *types.UpdateRequest) (*types.UpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EdgeManager ¶
type EdgeManager struct {
// contains filtered or unexported fields
}
EdgeManager manages multiple edge computing providers
func (*EdgeManager) AddProvider ¶
func (m *EdgeManager) AddProvider(config *types.ProviderConfig) error
AddProvider adds a new edge provider
func (*EdgeManager) CompileToWASM ¶
func (m *EdgeManager) CompileToWASM(ctx context.Context, req *types.CompilationRequest) (*types.CompilationResponse, error)
CompileToWASM compiles source code to WASM using the WASM runtime
func (*EdgeManager) Deploy ¶
func (m *EdgeManager) Deploy(ctx context.Context, providerName string, req *types.DeployRequest) (*types.DeployResponse, error)
Deploy deploys a microservice to a specific provider
func (*EdgeManager) DeployWithFallback ¶
func (m *EdgeManager) DeployWithFallback(ctx context.Context, primaryProvider string, req *types.DeployRequest) (*types.DeployResponse, error)
DeployWithFallback deploys with automatic fallback to other providers
func (*EdgeManager) GetDeployment ¶
func (m *EdgeManager) GetDeployment(ctx context.Context, providerName string, req *types.GetDeploymentRequest) (*types.DeploymentInfo, error)
GetDeployment returns deployment information from a specific provider
func (*EdgeManager) GetLogs ¶
func (m *EdgeManager) GetLogs(ctx context.Context, providerName string, req *types.GetLogsRequest) (*types.LogsResponse, error)
GetLogs retrieves logs from a deployment on a specific provider
func (*EdgeManager) GetMetrics ¶
func (m *EdgeManager) GetMetrics(ctx context.Context, providerName string, req *types.GetMetricsRequest) (*types.MetricsResponse, error)
GetMetrics retrieves metrics from a deployment on a specific provider
func (*EdgeManager) GetProvider ¶
func (m *EdgeManager) GetProvider(name string) (types.EdgeProvider, error)
GetProvider returns a provider by name
func (*EdgeManager) GetProviderStats ¶
func (m *EdgeManager) GetProviderStats(providerName string) (*types.ProviderStats, error)
GetProviderStats returns statistics for a specific provider
func (*EdgeManager) GetStats ¶
func (m *EdgeManager) GetStats() map[string]*types.ProviderStats
GetStats returns statistics for all providers
func (*EdgeManager) GetSupportedRegions ¶
GetSupportedRegions returns supported regions for all providers
func (*EdgeManager) GetSupportedRuntimes ¶
GetSupportedRuntimes returns supported runtimes for all providers
func (*EdgeManager) HealthCheck ¶
func (m *EdgeManager) HealthCheck(ctx context.Context) (map[string]*types.HealthStatus, error)
HealthCheck checks the health of all providers
func (*EdgeManager) Invoke ¶
func (m *EdgeManager) Invoke(ctx context.Context, providerName string, req *types.InvokeRequest) (*types.InvokeResponse, error)
Invoke invokes a deployed function on a specific provider
func (*EdgeManager) InvokeWithFallback ¶
func (m *EdgeManager) InvokeWithFallback(ctx context.Context, primaryProvider string, req *types.InvokeRequest) (*types.InvokeResponse, error)
InvokeWithFallback invokes with automatic fallback to other providers
func (*EdgeManager) ListDeployments ¶
func (m *EdgeManager) ListDeployments(ctx context.Context, providerName string) ([]*types.DeploymentInfo, error)
ListDeployments lists all deployments from a specific provider
func (*EdgeManager) ListProviders ¶
func (m *EdgeManager) ListProviders() []string
ListProviders returns a list of all provider names
func (*EdgeManager) RemoveProvider ¶
func (m *EdgeManager) RemoveProvider(name string) error
RemoveProvider removes an edge provider
func (*EdgeManager) SetWASMRuntime ¶
func (m *EdgeManager) SetWASMRuntime(runtime types.WASMRuntime)
SetWASMRuntime sets the WASM runtime for compilation
func (*EdgeManager) Undeploy ¶
func (m *EdgeManager) Undeploy(ctx context.Context, providerName string, req *types.UndeployRequest) error
Undeploy removes a deployment from a specific provider
func (*EdgeManager) Update ¶
func (m *EdgeManager) Update(ctx context.Context, providerName string, req *types.UpdateRequest) (*types.UpdateResponse, error)
Update updates a deployment on a specific provider