ports

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAll

func ReadAll(url string) ([]byte, error)

Types

type PortInfo

type PortInfo struct {
	ID            string
	SessionID     string
	RunID         string
	ContainerID   string
	ContainerPort int
	HostPort      int
	PreviewURL    string
	PID           int
	Status        string
	CreatedAt     string
	UpdatedAt     string
}

type Service

type Service struct {
	DB    *sql.DB
	Paths store.Paths
}

func (Service) Close

func (s Service) Close(portID string) error

func (Service) Expose

func (s Service) Expose(sessionID string, containerPort int) (PortInfo, error)

func (Service) Inspect

func (s Service) Inspect(portID string) (PortInfo, error)

func (Service) List

func (s Service) List() ([]PortInfo, error)

func (Service) Serve

func (s Service) Serve(portID string) error

Jump to

Keyboard shortcuts

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