inspect

package
v5.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package inspect implements the read-only operations that report on a project and its resources: ps, ls, top, port, volumes, events and viz.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	engine.Backend
}

Backend is what the operations need from the engine they report on.

type Service

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

Service runs the inspection operations on a Backend.

func New

func New(backend Backend) *Service

New creates a Service reporting on the given Backend.

func (*Service) Events

func (s *Service) Events(ctx context.Context, projectName string, options api.EventsOptions) error

func (*Service) List

func (s *Service) List(ctx context.Context, options api.ListOptions) ([]api.Stack, error)

func (*Service) Ports

func (s *Service) Ports(ctx context.Context, projectName string, serviceName string, port uint16, options api.PortOptions) (api.PortPublishers, error)

func (*Service) Ps

func (s *Service) Ps(ctx context.Context, projectName string, options api.PsOptions) ([]api.ContainerSummary, error)

func (*Service) Top

func (s *Service) Top(ctx context.Context, projectName string, services []string) ([]api.ContainerProcSummary, error)

func (*Service) Viz

func (s *Service) Viz(_ context.Context, project *types.Project, options api.VizOptions) (string, error)

func (*Service) Volumes

func (s *Service) Volumes(ctx context.Context, projectName string, options api.VolumesOptions) ([]api.VolumesSummary, error)

Jump to

Keyboard shortcuts

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