controlplane

package
v0.0.0-...-06cc741 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: AGPL-3.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRiverClient

func CreateRiverClient(
	logger *slog.Logger,
	chunkRepo chunk.Repository,
	imgService image.Service,
	blobStore blob.S3Store,
	pool *pgxpool.Pool,
	checkpointTimeout time.Duration,
	statusCheckInterval time.Duration,
	nodeRepo node.Repository,
	jobClient job.Client,
	imagePlatform string,
) (*river.Client[pgx.Tx], error)

Types

type Config

type Config struct {
	ListenAddr                    string
	DBConnString                  string
	OCIRegistry                   string
	OCIRegistryUser               string
	OCIRegistryPass               string
	BaseImage                     string
	ImageCacheDir                 string
	ImagePlatform                 string
	CheckpointJobTimeout          time.Duration
	CheckpointStatusCheckInterval time.Duration
	Bucket                        string
	AccessKey                     string
	SecretKey                     string
	PresignedURLExpiry            time.Duration
	UsePathStyle                  bool
	OAuthClientID                 string
	OAuthIssuerURL                string
	APITokenIssuer                string
	APITokenExpiry                time.Duration
	APITokenSigningKey            string
}

type Server

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

func NewServer

func NewServer(logger *slog.Logger, cfg Config) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

func (*Server) Stop

func (s *Server) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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