expose

package
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagementClient

type ManagementClient interface {
	CreateExpose(ctx context.Context, req mgm.ExposeRequest) (*mgm.ExposeResponse, error)
	RenewExpose(ctx context.Context, domain string) error
	StopExpose(ctx context.Context, domain string) error
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles expose session lifecycle via the management client.

func NewManager

func NewManager(ctx context.Context, mgmClient ManagementClient) *Manager

NewManager creates a new expose Manager using the given management client.

func (*Manager) Expose

func (m *Manager) Expose(ctx context.Context, req Request) (*Response, error)

Expose creates a new expose session via the management server.

func (*Manager) KeepAlive

func (m *Manager) KeepAlive(ctx context.Context, domain string) error

type Request

type Request struct {
	NamePrefix string
	Domain     string
	Port       uint16
	Protocol   int
	Pin        string
	Password   string
	UserGroups []string
}

func NewRequest

func NewRequest(req *daemonProto.ExposeServiceRequest) *Request

NewRequest converts a daemon ExposeServiceRequest to a management ExposeServiceRequest.

type Response

type Response struct {
	ServiceName string
	ServiceURL  string
	Domain      string
}

Response holds the response from exposing a service.

Jump to

Keyboard shortcuts

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