Documentation
¶
Overview ¶
Package ops serves the operator API on the tunnel SNI: this boot's logs with resume cursors, a status summary, and the policy. The TLS layer has already verified the client certificate against the client CA; here its SPIFFE role decides what it may do. Operators (ops/<name>) may do everything; log readers (logs/<name>) may read logs, status, and the policy; dark nodes (node/<name>) may do nothing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyFunc ¶
ApplyFunc stores and applies a policy.yml body. A *config.InvalidError is the body's fault.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
New serves cfg's logs and status. policy is the policy.yml cfg was parsed with, as stored.
func (*Handler) SetApply ¶
SetApply registers the policy PUT. reboot runs after the response is flushed when the change cannot be applied in place.
func (*Handler) SetConfig ¶
SetConfig swaps the config later requests see, so status follows a policy applied in place.
func (*Handler) SetMetrics ¶ added in v0.3.0
SetMetrics registers what /~!ops/metrics writes after the build and boot time.