adaptor

package
v0.0.0-...-485624d Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCreateInstance

func ErrCreateInstance(err error) error

ErrCreateInstance is the error for install mesh

Types

type Handler

type Handler interface {
	GetName() string
	CreateInstance([]byte, string) error
	ApplyOperation() error
	ListOperations() (Operations, error)
	Stream() error
}

Handler provides the methods supported by the adaptor

func New

New initializes email handler.

type Operation

type Operation struct {
	Type       string            `json:"type,omitempty"`
	Properties map[string]string `json:"properties,omitempty"`
}

Operation holds the informormation for list of operations

type Operations

type Operations map[string]*Operation

Operations hold a map of Operation objects

type Spec

type Spec struct {
	Name    string `json:"name"`
	Status  string `json:"status"`
	Version string `json:"version"`
}

Spec holds the specifications for <adaptor-name> adaptor

Jump to

Keyboard shortcuts

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