1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-23 02:26:49 -05:00
v2fly/features/extension/instance.go

22 lines
563 B
Go
Raw Normal View History

2021-06-28 15:58:56 -04:00
package extension
import (
"context"
2021-10-28 06:34:19 -04:00
"github.com/v2fly/v2ray-core/v5/features"
2021-06-28 15:58:56 -04:00
)
// InstanceManagement : unstable
type InstanceManagement interface {
features.Feature
ListInstance(ctx context.Context) ([]string, error)
AddInstance(ctx context.Context, name string, config []byte, configType string) error
StartInstance(ctx context.Context, name string) error
StopInstance(ctx context.Context, name string) error
UntrackInstance(ctx context.Context, name string) error
}
func InstanceManagementType() interface{} {
return (*InstanceManagement)(nil)
}