Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutor ¶
type CommandExecutor interface {
GetDefaultNetworkInterface(ctx context.Context) (entity.NetworkInterface, error)
GetNetworkServiceByNetworkInterface(
ctx context.Context,
networkInterface entity.NetworkInterface,
) (entity.NetworkService, error)
GetNetworkInfoByNetworkService(
ctx context.Context,
networkService entity.NetworkService,
) (*entity.NetworkInfo, error)
SetNetworkAdditionalRoutes(
ctx context.Context,
network *entity.Network,
networkHostSetupList []*entity.NetworkHostSetup,
) error
ListVPN(ctx context.Context) ([]entity.VPNService, error)
GetCurrentVPN(ctx context.Context) (entity.VPNService, error)
OpenInFinder(ctx context.Context, path string) error
}
type CommandRunner ¶ added in v0.1.25
type Network ¶
type Network interface {
Add(ctx context.Context, network *entity.Network) (*entity.Network, error)
List(ctx context.Context, filter *entity.ListNetworkFilter) ([]*entity.NetworkWithStatus, error)
Delete(ctx context.Context, id uint64) error
ListVPNServices(ctx context.Context) ([]entity.VPNService, error)
}
type NetworkHost ¶
type NetworkHost interface {
Add(ctx context.Context, networkHost *entity.NetworkHost) (*entity.NetworkHost, error)
List(ctx context.Context, filter *entity.ListNetworkHostFilter) ([]*entity.NetworkHost, error)
Delete(ctx context.Context, id uint64) error
ExportByNetworkIDForContext(
ctx context.Context,
networkID uint64,
) (*entity.NetworkHostContextExportPayload, error)
ImportByNetworkIDFromJSON(ctx context.Context, networkID uint64, jsonData string) error
}
type NetworkHostSetup ¶
type Update ¶
type Update interface {
CheckForUpdates() (*entity.UpdateInfo, error)
}
Click to show internal directories.
Click to hide internal directories.