c2test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTaskToC2PB

func ConvertTaskToC2PB(t *testing.T, ctx context.Context, task *ent.Task) *c2pb.Task

ConvertTaskToC2PB converts an *ent.Task to it's corresponding *c2pb.Task.

func New

func New(t *testing.T) (c2pb.C2Client, *ent.Client, func())

func NewRandomAssignedTask

func NewRandomAssignedTask(ctx context.Context, graph *ent.Client, beaconIdentifier string) *ent.Task

NewRandomAssignedTask generates a random task and assigns it to the provided beacon identifier.

func NewRandomBeacon

func NewRandomBeacon(ctx context.Context, graph *ent.Client) *ent.Beacon

NewRandomBeacon creates and returns a new randomized beacon.

Types

This section is empty.

Jump to

Keyboard shortcuts

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