controller

package
v0.139.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, config Config, runnerScaling scaling.RunnerScaling) error

Start the Controller. Blocks until the context is cancelled.

Types

type Call

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

type Config

type Config struct {
	Bind                         *url.URL            `help:"Socket to bind to." default:"http://localhost:8892" env:"FTL_CONTROLLER_BIND"`
	NoConsole                    bool                `help:"Disable the console."`
	Advertise                    *url.URL            `` /* 146-byte string literal not displayed */
	ConsoleURL                   *url.URL            `help:"The public URL of the console (for CORS)." env:"FTL_CONTROLLER_CONSOLE_URL"`
	AllowOrigins                 []*url.URL          `help:"Allow CORS requests to ingress endpoints from these origins." env:"FTL_CONTROLLER_ALLOW_ORIGIN"`
	ContentTime                  time.Time           `help:"Time to use for console resource timestamps." default:"${timestamp=1970-01-01T00:00:00Z}"`
	Key                          model.ControllerKey `help:"Controller key (auto)." placeholder:"C<ULID>" default:"C00000000000000000000000000"`
	DSN                          string              `` /* 127-byte string literal not displayed */
	RunnerTimeout                time.Duration       `help:"Runner heartbeat timeout." default:"10s"`
	DeploymentReservationTimeout time.Duration       `help:"Deployment reservation timeout." default:"120s"`
	ArtefactChunkSize            int                 `help:"Size of each chunk streamed to the client." default:"1048576"`
}

func (*Config) SetDefaults added in v0.19.0

func (c *Config) SetDefaults()

type ConsoleService

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

func NewConsoleService

func NewConsoleService(dal *dal.DAL) *ConsoleService

func (*ConsoleService) GetEvents added in v0.11.0

func (*ConsoleService) StreamEvents added in v0.11.0

type Service

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

func New

func New(ctx context.Context, db *dal.DAL, config Config, runnerScaling scaling.RunnerScaling) (*Service, error)

func (*Service) Call

func (*Service) Ping

func (*Service) ProcessList added in v0.14.0

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Service) UpdateDeploy

Directories

Path Synopsis
Package dal provides a data abstraction layer for the Controller
Package dal provides a data abstraction layer for the Controller
Package scheduledtask implements a task scheduler.
Package scheduledtask implements a task scheduler.
sql

Jump to

Keyboard shortcuts

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