ccgo

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ccgo holds the Go translation of the C engine's portable core (lib/plugin core_sources: the wire rules, validators, endpoint, package and frame checks, and the guest engine) and the calls into it. The translation is generated, one file per platform, by the tools module next to this directory; see ../../../README.md.

Index

Constants

View Source
const Available = false

Available is false where no translation has been generated for the platform.

View Source
const HostAvailable = false

HostAvailable is false where no translation of the host has been generated for the platform.

Variables

This section is empty.

Functions

func Call

func Call(string, []byte) ([]byte, error)

Call reports plugin.ErrUnsupported: this platform has no translation.

Types

type InstanceLease

type InstanceLease[T any] struct {
	Value    T
	Revision string
}

InstanceLease is unavailable on this platform.

func (*InstanceLease[T]) Release

func (*InstanceLease[T]) Release() error

type Instances

type Instances[T any] struct{}

Instances is unavailable on this platform: NewInstances reports plugin.ErrUnsupported.

func NewInstances

func NewInstances[T any](instancepkg.Options[T]) (*Instances[T], error)

NewInstances reports plugin.ErrUnsupported: this platform has no translation of the host.

func (*Instances[T]) Acquire

func (*Instances[T]) Acquire(string) (*InstanceLease[T], error)

func (*Instances[T]) Close

func (*Instances[T]) Close(context.Context) error

func (*Instances[T]) Configure

func (*Instances[T]) Remove

func (*Instances[T]) Remove(string) error

type LaunchOptions

type LaunchOptions struct {
	ProcessOptions
	// Directory is the child's working directory; empty inherits the host's. It must be absolute.
	Directory string
	// StderrBytes bounds the retained stderr; zero retains 4096 bytes.
	StderrBytes int
}

LaunchOptions starts a reviewed executable the way an installed package is run: like ProcessOptions, but with a working directory, bounded capture of the child's stderr and a scrubbed base environment of PATH. The environment entries are added to it (an entry named PATH replaces it). Executable must be the absolute path of a regular file.

type ProcessOptions

type ProcessOptions struct {
	Executable             string
	Arguments, Environment []string
}

ProcessOptions launches a reviewed executable directly, without a shell. Environment is explicit and never inherits the embedding process environment.

type Session

type Session struct{}

Session is unavailable on this platform: every constructor reports plugin.ErrUnsupported.

func Open

Open reports plugin.ErrUnsupported: this platform has no translation of the host.

func OpenProcess

OpenProcess reports plugin.ErrUnsupported: this platform has no translation of the host.

func (*Session) Abort

func (*Session) Abort() error

func (*Session) Close

func (*Session) Close(context.Context) error

func (*Session) Descriptor

func (*Session) Descriptor() plugin.Descriptor

func (*Session) Done

func (*Session) Done() <-chan struct{}

func (*Session) DrainContext

func (*Session) DrainContext(context.Context) error

func (*Session) State

func (*Session) State() plugin.State

func (*Session) Stderr

func (*Session) Stderr() string

Jump to

Keyboard shortcuts

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