devhost

package
v0.0.77 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DevHostFilename = "devhost.textpb"

Variables

View Source
var HasRuntime func(string) bool

Functions

func Delete

func Delete(ctx context.Context, root *parsing.Root) error

Delete deletes the devhost filename. We gracefully handle the case where the file does not exist and return errors only if we fail to remove a valid file.

func FormatPlatform

func FormatPlatform(platform specs.Platform) string

func FormatPlatforms

func FormatPlatforms(platforms []specs.Platform) []string

func HostOnlyFiles

func HostOnlyFiles() []string

func MakeConfiguration

func MakeConfiguration(messages ...proto.Message) (*schema.DevHost_ConfigureEnvironment, error)

func ParsePlatform

func ParsePlatform(str string) (specs.Platform, error)

func PlatformToProto

func PlatformToProto(s specs.Platform) *schema.Platform

func Prepare

func Prepare(ctx context.Context, root *parsing.Root) error

func ProtoToPlatform

func ProtoToPlatform(p *schema.Platform) specs.Platform

func RewriteWith

func RewriteWith(ctx context.Context, fsys fnfs.ReadWriteFS, filename string, devhost *schema.DevHost) error

func RuntimePlatform

func RuntimePlatform() specs.Platform

func Update

func Update(devHost *schema.DevHost, confs ...*schema.DevHost_ConfigureEnvironment) (*schema.DevHost, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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