client

package module
v0.0.0-...-f87157e Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: GPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message string `json:"message"`
	Code    int    `json:"code"`
}

Error represents project manager errors

func (Error) Error

func (e Error) Error() string

type TMService

type TMService struct {
	// contains filtered or unexported fields
}

TMService is way for connecting with tm service

func New

func New(url string) TMService

New creates new instance of PM but connection establishment does not happen here.

func (TMService) Delete

func (tm TMService) Delete(name string) (model.Thing, error)

Delete deletes thing by name

func (TMService) List

func (tm TMService) List() ([]model.Thing, error)

List lists existing things

func (TMService) Show

func (tm TMService) Show(name string) (model.Thing, error)

Show shows thing information by name

Jump to

Keyboard shortcuts

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