Documentation ¶
Overview ¶
Package controlsocket defines the controlsocket worker, which exposes a Unix socket that the juju-controller charm can use to affect Juju state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold returns a Manifold that encapsulates the controlsocket worker.
Types ¶
type Logger ¶
type Logger interface { Errorf(string, ...any) Warningf(string, ...any) Infof(string, ...any) Debugf(string, ...any) Tracef(string, ...any) }
Logger represents the methods used by the worker to log information.
type ManifoldConfig ¶
type ManifoldConfig struct { StateName string Logger Logger NewWorker func(Config) (worker.Worker, error) SocketName string }
ManifoldConfig describes the dependencies required by the controlsocket worker.
func (ManifoldConfig) Validate ¶
func (cfg ManifoldConfig) Validate() error
Validate is called by start to check for bad configuration.
Click to show internal directories.
Click to hide internal directories.