urbo

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve added in v0.5.0

func Serve(client keystone.HTTPClient, store *config.Store) http.Handler

Types

type Urbo

type Urbo struct {
	URL               *url.URL
	Username, Service string
	ScopeService      string
}

Keystone manages Requests to the Identity Manager

func New

func New(urboURL string, username, service, scopeService string) (*Urbo, error)

New Urbo client instance

func (*Urbo) DownloadPanel added in v0.3.2

func (u *Urbo) DownloadPanel(client keystone.HTTPClient, headers http.Header, slug string) (json.RawMessage, error)

DownloadPanel reads a single panel

func (*Urbo) GetVertical added in v0.4.4

func (u *Urbo) GetVertical(client keystone.HTTPClient, headers http.Header, slug string) (fiware.Vertical, error)

GetVerticals reads the list of verticals from Urbo

func (*Urbo) GetVerticals added in v0.3.2

func (u *Urbo) GetVerticals(client keystone.HTTPClient, headers http.Header) (map[string]fiware.Vertical, error)

GetVerticals reads the list of verticals from Urbo

func (*Urbo) Headers

func (u *Urbo) Headers(token string) http.Header

func (*Urbo) Login

func (u *Urbo) Login(client keystone.HTTPClient, password string, backoff keystone.Backoff) (string, error)

func (*Urbo) Panels

func (u *Urbo) Panels(client keystone.HTTPClient, headers http.Header) (map[string]fiware.UrboPanel, error)

Panels reads the list of panels from Urbo

func (*Urbo) PostVerticals added in v0.3.2

func (u *Urbo) PostVerticals(client keystone.HTTPClient, headers http.Header, verticals map[string]fiware.Vertical) error

PostVerticals reads the list of verticals from Urbo

func (*Urbo) UploadPanel added in v0.3.2

func (u *Urbo) UploadPanel(client keystone.HTTPClient, headers http.Header, panel json.RawMessage) error

DownloadPanel reads a single panel

Jump to

Keyboard shortcuts

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