configuration

package
v1.1.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ID       string `json:"id"`
	Platform string `json:"platform"`
	ExecType string `json:"executionType"`
}

Configuration struct

type DBInterface

type DBInterface interface {
	Get(id string) (Configuration, error)
	GetList() ([]Configuration, error)
	Set(conf Configuration) error
	Update(conf Configuration) error
	Delete(id string) error
}

DBInterface interface

type Query

type Query struct {
}

Query struct

func (Query) Delete

func (Query) Delete(id string) error

Delete deletes configuration that matches id

func (Query) Get

func (Query) Get(id string) (Configuration, error)

Get returns configuration that matches id

func (Query) GetList

func (Query) GetList() ([]Configuration, error)

GetList returns the list of configuration

func (Query) Set

func (Query) Set(conf Configuration) error

Set sets the configuration for given id

func (Query) Update

func (Query) Update(conf Configuration) error

Update updates the configuration that matches id

Directories

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

Jump to

Keyboard shortcuts

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