sysos

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const Name = "system/os"

Name identifies this service for MCP routing.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetEnvInput

type GetEnvInput struct {
	Names []string `json:"names" description:"Names of environment variables to read"`
}

GetEnvInput specifies environment variable names to read.

type GetEnvOutput

type GetEnvOutput struct {
	Values map[string]string `json:"values"`
}

GetEnvOutput returns values for variables that exist.

type Service

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

Service exposes OS-related helper functions.

func New

func New() *Service

New creates a new Service instance.

func (*Service) CacheableMethods added in v0.1.7

func (s *Service) CacheableMethods() map[string]bool

CacheableMethods declares which methods produce cacheable outputs.

func (*Service) Method

func (s *Service) Method(name string) (svc.Executable, error)

Method maps a method name to its executable implementation.

func (*Service) Methods

func (s *Service) Methods() svc.Signatures

Methods returns supported method signatures.

func (*Service) Name

func (s *Service) Name() string

Name returns the service name.

Jump to

Keyboard shortcuts

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