Documentation
¶
Index ¶
- type Client
- type ClientOptions
- type Emitter
- type SSH
- type Service
- func (svc Service) Disable(ctx context.Context) error
- func (svc Service) Enable(ctx context.Context) error
- func (svc Service) Restart(ctx context.Context) error
- func (svc Service) Start(ctx context.Context) error
- func (svc Service) Status(ctx context.Context) (*Status, error)
- func (svc Service) Stop(ctx context.Context) error
- func (svc Service) Unit() Unit
- type ServiceFactory
- type Status
- type Unit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type ClientOptions ¶
func ConfigureSSH ¶
func ConfigureSSH(provider config.Provider) (*ClientOptions[SSH], error)
type Emitter ¶
func NewEmitter ¶
func NewEmitter(services *ServiceFactory, logger *slog.Logger) (Emitter, error)
type SSH ¶
type ServiceFactory ¶
type ServiceFactory struct {
// contains filtered or unexported fields
}
func NewServiceFactory ¶
func NewServiceFactory(opts *ClientOptions[SSH]) *ServiceFactory
func (ServiceFactory) Units ¶
func (f ServiceFactory) Units() []Unit
type Status ¶
type Status int
const ( StatusActiveRunning Status = iota // active (running) StatusActiveExited // active (exited) StatusActiveWaiting // active (waiting) StatusInactive // inactive StatusEnabled // enabled StatusDisabled // disabled StatusFailed // failed StatusStatic // static StatusMasked // masked StatusAlias // alias StatusLinked // linked )
func (*Status) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.