application

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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBInterface

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

DBInterface interface

type Info

type Info struct {
	ServiceName        string   `json:"serviceName"`
	ExecutableFileName string   `json:"executableFileName"`
	AllowedRequester   []string `json:"allowedRequester"`
	ExecType           string   `json:"execType"`
	ExecCmd            []string `json:"execCmd"`
}

Info struct

type Query

type Query struct {
}

Query struct

func (Query) Delete

func (Query) Delete(id string) error

Delete deletes the application info that matches service name

func (Query) Get

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

Get returns application info that matches service name

func (Query) GetList

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

GetList returns the list of application info

func (Query) Set

func (Query) Set(info Info) error

Set sets the application 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