Documentation ¶
Index ¶
- func RunCMD(scriptName string) int
- type Arg
- type ByAnnotation
- type ByAnnotationCount
- type ByGeneration
- type ByLabel
- type ByName
- type ConfigUnit
- type ExpctationReg
- type Expectation
- type Expectations
- type KubeConfigs
- type Matcher
- type Stage
- type StageReg
- type Stages
- type TestCase
- type TestCases
- type TestCasesReg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ByAnnotation ¶
type ByAnnotation struct{}
func (ByAnnotation) Match ¶
func (b ByAnnotation) Match(clt client.Client, ep Expectation, logger logr.Logger) error
Basiclly, list all the instance and check if there's instance generated by subscription
type ByAnnotationCount ¶
type ByAnnotationCount struct{}
func (ByAnnotationCount) Match ¶
func (b ByAnnotationCount) Match(clt client.Client, ep Expectation, logger logr.Logger) error
type ByGeneration ¶
type ByGeneration struct{}
func (ByGeneration) Match ¶
func (b ByGeneration) Match(clt client.Client, ep Expectation, logger logr.Logger) error
type ConfigUnit ¶
type ExpctationReg ¶
type ExpctationReg map[string]Expectations
func ToExpReg ¶
func ToExpReg(in ExpctationReg, exps *Expectations) ExpctationReg
type Expectation ¶
type Expectation struct { TestID string `json:"test_id"` TargetCluster string `json:"target_cluster"` Desc string `json:"desc"` APIVersion string `json:"apiversion"` Kind string `json:"kind"` Name string `json:"name"` Namespace string `json:"namespace"` Matcher string `json:"matcher"` Args map[string]string `json:"args"` }
func (Expectation) GetInstance ¶
func (e Expectation) GetInstance() *unstructured.Unstructured
func (Expectation) GetInstanceList ¶
func (e Expectation) GetInstanceList() *unstructured.UnstructuredList
func (Expectation) GetKey ¶
func (e Expectation) GetKey() types.NamespacedName
func (Expectation) IsEqual ¶
func (e Expectation) IsEqual(b Expectation) bool
func (*Expectation) String ¶
func (e *Expectation) String() string
type Expectations ¶
type Expectations []Expectation
func BytesToExpectations ¶
func BytesToExpectations(in []byte) (*Expectations, error)
type KubeConfigs ¶
type KubeConfigs map[string]*ConfigUnit
KubeConfigs have cluster name and it's location for kubeconfig
func LoadKubeConfigs ¶
func LoadKubeConfigs(dir string) (KubeConfigs, error)
func (KubeConfigs) GetClusterNames ¶
func (k KubeConfigs) GetClusterNames() string
type Matcher ¶
func MatcherRouter ¶
type TestCase ¶
type TestCase struct { CaseID string `json:"test_id"` Desc string `json:"desc"` URLs []string `json:"urls"` TargetCluster string `json:"target_cluster"` }
TestCase contains an id and a ULR pointing to it's raw content
type TestCasesReg ¶
func LoadTestCases ¶
func LoadTestCases(dir string) (TestCasesReg, error)
func ToTcReg ¶
func ToTcReg(in TestCasesReg, tc *TestCases) TestCasesReg
Click to show internal directories.
Click to hide internal directories.