parser

package
v0.0.0-...-09a0bf3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RScript

type RScript struct {
	SchemaVersion uint              `yaml:"schema_version"`
	Variables     map[string]string `yaml:"variables,omitempty"`
	Commands      []string          `yaml:"commands"`
	DefaultConfig defaultConfig     `yaml:"default,omitempty"`
	Remotes       []Remote          `yaml:"remotes"`
}

func ParseWithBytes

func ParseWithBytes(fileData []byte) (*RScript, error)

func ParseWithPath

func ParseWithPath(path string) (*RScript, error)

type Remote

type Remote struct {
	AddrPort netip.AddrPort `yaml:"-"`
	AddrStr  string         `yaml:"ip"`
	Username string         `yaml:"username,omitempty"`
	Password string         `yaml:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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