localdutinfo

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: 9 Imported by: 0

Documentation

Overview

Package localdutinfo implements opening and closing a DUT's local dut info stored on local disk(e.g. on skylab drones).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	swmbot.LocalDUTState
	// contains filtered or unexported fields
}

Store holds a DUT's LocalDUTState and adds a Close method.

func Open

func Open(ctx context.Context, b *swmbot.Info, dutHostname string) (*Store, error)

Open loads the LocalDUTInfo for the DUT. The LocalDUTInfo should be closed afterward to write it back.

func (*Store) Close

func (s *Store) Close(ctx context.Context) error

Close writes the LocalDUTState back to disk. This method does nothing on subsequent calls. This method is safe to call on a nil pointer.

Jump to

Keyboard shortcuts

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