contract

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent added in v0.0.3

type Agent struct {
	Host     string `json:"host"`
	Username string `json:"username"`
}

type Copy

type Copy struct {
	From Path `yaml:"from" json:"from"`
	To   Path `yaml:"to" json:"to"`
}

type EnumRemote added in v0.0.3

type EnumRemote struct {
	Type TypeRemote
	Data unsafe.Pointer
}

func (EnumRemote) MarshalJSON added in v0.0.3

func (remote EnumRemote) MarshalJSON() (buffer []byte, err error)

type EnumScript added in v0.0.3

type EnumScript struct {
	Type TypeScript
	Data unsafe.Pointer
}

func (EnumScript) MarshalJSON added in v0.0.3

func (script EnumScript) MarshalJSON() (buffer []byte, err error)

type Execute added in v0.0.2

type Execute struct {
	Path        Path     `yaml:"path" json:"path"`
	Environment []string `yaml:"environment" json:"environment"`
	Query       []string `yaml:"query" json:"query"`
}

type Item added in v0.0.3

type Item struct {
	Type   string   `yaml:"type" json:"type"`
	Name   string   `yaml:"name" json:"name"`
	Follow []string `yaml:"follow" json:"follow"`
}

type ItemRemote added in v0.0.3

type ItemRemote struct {
	Item
	EnumRemote
}

func (ItemRemote) MarshalJSON added in v0.0.3

func (remote ItemRemote) MarshalJSON() (buffer []byte, err error)

func (*ItemRemote) UnmarshalJSON added in v0.0.3

func (remote *ItemRemote) UnmarshalJSON(buffer []byte) error

func (*ItemRemote) UnmarshalYAML added in v0.0.3

func (remote *ItemRemote) UnmarshalYAML(node *yaml.Node) error

type ItemScript added in v0.0.3

type ItemScript struct {
	Item
	EnumScript
}

func (ItemScript) MarshalJSON added in v0.0.3

func (script ItemScript) MarshalJSON() (buffer []byte, err error)

func (*ItemScript) UnmarshalJSON added in v0.0.3

func (script *ItemScript) UnmarshalJSON(buffer []byte) error

func (*ItemScript) UnmarshalYAML added in v0.0.3

func (script *ItemScript) UnmarshalYAML(node *yaml.Node) error

type Move added in v0.0.2

type Move struct {
	From Path `yaml:"from" json:"from"`
	To   Path `yaml:"to" json:"to"`
}

type Path

type Path struct {
	Path   string `json:"path"`
	Remote string `json:"remote"`
}

type Root added in v0.0.3

type Root struct {
	Remote []ItemRemote `yaml:"remote" json:"remote"`
	Script []ItemScript `yaml:"script" json:"script"`
}

type TypeRemote added in v0.0.3

type TypeRemote int
const (
	RemoteUnknown TypeRemote = iota
	RemoteAgent
)

type TypeScript added in v0.0.3

type TypeScript int
const (
	ScriptUnknown TypeScript = iota
	ScriptCopy
	ScriptMove
	ScriptExecute
)

Jump to

Keyboard shortcuts

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