images

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type CheckImageUpdatesRequest

type CheckImageUpdatesRequest struct {
	RegistryCredentials []RegistryCredential `json:"registry_credentials,omitempty"`
	DisabledRegistries  []string             `json:"disabled_registries,omitempty"`
}

type CheckImageUpdatesResponse

type CheckImageUpdatesResponse struct {
	Results []ContainerImageCheckResult `json:"results"`
}

type ContainerImageCheckResult

type ContainerImageCheckResult struct {
	StackName         string `json:"stack_name"`
	ContainerName     string `json:"container_name"`
	ImageName         string `json:"image_name"`
	CurrentRepoDigest string `json:"current_repo_digest"`
	LatestRepoDigest  string `json:"latest_repo_digest"`
	Error             string `json:"error,omitempty"`
}

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type Handler

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

func NewHandler

func NewHandler(service *Service) *Handler

func (*Handler) CheckImageUpdates

func (h *Handler) CheckImageUpdates(c echo.Context) error

type RegistryCredential

type RegistryCredential struct {
	Registry     string `json:"registry"`
	Username     string `json:"username"`
	Password     string `json:"password"`
	StackPattern string `json:"stack_pattern"`
	ImagePattern string `json:"image_pattern"`
}

type Service

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

func NewService

func NewService(cfg *config.Config, dockerClient *docker.Client, stackService *stack.Service, logger *logging.Logger) *Service

func (*Service) CheckImageUpdates

func (s *Service) CheckImageUpdates(ctx context.Context, credentials []RegistryCredential, disabledRegistries []string) ([]ContainerImageCheckResult, error)

Jump to

Keyboard shortcuts

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