system

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ID is the key for Id
	ID = "id"
	// Platform is the key for platform
	Platform = "platform"
	// ExecType is key for execution type
	ExecType = "execType"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DBInterface

type DBInterface interface {
	Get(name string) (Info, error)
	Set(info Info) error
	Delete(name string) error
}

DBInterface interface

type Info added in v1.1.0

type Info struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Info struct

type Query

type Query struct {
}

Query struct

func (Query) Delete

func (Query) Delete(name string) error

Delete delets the system info that matches name

func (Query) Get

func (Query) Get(name string) (Info, error)

Get returns the system info for given name

func (Query) Set

func (Query) Set(info Info) error

Set sets the system info

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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