Documentation ¶
Index ¶
- type APIClient
- type Client
- type ClientType
- type Options
- type TestInspectionAPI
- type TestInspectionClient
- type TestManagementAPI
- type TestManagementClient
- func (c TestManagementClient) DeleteTest(id string) error
- func (c TestManagementClient) DeleteTests(selector string) (testNames []string, err error)
- func (c TestManagementClient) GetScenario(id string) (scenario *v1alpha1.Scenario, err error)
- func (c TestManagementClient) ListScenarios(selector string) (scenarios v1alpha1.ScenarioList, err error)
- func (c TestManagementClient) ListVirtualObjects(namespace string, selectors ...string) (list v1alpha1.VirtualObjectList, err error)
- func (c TestManagementClient) SubmitTestFromFile(id string, manifestPath string) (resourceNames []string, err error)
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
type Client ¶
type Client interface { TestManagementAPI TestInspectionAPI }
Client is the Frisbee API client abstraction
type ClientType ¶
type ClientType string
const ( ClientDirect ClientType = "terminal" ClientController ClientType = "controller" )
type TestInspectionAPI ¶
type TestInspectionAPI interface { }
type TestInspectionClient ¶
type TestInspectionClient struct {
// contains filtered or unexported fields
}
func NewTestInspectionClient ¶
func NewTestInspectionClient(client client.Client, exec executor.Executor, options Options) TestInspectionClient
NewTestInspectionClient creates new Test client
type TestManagementAPI ¶
type TestManagementAPI interface { // GetScenario queries the Kubernetes API for the given Scenario id. GetScenario(testName string) (scenario *v1alpha1.Scenario, err error) // ListScenarios queries the Kubernetes API the selected labels. ListScenarios(selector string) (tests v1alpha1.ScenarioList, err error) // ListVirtualObjects list all virtual objects with the given selector ListVirtualObjects(namespace string, selectors ...string) (list v1alpha1.VirtualObjectList, err error) // DeleteTest deletes single test by name DeleteTest(testName string) error // DeleteTests deletes all tests with the selected labels. DeleteTests(selector string) (testNames []string, err error) }
TestManagementAPI describes scenario api methods
type TestManagementClient ¶
type TestManagementClient struct {
// contains filtered or unexported fields
}
func NewTestManagementClient ¶
func NewTestManagementClient(client client.Client, options Options) 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(id string) (scenario *v1alpha1.Scenario, err error)
GetScenario returns single scenario by id
func (TestManagementClient) ListScenarios ¶
func (c TestManagementClient) ListScenarios(selector string) (scenarios v1alpha1.ScenarioList, err error)
ListScenarios list all scenarios
func (TestManagementClient) ListVirtualObjects ¶
func (c TestManagementClient) ListVirtualObjects(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