command

package
v0.1.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (e *Executor) GetCurrentVPN(ctx context.Context) (entity.VPNService, error)

func (*Executor) GetDefaultNetworkInterface

func (e *Executor) GetDefaultNetworkInterface(ctx context.Context) (entity.NetworkInterface, error)

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) ListVPN

func (e *Executor) ListVPN(ctx context.Context) ([]entity.VPNService, error)

func (*Executor) OpenInFinder

func (e *Executor) OpenInFinder(ctx context.Context, path string) error

func (*Executor) SetNetworkAdditionalRoutes

func (e *Executor) SetNetworkAdditionalRoutes(
	ctx context.Context,
	network *entity.Network,
	networkHostSetupList []*entity.NetworkHostSetup,
) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL