Documentation
¶
Index ¶
- type Chmod
- type Chown
- type Command
- type Directory
- type File
- type FileContent
- type FileLocalCached
- type IptablesAllowForward
- type IptablesAllowInput
- type ServiceName
- type ServiceStart
- type ServiceStop
- type SystemCtl
- func (s *SystemCtl) ServiceDisable(ctx context.Context) error
- func (s *SystemCtl) ServiceDisabled(ctx context.Context) (bool, error)
- func (s *SystemCtl) ServiceEnable(ctx context.Context) error
- func (s *SystemCtl) ServiceEnabled(ctx context.Context) (bool, error)
- func (s *SystemCtl) ServiceNotRunning(ctx context.Context) (bool, error)
- func (s *SystemCtl) ServiceRunning(ctx context.Context) (bool, error)
- func (s *SystemCtl) StartService(ctx context.Context) error
- func (s *SystemCtl) StopService(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type FileContent ¶
type FileLocalCached ¶
type FileLocalCached struct {
SSH *ssh.SSH
Path file.HasPath
LocalPath file.HasPath
Content content.HasContent
User file.User
Group file.Group
Perm file.Perm
}
func (*FileLocalCached) Children ¶
func (f *FileLocalCached) Children(ctx context.Context) (world.Configurations, error)
type IptablesAllowForward ¶
func (*IptablesAllowForward) Apply ¶
func (i *IptablesAllowForward) Apply(ctx context.Context) error
type IptablesAllowInput ¶
type IptablesAllowInput struct {
SSH *ssh.SSH
Port network.Port
PortRange *network.PortRange
Protocol network.Protocol
}
type ServiceName ¶
type ServiceName string
func (ServiceName) String ¶
func (s ServiceName) String() string
type ServiceStart ¶
type ServiceStart struct {
SSH *ssh.SSH
Name ServiceName
}
type ServiceStop ¶
type ServiceStop struct {
SSH *ssh.SSH
Name ServiceName
}
type SystemCtl ¶
type SystemCtl struct {
SSH *ssh.SSH
Name ServiceName
}
func (*SystemCtl) ServiceDisabled ¶
func (*SystemCtl) ServiceEnabled ¶
func (*SystemCtl) ServiceNotRunning ¶
func (*SystemCtl) ServiceRunning ¶
Click to show internal directories.
Click to hide internal directories.