smi

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrConnectSmi

func ErrConnectSmi(err error) error

ErrConnectSmi is the error for connecting to smi tool

func ErrDeleteSmi

func ErrDeleteSmi(err error) error

ErrDeleteSmi is the error for deleteing smi tool

func ErrInstallSmi

func ErrInstallSmi(err error) error

ErrInstallSmi is the error for installing smi tool

func ErrRunSmi

func ErrRunSmi(err error) error

ErrRunSmi is the error for running conformance test

func ErrSmiInit

func ErrSmiInit(des string) error

ErrSmiInit is the error for smi init method

Types

type Detail

type Detail struct {
	SmiSpecification string `json:"smi_specification,omitempty"`
	SmiVersion       string `json:"smi_version,omitempty"`
	Time             string `json:"time,omitempty"`
	Assertions       string `json:"assertions,omitempty"`
	Result           string `json:"result,omitempty"`
	Reason           string `json:"reason,omitempty"`
	Capability       string `json:"capability,omitempty"`
	Status           string `json:"status,omitempty"`
}

type Response

type Response struct {
	Id                string    `json:"id,omitempty"`
	Date              string    `json:"date,omitempty"`
	MeshName          string    `json:"mesh_name,omitempty"`
	MeshVersion       string    `json:"mesh_version,omitempty"`
	CasesPassed       string    `json:"cases_passed,omitempty"`
	PassingPercentage string    `json:"passing_percentage,omitempty"`
	Status            string    `json:"status,omitempty"`
	MoreDetails       []*Detail `json:"more_details,omitempty"`
}

type SmiTest

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

func New

func New(ctx context.Context, id string, version string, name string, client *kubernetes.Clientset) (*SmiTest, error)

func (*SmiTest) Run

func (test *SmiTest) Run(labels, annotations map[string]string) (Response, error)

Jump to

Keyboard shortcuts

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