socket

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID = resourceid.ID[Socket]

type Socket

type Socket struct {
	// Unix
	HostPath string `json:"host_path,omitempty"`

	// IP
	HostProtocol string `json:"host_protocol,omitempty"`
	HostAddr     string `json:"host_addr,omitempty"`
}

func NewHostIPSocket added in v0.9.0

func NewHostIPSocket(proto string, addr string) *Socket

func NewHostUnixSocket added in v0.9.0

func NewHostUnixSocket(absPath string) *Socket

func (*Socket) Addr added in v0.9.0

func (socket *Socket) Addr() string

func (*Socket) Digest added in v0.8.8

func (socket *Socket) Digest() (digest.Digest, error)

func (*Socket) ID

func (socket *Socket) ID() (ID, error)

func (*Socket) IsHost

func (socket *Socket) IsHost() bool

func (*Socket) Network added in v0.9.0

func (socket *Socket) Network() string

func (*Socket) Server

func (socket *Socket) Server() (sshforward.SSHServer, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳