tm

package
v0.0.0-...-0dca507 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Cleanup = 10 * time.Minute

Cleanup period for cache.

View Source
const Expiration = 5 * time.Minute

Expiration period for cache.

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 Service

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

Service is way for connecting with tm service.

func New

func New(url string) Service

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

func (Service) Delete

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

Delete deletes thing by name.

func (Service) List

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

List lists existing things.

func (Service) Show

func (tm Service) 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