target

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerTarget

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

func NewDockerTarget

func NewDockerTarget(name string, apiKey string) *DockerTarget

func (*DockerTarget) Endpoint

func (d *DockerTarget) Endpoint() string

func (*DockerTarget) Image

func (d *DockerTarget) Image() string

func (*DockerTarget) Name

func (d *DockerTarget) Name() string

func (*DockerTarget) Port

func (d *DockerTarget) Port() int

func (*DockerTarget) ResourceStats

func (d *DockerTarget) ResourceStats(ctx context.Context) (*Stats, error)

func (*DockerTarget) Start

func (d *DockerTarget) Start(ctx context.Context) error

func (*DockerTarget) Stop

func (d *DockerTarget) Stop(ctx context.Context) error

type NativeTarget

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

func NewNativeTarget

func NewNativeTarget(port int) *NativeTarget

func (*NativeTarget) Endpoint

func (n *NativeTarget) Endpoint() string

func (*NativeTarget) Name

func (n *NativeTarget) Name() string

func (*NativeTarget) ResourceStats

func (n *NativeTarget) ResourceStats(ctx context.Context) (*Stats, error)

func (*NativeTarget) Start

func (n *NativeTarget) Start(ctx context.Context) error

func (*NativeTarget) Stop

func (n *NativeTarget) Stop(ctx context.Context) error

type Stats

type Stats struct {
	MemoryMB float64
	CPUPct   float64
}

type Target

type Target interface {
	Name() string
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
	Endpoint() string
	ResourceStats(ctx context.Context) (*Stats, error)
}

Jump to

Keyboard shortcuts

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