command

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	Command   string    `json:"command"`
	Status    string    `json:"status"`
	PID       int       `json:"pid"`
	StartedAt time.Time `json:"started_at"`
}

func NewCommand

func NewCommand(PID int, name, status, command string) *Command

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *Store

func (*Store) Delete

func (s *Store) Delete(name string) error

func (*Store) List

func (s *Store) List() ([]*Command, error)

func (*Store) ListRunning

func (s *Store) ListRunning() ([]*Command, error)

func (*Store) ListRunningByNames

func (s *Store) ListRunningByNames(names []string) []*Command

func (*Store) Save

func (s *Store) Save(c *Command) error

Jump to

Keyboard shortcuts

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