Documentation
¶
Index ¶
- type DockerTarget
- func (d *DockerTarget) Endpoint() string
- func (d *DockerTarget) Image() string
- func (d *DockerTarget) Name() string
- func (d *DockerTarget) Port() int
- func (d *DockerTarget) ResourceStats(ctx context.Context) (*Stats, error)
- func (d *DockerTarget) Start(ctx context.Context) error
- func (d *DockerTarget) Stop(ctx context.Context) error
- type NativeTarget
- type Stats
- type Target
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)
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)
Click to show internal directories.
Click to hide internal directories.