sim

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: LGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultShsCaps = "1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s="

Variables

This section is empty.

Functions

func DoConnect

func DoConnect(src, dst *Puppet) error

func DoCreateHistoryStream

func DoCreateHistoryStream(p *Puppet, who string, n int, live bool) (string, error)

func DoDisconnect

func DoDisconnect(src, dst *Puppet) error

func DoFollow

func DoFollow(srcPuppet, dstPuppet *Puppet, isFollow bool) error

func DoHast

func DoHast(src, dst *Puppet, seqno string) (string, error)

really bad Rammstein pun, sorry (absolutely not sorry)

func DoIsFollowing

func DoIsFollowing(srcPuppet, dstPuppet *Puppet) error

func DoIsNotFollowing

func DoIsNotFollowing(srcPuppet, dstPuppet *Puppet) error

func DoLog

func DoLog(p *Puppet, n int) (string, error)

func DoPost

func DoPost(p *Puppet) error

func DoPublish

func DoPublish(p *Puppet, post map[string]interface{}) error

func DoWaitUntil

func DoWaitUntil(src, dst *Puppet, seqno string) (string, error)

func DoWhoami

func DoWhoami(p *Puppet) (string, error)

func Run

func Run(args Args, sbots []string)

Types

type Args

type Args struct {
	Caps        string // global caps setting
	Hops        int    // global hops setting
	FixturesDir string // directory containing the spliced ssb-fixtures
	Testfile    string // path to file containing sim statements
	Outdir      string // directory where puppet logs & files will be dumped
	BasePort    int    // starting port used for instantiating the ports used by puppets
	Verbose     bool   // produce more output when running (echoes puppet output in realtime, in addition to TAP assertions)
}

type FixturesFeedInfo

type FixturesFeedInfo struct {
	Folder string `json:"folder"`
	Latest int    `json:"latest"`
}

type Instruction

type Instruction struct {
	// contains filtered or unexported fields
}

func (Instruction) Print

func (instr Instruction) Print()

func (Instruction) TestAbort

func (instr Instruction) TestAbort(err error)

func (Instruction) TestFailure

func (instr Instruction) TestFailure(err error)

func (Instruction) TestSuccess

func (instr Instruction) TestSuccess()

type Latest

type Latest struct {
	ID       string
	Sequence int
	TS       int
}

type Process

type Process struct {
	// contains filtered or unexported fields
}

type Puppet

type Puppet struct {
	// contains filtered or unexported fields
}

func (Puppet) String

func (p Puppet) String() string

type Simulator

type Simulator struct {
	// contains filtered or unexported fields
}

func (Simulator) Abort

func (s Simulator) Abort(err error)

func (*Simulator) ParseTest

func (s *Simulator) ParseTest(lines []string)

type Sleeper

type Sleeper struct {
	// contains filtered or unexported fields
}

type TestError

type TestError struct {
	// contains filtered or unexported fields
}

TODO: convert all uses of testError to fmt.Errorf(msg + %w)

func (TestError) Error

func (t TestError) Error() string

func (TestError) Unwrap

func (t TestError) Unwrap() error

type Timer

type Timer struct {
	// contains filtered or unexported fields
}

type Whoami

type Whoami struct {
	ID refs.FeedRef
}

Jump to

Keyboard shortcuts

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