13 lines
434 B
Go
13 lines
434 B
Go
package link
|
|
|
|
import "context"
|
|
|
|
// Signer is whatever holds the control plane's signing key.
|
|
type Signer interface {
|
|
Sign(ctx context.Context, message []byte) ([]byte, error)
|
|
}
|
|
|
|
// ActingGate is what every act passes before it is made (novox/hq to-be 45 §6): whether this process may act under the
|
|
// controller's lease. Set by the controller; nil passes every act — a test, a tool.
|
|
var ActingGate func(ctx context.Context) error
|