Documentation
¶
Index ¶
- type Executor
- func (e *Executor) GetCurrentVPN(ctx context.Context) (entity.VPNService, error)
- func (e *Executor) GetDefaultNetworkInterface(ctx context.Context) (entity.NetworkInterface, error)
- func (e *Executor) GetNetworkInfoByNetworkService(ctx context.Context, networkService entity.NetworkService) (*entity.NetworkInfo, error)
- func (e *Executor) GetNetworkServiceByNetworkInterface(ctx context.Context, networkInterface entity.NetworkInterface) (entity.NetworkService, error)
- func (e *Executor) ListVPN(ctx context.Context) ([]entity.VPNService, error)
- func (e *Executor) OpenInFinder(ctx context.Context, path string) error
- func (e *Executor) SetNetworkAdditionalRoutes(ctx context.Context, network *entity.Network, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor() *Executor
func NewExecutorWithRunner ¶ added in v0.1.25
func NewExecutorWithRunner(cmdRunner usecase.CommandRunner) *Executor
func (*Executor) GetCurrentVPN ¶
func (*Executor) GetDefaultNetworkInterface ¶
func (*Executor) GetNetworkInfoByNetworkService ¶
func (e *Executor) GetNetworkInfoByNetworkService( ctx context.Context, networkService entity.NetworkService, ) (*entity.NetworkInfo, error)
func (*Executor) GetNetworkServiceByNetworkInterface ¶
func (e *Executor) GetNetworkServiceByNetworkInterface( ctx context.Context, networkInterface entity.NetworkInterface, ) (entity.NetworkService, error)
func (*Executor) OpenInFinder ¶
func (*Executor) SetNetworkAdditionalRoutes ¶
Click to show internal directories.
Click to hide internal directories.