test

package
v0.0.0-...-98a7958 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAllHostsLabel

func AddAllHostsLabel(t *testing.T, ds kolide.Datastore)

func AddHostToCampaign

func AddHostToCampaign(t *testing.T, ds kolide.Datastore, campaignID, hostID uint)

func AddLabelToCampaign

func AddLabelToCampaign(t *testing.T, ds kolide.Datastore, campaignID, labelID uint)

func FunctionName

func FunctionName(f interface{}) string

FunctionName returns the name of the function provided as the argument. Behavior is undefined if a non-function is passed.

func NewHost

func NewHost(t *testing.T, ds kolide.Datastore, name, ip, key, uuid string, now time.Time) *kolide.Host

func NewPack

func NewPack(t *testing.T, ds kolide.Datastore, name string) *kolide.Pack

func NewQuery

func NewQuery(t *testing.T, ds kolide.Datastore, name, q string, authorID uint, saved bool) *kolide.Query

func NewScheduledQuery

func NewScheduledQuery(t *testing.T, ds kolide.Datastore, pid, qid, interval uint, snapshot, removed bool) *kolide.ScheduledQuery

func NewUser

func NewUser(t *testing.T, ds kolide.Datastore, name, username, email string, admin bool) *kolide.User

Types

This section is empty.

Jump to

Keyboard shortcuts

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