Documentation ¶
Index ¶
- Variables
- func DrawChart(chart *Chart) error
- func GetEverythingListOptions() *metav1.ListOptions
- func GetLinePoints(dataMap map[string][]int) []interface{}
- func GetListOptions(selectLabels map[string]string) *metav1.ListOptions
- func GetPointsFromSlice(slice []int) plotter.XYs
- func SetLogLevel(level int)
- type Chart
- type KubeClient
- func (kc *KubeClient) CreateDeployment(namespace string, deployment *appsv1.Deployment) error
- func (kc *KubeClient) DeleteDeployment(namespace, name string) error
- func (kc *KubeClient) GetClientSet() *kubernetes.Clientset
- func (kc *KubeClient) GetConfigMap(namespace string, name string, getOptions *metav1.GetOptions) (*apiv1.ConfigMap, error)
- func (kc *KubeClient) GetConfigs() *rest.Config
- func (kc *KubeClient) GetDeployment(namespace, name string) (*appsv1.Deployment, error)
- func (kc *KubeClient) GetDeploymentInfo(namespace, appID string) (time.Time, []int, error)
- func (kc *KubeClient) GetNodes(listOptions *metav1.ListOptions) (*apiv1.NodeList, error)
- func (kc *KubeClient) GetPods(namespace string, listOptions *metav1.ListOptions) (*apiv1.PodList, error)
- type Reporter
- type Results
- type ScenarioResult
- type Table
- type Verification
- func (vg *Verification) AddAssertSubVerification(result bool, name, description string) *Verification
- func (vg *Verification) AddErrorSubVerification(err error, name, description string) *Verification
- func (vg *Verification) AddSubVerification(name, description string, status VerificationStatus) *Verification
- func (vg *Verification) AddSubVerificationGroup(name, description string) *Verification
- func (vg *Verification) IsFailed() bool
- func (v *Verification) RefreshStatus()
- func (v *Verification) String() string
- type VerificationStatus
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetEverythingListOptions ¶
func GetEverythingListOptions() *metav1.ListOptions
func GetLinePoints ¶
func GetListOptions ¶
func GetListOptions(selectLabels map[string]string) *metav1.ListOptions
func GetPointsFromSlice ¶
func SetLogLevel ¶
func SetLogLevel(level int)
Types ¶
type KubeClient ¶
type KubeClient struct {
// contains filtered or unexported fields
}
func NewKubeClient ¶
func NewKubeClient(KubeConfigFile string) (*KubeClient, error)
func (*KubeClient) CreateDeployment ¶
func (kc *KubeClient) CreateDeployment(namespace string, deployment *appsv1.Deployment) error
func (*KubeClient) DeleteDeployment ¶
func (kc *KubeClient) DeleteDeployment(namespace, name string) error
func (*KubeClient) GetClientSet ¶
func (kc *KubeClient) GetClientSet() *kubernetes.Clientset
func (*KubeClient) GetConfigMap ¶
func (kc *KubeClient) GetConfigMap(namespace string, name string, getOptions *metav1.GetOptions) (*apiv1.ConfigMap, error)
func (*KubeClient) GetConfigs ¶
func (kc *KubeClient) GetConfigs() *rest.Config
func (*KubeClient) GetDeployment ¶
func (kc *KubeClient) GetDeployment(namespace, name string) (*appsv1.Deployment, error)
func (*KubeClient) GetDeploymentInfo ¶
GetDeploymentInfo return basic information of deployment: (createTime, [desired, created, ready] replicas, error)
func (*KubeClient) GetNodes ¶
func (kc *KubeClient) GetNodes(listOptions *metav1.ListOptions) (*apiv1.NodeList, error)
func (*KubeClient) GetPods ¶
func (kc *KubeClient) GetPods(namespace string, listOptions *metav1.ListOptions) (*apiv1.PodList, error)
type Results ¶
type Results struct {
ScenarioResults []*ScenarioResult
}
func NewResults ¶
func NewResults() *Results
func (*Results) CreateScenarioResults ¶
func (r *Results) CreateScenarioResults(scenarioName string) *ScenarioResult
func (*Results) RefreshStatus ¶
func (r *Results) RefreshStatus()
type ScenarioResult ¶
type ScenarioResult struct { Name string Status VerificationStatus Verifications []*Verification }
func (*ScenarioResult) AddVerification ¶
func (sr *ScenarioResult) AddVerification(name, description string, status VerificationStatus)
func (*ScenarioResult) AddVerificationGroup ¶
func (sr *ScenarioResult) AddVerificationGroup(name, description string) *Verification
type Verification ¶
type Verification struct { Deep int Name string Status VerificationStatus Description string SubVerifications []*Verification Parent *Verification }
func (*Verification) AddAssertSubVerification ¶
func (vg *Verification) AddAssertSubVerification(result bool, name, description string) *Verification
func (*Verification) AddErrorSubVerification ¶
func (vg *Verification) AddErrorSubVerification(err error, name, description string) *Verification
func (*Verification) AddSubVerification ¶
func (vg *Verification) AddSubVerification(name, description string, status VerificationStatus) *Verification
func (*Verification) AddSubVerificationGroup ¶
func (vg *Verification) AddSubVerificationGroup(name, description string) *Verification
func (*Verification) IsFailed ¶
func (vg *Verification) IsFailed() bool
func (*Verification) RefreshStatus ¶
func (v *Verification) RefreshStatus()
func (*Verification) String ¶
func (v *Verification) String() string
type VerificationStatus ¶
type VerificationStatus int
const ( SUCCEEDED VerificationStatus = iota FAILED )
Click to show internal directories.
Click to hide internal directories.