api

package
v0.0.0-...-8d22e20 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheArtifactsSpec

type CheArtifactsSpec struct {
	FromContainerPath string `yaml:"fromContainerPath"`
	To                string `yaml:"to"`
}

The CheArtifactsSpec define the information where to store tests artifacts.

type CheDeploymentSpec

type CheDeploymentSpec struct {
	Cli CliSpec `yaml:"cli,omitempty"`
}

The CheDeploymentSpec defines the type of deployment to deploy a Che instance. Supported deployments: chectl/crwctl

type CheInspector

type CheInspector struct {
	Name            string           `yaml:"name"`
	Version         string           `yaml:"version"`
	Ide             string           `yaml:"ide"`
	Spec            CheInspectorSpec `yaml:"spec"`
	CleanAfterTests bool             `yaml:"cleanAfterTests,omitempty"`
}

The CheInspector allows defining and managing Che suites

type CheInspectorSpec

type CheInspectorSpec struct {
	Deployment CheDeploymentSpec `yaml:"deployment"`
	Tests      []CheTestsSpec    `yaml:"tests"`
	Report     []CheReporterSpec `yaml:"reporter"`
}

The CheInspectorSpec defines all specs of Che suites

type CheReporterSpec

type CheReporterSpec struct {
	ReportPortal ReportPortal `yaml:"reportPortal"`
}

The CheReporterSpec define a basic reporter to send suites results. Options supported: slack

type CheTestsSpec

type CheTestsSpec struct {
	Name             string           `yaml:"name"`
	Namespace        string           `yaml:"namespace,omitempty"`
	Image            string           `yaml:"image"`
	Args             []string         `yaml:"args,omitempty"`
	Env              []corev1.EnvVar  `yaml:"env"`
	Artifacts        CheArtifactsSpec `yaml:"artifacts,omitempty"`
	ContainerContext string           `yaml:"containerContext"`
}

The CheTestsSpec define the information about the suites to execute against Che instance.

type CliContext

type CliContext struct {
	CheInspector *CheInspector
	Client       *client.K8sClient
	DockerClient *dockerClient.Client
}

Comment

func GetCliContext

func GetCliContext(configFile string) (cliContext *CliContext, e error)

Comment

type CliSpec

type CliSpec struct {
	Flavor      string `yaml:"flavor,omitempty"`
	Flags       string `yaml:"flags"`
	InstallPath string `yaml:"installPath"`
	Source      string `yaml:"source"`
	Namespace   string `yaml:"namespace"`
}

The CliSpec defines the flags used by Che cli

type ReportPortal

type ReportPortal struct {
	Name        string `yaml:"name"`
	BaseUrl     string `yaml:"baseUrl"`
	Token       string `yaml:"token"`
	Project     string `yaml:"project"`
	ResultsPath string `yaml:"resultsPath"`
}

The ReportPortal define basic information to send information to Report Portal

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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