adapter

package
v0.0.0-...-ccbff5b Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateServices(*bytes.Buffer) ([]Service, error)
	GetService(string) (Service, error)
	DeleteService(string) error
	FetchMetadata() (interface{}, error)
}

Client is the interface representing all the use cases required to interact with an adapter.

func MakeClient

func MakeClient(ep string) Client

MakeClient returns a Client connected with the adapter.

type Service

type Service struct {
	ID          string `json:"id"`
	ActualState string `json:"actualState"`
}

Service is the representation of the entity coming back from the adapter.

Jump to

Keyboard shortcuts

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