agentdist

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package agentdist maps the exact server release to its immutable agent artifacts. It never derives a filesystem path from a request.

Index

Constants

View Source
const (
	BasePath       = "/agent-packages/"
	Checksums      = "checksums.txt"
	MaxPackageSize = 64 << 20
	MaxSumsSize    = 1 << 20
)

Variables

View Source
var (
	ErrNotFound = errors.New("agent artifact not found")
	Formats     = []string{"deb", "rpm", "tarball"}
	Arches      = []string{"amd64", "arm64"}
)

Functions

func IsNotFound

func IsNotFound(err error) bool

Types

type Artifact

type Artifact struct {
	Name   string
	Format string
	Arch   string
	Size   int64
	SHA256 string
}

type Store

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

func New

func New(dir, version string) *Store

func (*Store) Artifact

func (s *Store) Artifact(format, arch string) (Artifact, error)

func (*Store) Handler

func (s *Store) Handler() http.Handler

func (*Store) Manifest

func (s *Store) Manifest() ([]Artifact, error)

func (*Store) Name

func (s *Store) Name(format, arch string) (string, bool)

func (*Store) Version

func (s *Store) Version() string

Jump to

Keyboard shortcuts

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