remote

package
v0.0.0-...-9135743 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chmod

type Chmod struct {
	SSH *ssh.SSH

	Path file.HasPath
	Perm file.Perm
}

func (*Chmod) Apply

func (c *Chmod) Apply(ctx context.Context) error

func (*Chmod) Satisfied

func (c *Chmod) Satisfied(ctx context.Context) (bool, error)

func (*Chmod) Validate

func (c *Chmod) Validate(ctx context.Context) error

type Chown

type Chown struct {
	SSH *ssh.SSH

	Path  file.HasPath
	User  file.User
	Group file.Group
}

func (*Chown) Apply

func (c *Chown) Apply(ctx context.Context) error

func (*Chown) Satisfied

func (c *Chown) Satisfied(ctx context.Context) (bool, error)

func (*Chown) Validate

func (c *Chown) Validate(ctx context.Context) error

type Command

type Command struct {
	SSH *ssh.SSH

	Command string
}

func (*Command) Apply

func (f *Command) Apply(ctx context.Context) error

func (*Command) Satisfied

func (f *Command) Satisfied(ctx context.Context) (bool, error)

func (*Command) Validate

func (f *Command) Validate(ctx context.Context) error

type Directory

type Directory struct {
	SSH  *ssh.SSH
	Path file.HasPath
}

func (*Directory) Apply

func (d *Directory) Apply(ctx context.Context) error

func (*Directory) Satisfied

func (d *Directory) Satisfied(ctx context.Context) (bool, error)

func (*Directory) Validate

func (d *Directory) Validate(ctx context.Context) error

type File

type File struct {
	SSH     *ssh.SSH
	Path    file.HasPath
	Content content.HasContent
	User    file.User
	Group   file.Group
	Perm    file.Perm
}

func (*File) Applier

func (f *File) Applier() (world.Applier, error)

func (*File) Children

func (f *File) Children(ctx context.Context) (world.Configurations, error)

func (*File) Validate

func (f *File) Validate(ctx context.Context) error

type FileContent

type FileContent struct {
	SSH     *ssh.SSH
	Path    file.HasPath
	Content content.HasContent
}

func (*FileContent) Apply

func (f *FileContent) Apply(ctx context.Context) error

func (*FileContent) Satisfied

func (f *FileContent) Satisfied(ctx context.Context) (bool, error)

func (*FileContent) Validate

func (f *FileContent) Validate(ctx context.Context) error

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) Applier

func (f *FileLocalCached) Applier() (world.Applier, error)

func (*FileLocalCached) Children

func (*FileLocalCached) Validate

func (f *FileLocalCached) Validate(ctx context.Context) error

type IptablesAllowForward

type IptablesAllowForward struct {
	SSH *ssh.SSH
}

func (*IptablesAllowForward) Apply

func (i *IptablesAllowForward) Apply(ctx context.Context) error

func (*IptablesAllowForward) Satisfied

func (i *IptablesAllowForward) Satisfied(ctx context.Context) (bool, error)

func (*IptablesAllowForward) Validate

func (i *IptablesAllowForward) Validate(ctx context.Context) error

type IptablesAllowInput

type IptablesAllowInput struct {
	SSH       *ssh.SSH
	Port      network.Port
	PortRange *network.PortRange
	Protocol  network.Protocol
}

func (*IptablesAllowInput) Apply

func (i *IptablesAllowInput) Apply(ctx context.Context) error

func (*IptablesAllowInput) Satisfied

func (i *IptablesAllowInput) Satisfied(ctx context.Context) (bool, error)

func (*IptablesAllowInput) Validate

func (i *IptablesAllowInput) Validate(ctx context.Context) error

type ServiceName

type ServiceName string

func (ServiceName) String

func (s ServiceName) String() string

func (ServiceName) Validate

func (h ServiceName) Validate(ctx context.Context) error

type ServiceStart

type ServiceStart struct {
	SSH  *ssh.SSH
	Name ServiceName
}

func (*ServiceStart) Apply

func (s *ServiceStart) Apply(ctx context.Context) error

func (*ServiceStart) Satisfied

func (s *ServiceStart) Satisfied(ctx context.Context) (bool, error)

func (*ServiceStart) Validate

func (s *ServiceStart) Validate(ctx context.Context) error

type ServiceStop

type ServiceStop struct {
	SSH  *ssh.SSH
	Name ServiceName
}

func (*ServiceStop) Apply

func (s *ServiceStop) Apply(ctx context.Context) error

func (*ServiceStop) Satisfied

func (s *ServiceStop) Satisfied(ctx context.Context) (bool, error)

func (*ServiceStop) Validate

func (s *ServiceStop) Validate(ctx context.Context) error

type SystemCtl

type SystemCtl struct {
	SSH  *ssh.SSH
	Name ServiceName
}

func (*SystemCtl) ServiceDisable

func (s *SystemCtl) ServiceDisable(ctx context.Context) error

func (*SystemCtl) ServiceDisabled

func (s *SystemCtl) ServiceDisabled(ctx context.Context) (bool, error)

func (*SystemCtl) ServiceEnable

func (s *SystemCtl) ServiceEnable(ctx context.Context) error

func (*SystemCtl) ServiceEnabled

func (s *SystemCtl) ServiceEnabled(ctx context.Context) (bool, error)

func (*SystemCtl) ServiceNotRunning

func (s *SystemCtl) ServiceNotRunning(ctx context.Context) (bool, error)

func (*SystemCtl) ServiceRunning

func (s *SystemCtl) ServiceRunning(ctx context.Context) (bool, error)

func (*SystemCtl) StartService

func (s *SystemCtl) StartService(ctx context.Context) error

func (*SystemCtl) StopService

func (s *SystemCtl) StopService(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL