Documentation ¶
Index ¶
- Constants
- func GenerateTestCases(f *Framework, testcases []*TestSpec)
- type Assertion
- type AssertionAction
- type AssertionLink
- type AssertionPacket
- type AssertionSuspicion
- type DiagnoseArgs
- type DiagnoseResult
- type DiagnoseSpec
- type Framework
- func (f *Framework) Assert() error
- func (f *Framework) AssignNodes() error
- func (f *Framework) Client() *kubernetes.Clientset
- func (f *Framework) Node(id string) *v1.Node
- func (f *Framework) Pod(id string) *v1.Pod
- func (f *Framework) Prepare() error
- func (f *Framework) Recover() error
- func (f *Framework) RestConfig() *rest.Config
- func (f *Framework) RunDiagnose() error
- func (f *Framework) Service(id string) *v1.Service
- func (f *Framework) SetTestSpec(spec *TestSpec)
- type NetworkPolicySpec
- type NodeSpec
- type PodSpec
- type ServiceSpec
- type TestSpec
Constants ¶
View Source
const ( PodImage = "nicolaka/netshoot" E2ENamespace = "default" )
Variables ¶
This section is empty.
Functions ¶
func GenerateTestCases ¶
Types ¶
type Assertion ¶
type Assertion struct { Succeed bool Nodes []string NoSuspicion bool Suspicions []AssertionSuspicion Actions []AssertionAction }
type AssertionAction ¶
type AssertionAction struct { On string Type model.ActionType }
type AssertionLink ¶
type AssertionLink struct { From string To string Oif string Iif string Packet *AssertionPacket }
type AssertionPacket ¶
type AssertionPacket struct { }
type AssertionSuspicion ¶
type AssertionSuspicion struct { On string Level model.SuspicionLevel Contains string }
type DiagnoseArgs ¶
type DiagnoseResult ¶
type DiagnoseResult struct { Succeed bool Error string Summary *ui.DiagnoseSummary }
type DiagnoseSpec ¶
func NewDiagnoseSpec ¶
func NewDiagnoseSpec(from, to string, port uint16, protocol model.Protocol) DiagnoseSpec
type Framework ¶
type Framework struct {
// contains filtered or unexported fields
}
func NewFramework ¶
func (*Framework) AssignNodes ¶
func (*Framework) Client ¶
func (f *Framework) Client() *kubernetes.Clientset
func (*Framework) RestConfig ¶
func (*Framework) RunDiagnose ¶
func (*Framework) SetTestSpec ¶
type NetworkPolicySpec ¶
type NetworkPolicySpec struct { }
type ServiceSpec ¶
type TestSpec ¶
type TestSpec struct { Name string NodeSpecs []*NodeSpec ServiceSpecs []*ServiceSpec NetworkPolicySpec []*NetworkPolicySpec DiagnoseSpec DiagnoseSpec //TODO: provider spec & k8s spec (network policy, service) Assertion Assertion ProviderSpec interface{} ExtraSpec interface{} }
Click to show internal directories.
Click to hide internal directories.