rtypes

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IO

type IO struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
}

func StdIO

func StdIO(ctx context.Context) IO

type LocalMapping

type LocalMapping struct {
	// Relative to workspace root.
	LocalPath string `json:"local_path,omitempty"`
	// Absolute path within the host (overrides local_path).
	HostPath string `json:"host_path,omitempty"`
	// Must be an absolute path.
	ContainerPath string `json:"container_path,omitempty"`
}

type ProvisionInput

type ProvisionInput struct {
	Aliases []string // Proto full name.
	Message proto.Message
}

type ProvisionProps

type ProvisionProps struct {
	ProvisionInput  []ProvisionInput
	Invocation      []*schema.SerializedInvocation
	Extension       []*schema.DefExtension
	ServerExtension []*schema.ServerExtension
}

type RunBinaryOpts

type RunBinaryOpts struct {
	WorkingDir string
	Image      oci.Image
	Command    []string
	Args       []string
	Env        []*schema.BinaryConfig_EnvEntry
	RunAsUser  bool
}

type RunToolOpts

type RunToolOpts struct {
	PublicImageID        *oci.ImageID // If set, and runtime supports public images, `Image` is ignored.
	SupportedToolVersion int
	RunBinaryOpts
	IO
	ImageName    string
	MountAbsRoot string
	Mounts       []*LocalMapping
	AllocateTTY  bool
	NoNetworking bool // XXX remove, too specific.
}

Jump to

Keyboard shortcuts

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