controller

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package controller is the Controller page: the runners and clients the controller trusts, its trees, and the secrets and values set at each location, read through Corbie's packages and changed with its corbie controller commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c Config) http.Handler

New gives the Controller page.

Types

type Config

type Config struct {
	Controller *identity.Identity
	Store      store.Store
	Command    page.Command
	Interval   time.Duration
	// Changed gives a channel closed at the next change the UI makes or
	// reads in the store, so the page is sent it at once.
	Changed func() <-chan struct{}
	Shell   page.Shell
}

Config is what the Controller page is given: the controller, its store, how a command runs, how often the store is read, and the shell every page shares.

type Parts

type Parts struct {
	Parties  []party   `json:"parties"`
	Settings []setting `json:"settings"`
}

Parts are the parts of the Controller page.

Jump to

Keyboard shortcuts

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