Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagementClient ¶
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.
type ProtocolType ¶ added in v0.67.2
type ProtocolType int
ProtocolType represents the protocol used for exposing a service.
const ( // ProtocolHTTP exposes the service as HTTP. ProtocolHTTP ProtocolType = 0 // ProtocolHTTPS exposes the service as HTTPS. ProtocolHTTPS ProtocolType = 1 // ProtocolTCP exposes the service as TCP. ProtocolTCP ProtocolType = 2 // ProtocolUDP exposes the service as UDP. ProtocolUDP ProtocolType = 3 // ProtocolTLS exposes the service as TLS. ProtocolTLS ProtocolType = 4 )
func ParseProtocolType ¶ added in v0.67.2
func ParseProtocolType(s string) (ProtocolType, error)
ParseProtocolType parses a protocol string into a ProtocolType.
type Request ¶
type Request struct {
NamePrefix string
Domain string
Port uint16
Protocol ProtocolType
Pin string
Password string
UserGroups []string
ListenPort uint16
}
Request holds the parameters for exposing a local service via the management server. It is part of the embed API surface and exposed via a type alias.
func NewRequest ¶
func NewRequest(req *daemonProto.ExposeServiceRequest) *Request
NewRequest converts a daemon ExposeServiceRequest to a management ExposeServiceRequest.
Click to show internal directories.
Click to hide internal directories.