client

package
v1.0.31 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	TestManagementClient
	TestInspectionClient
}

APIClient struct managing proxy API Client dependencies.

func NewDirectAPIClient

func NewDirectAPIClient(client client.Client) APIClient

NewDirectAPIClient returns proxy api client.

type TestInspectionClient

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

func NewTestInspectionClient

func NewTestInspectionClient(client client.Client, exec kubexec.Executor) TestInspectionClient

NewTestInspectionClient creates new Test client.

type TestManagementClient

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

func NewTestManagementClient

func NewTestManagementClient(client client.Client) TestManagementClient

NewTestManagementClient creates new Test client.

func (TestManagementClient) DeleteTest

func (c TestManagementClient) DeleteTest(id string) error

DeleteTest deletes single test by name. Deprecated: Use the respective kubectl command.

func (TestManagementClient) DeleteTests

func (c TestManagementClient) DeleteTests(selector string) (testNames []string, err error)

DeleteTests deletes all tests Deprecated: Use the respective kubectl command.

func (TestManagementClient) GetScenario

func (c TestManagementClient) GetScenario(ctx context.Context, id string) (scenario *v1alpha1.Scenario, err error)

GetScenario returns single scenario by id.

func (TestManagementClient) ListScenarios

func (c TestManagementClient) ListScenarios(ctx context.Context, selector string) (scenarios v1alpha1.ScenarioList, err error)

ListScenarios list all scenarios.

func (TestManagementClient) ListVirtualObjects

func (c TestManagementClient) ListVirtualObjects(ctx context.Context, namespace string, selectors ...string) (list v1alpha1.VirtualObjectList, err error)

ListVirtualObjects list all virtual objects.

func (TestManagementClient) SubmitTestFromFile

func (c TestManagementClient) SubmitTestFromFile(id string, manifestPath string) (resourceNames []string, err error)

SubmitTestFromFile applies the scenario from the given file. Deprecated: Use the respective kubectl command.

Jump to

Keyboard shortcuts

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