freeduts

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package freeduts implements datastore access for caching free (removed) DUTs info.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context, duts []DUT) error

Add adds free DUTs to datastore.

func Remove

func Remove(ctx context.Context, duts []DUT) error

Remove removes free DUTs from datastore.

Types

type DUT

type DUT struct {
	ID         string `gae:"$id"`
	Hostname   string
	Bug        string `gae:",noindex"`
	Comment    string `gae:",noindex"`
	ExpireTime time.Time
	Model      string `gae:",noindex"`
	// contains filtered or unexported fields
}

DUT contains info about a free DUT.

func GetAll

func GetAll(ctx context.Context) ([]DUT, error)

GetAll returns all free DUTs in datastore.

Jump to

Keyboard shortcuts

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