domain

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrImageNotFound = fmt.Errorf("image not found")

Functions

This section is empty.

Types

type Image

type Image struct {
	ID          string
	Name        string
	Size        int64
	SizeText    string
	NameDetails NameDetails
	VCS         *VCS
	Unknown     bool
	Languages   []*Language
	Frameworks  []*depexplorer.Framework
	DepFiles    map[depexplorer.DependencyManager]*depexplorer.File
	CreatedAt   time.Time
}

type Language

type Language struct {
	Name    string
	Version string
}

type NameDetails

type NameDetails struct {
	Name                string
	Version             string
	RegistryURL         string
	RegistryIsDockerHub bool
	Vendor              string
}

func (*NameDetails) IsLatest

func (d *NameDetails) IsLatest() bool

type Service

type Service struct {
	Name          string
	WebURL        string
	Status        string
	VCS           *VCS
	ContainerID   string
	Self          bool
	MemoryHistory *shared.MeasurementMetricBuffer
	CPUHistory    *shared.MeasurementMetricBuffer
	Image         NameDetails
}

func NewService

func NewService(metricDepth int, metricUnique bool) *Service

type ServiceStatus

type ServiceStatus struct {
	Name        string
	WebURL      string
	Status      string
	VCS         *VCS
	ContainerID string
	Self        bool
	Memory      *shared.MeasurementMetric
	CPU         *shared.MeasurementMetric
	Image       NameDetails
}

type VCS

type VCS struct {
	Type string
	URL  string
	Host string
}

type Volume

type Volume struct {
	Name      string
	Driver    string
	Size      *int64
	CreatedAt string
}

Jump to

Keyboard shortcuts

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