Documentation ¶
Index ¶
- Variables
- func ErrClientConfig(err error) error
- func ErrClientSet(err error) error
- func ErrConnectSmi(err error) error
- func ErrDeleteSmi(err error) error
- func ErrInstallMesh(err error) error
- func ErrInstallSmi(err error) error
- func ErrMeshConfig(err error) error
- func ErrPortForward(err error) error
- func ErrRunSmi(err error) error
- func ErrStreamEvent(err error) error
- type ConformanceResponse
- type Event
- type Failure
- type Handler
- type MeshInstance
- type Operation
- type Operations
- type SingleConformanceResponse
- type SmiTest
- type Spec
Constants ¶
This section is empty.
Variables ¶
var (
ErrOpInvalid = errors.New(errors.ErrOpInvalid, "Invalid operation")
)
Functions ¶
func ErrClientConfig ¶ added in v0.2.0
ErrClientConfig is the error for setting client config
func ErrClientSet ¶ added in v0.2.0
ErrPortForward is the error for setting clientset
func ErrConnectSmi ¶ added in v0.2.0
ErrConnectSmi is the error for streaming event
func ErrDeleteSmi ¶ added in v0.2.0
ErrDeleteSmi is the error for streaming event
func ErrInstallMesh ¶
ErrInstallMesh is the error for install mesh
func ErrInstallSmi ¶ added in v0.2.0
ErrInstallSmi is the error for streaming event
func ErrPortForward ¶
ErrPortForward is the error for mesh port forward
func ErrStreamEvent ¶ added in v0.2.0
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 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
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 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