kuma

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOpInvalid = errors.New(errors.ErrOpInvalid, "Invalid operation")
)

Functions

func ErrClientConfig added in v0.2.0

func ErrClientConfig(err error) error

ErrClientConfig is the error for setting client config

func ErrClientSet added in v0.2.0

func ErrClientSet(err error) error

ErrPortForward is the error for setting clientset

func ErrConnectSmi added in v0.2.0

func ErrConnectSmi(err error) error

ErrConnectSmi is the error for streaming event

func ErrDeleteSmi added in v0.2.0

func ErrDeleteSmi(err error) error

ErrDeleteSmi is the error for streaming event

func ErrInstallMesh

func ErrInstallMesh(err error) error

ErrInstallMesh is the error for install mesh

func ErrInstallSmi added in v0.2.0

func ErrInstallSmi(err error) error

ErrInstallSmi is the error for streaming event

func ErrMeshConfig

func ErrMeshConfig(err error) error

ErrMeshConfig is the error for mesh config

func ErrPortForward

func ErrPortForward(err error) error

ErrPortForward is the error for mesh port forward

func ErrRunSmi added in v0.2.0

func ErrRunSmi(err error) error

ErrRunSmi is the error for streaming event

func ErrStreamEvent added in v0.2.0

func ErrStreamEvent(err error) error

ErrStreamEvent is the error for streaming event

Types

type ConformanceResponse added in v0.2.0

type ConformanceResponse struct {
	Tests    string                       `json:"tests,omitempty"`
	Failures string                       `json:"failures,omitempty"`
	Results  []*SingleConformanceResponse `json:"results,omitempty"`
	Status   string                       `json:"status,omitempty"`
}

ConformanceResponse holds the response object of the test

type Event added in v0.2.0

type Event struct {
	Operationid string `json:"operationid,omitempty"`
	EType       int32  `json:"type,string,omitempty"`
	Summary     string `json:"summary,omitempty"`
	Details     string `json:"details,omitempty"`
}

type Failure added in v0.2.0

type Failure struct {
	Text    string `json:"text,omitempty"`
	Message string `json:"message,omitempty"`
}

Failure is the failure response object

type Handler

type Handler interface {
	GetName() string
	CreateInstance([]byte, string, *chan interface{}) error
	ApplyOperation(context.Context, string, string, bool) error
	ListOperations() (Operations, error)

	StreamErr(*Event, error)
	StreamInfo(*Event)
}

Handler provides the methods supported by the adaptor

func New

New initializes email handler.

type MeshInstance

type MeshInstance struct {
	InstallMode     string `json:"installmode,omitempty"`
	InstallPlatform string `json:"installplatform,omitempty"`
	InstallZone     string `json:"installzone,omitempty"`
	InstallVersion  string `json:"installversion,omitempty"`
	MgmtAddr        string `json:"mgmtaddr,omitempty"`
	Kumaaddr        string `json:"kumaaddr,omitempty"`
}

MeshInstance holds the information of the instance of the mesh

type Operation

type Operation struct {
	Type       int32             `json:"type,string,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 SingleConformanceResponse added in v0.2.0

type SingleConformanceResponse struct {
	Name       string   `json:"name,omitempty"`
	Time       string   `json:"time,omitempty"`
	Assertions string   `json:"assertions,omitempty"`
	Failure    *Failure `json:"failure,omitempty"`
}

SingleConformanceResponse holds the result of one particular test case

type SmiTest added in v0.2.0

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

type Spec

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

Spec holds the specifications for kuma adaptor

Jump to

Keyboard shortcuts

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