Documentation ¶
Index ¶
- type Option
- type TestSourcesClient
- func (s TestSourcesClient) Create(testSource *testsourcev1.TestSource, options ...Option) (*testsourcev1.TestSource, error)
- func (s TestSourcesClient) Delete(name string) error
- func (s TestSourcesClient) DeleteByLabels(selector string) error
- func (s TestSourcesClient) Get(name string) (*testsourcev1.TestSource, error)
- func (s TestSourcesClient) List(selector string) (*testsourcev1.TestSourceList, error)
- func (s TestSourcesClient) Update(testSource *testsourcev1.TestSource, options ...Option) (*testsourcev1.TestSource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestSourcesClient ¶
type TestSourcesClient struct {
// contains filtered or unexported fields
}
TestSourcesClient client for getting test sources CRs
func NewClient ¶
func NewClient(client client.Client, namespace string) *TestSourcesClient
NewClient returns new client instance, needs kubernetes client to be passed as dependecy
func (TestSourcesClient) Create ¶
func (s TestSourcesClient) Create(testSource *testsourcev1.TestSource, options ...Option) (*testsourcev1.TestSource, error)
Create creates new test source CRD
func (TestSourcesClient) Delete ¶
func (s TestSourcesClient) Delete(name string) error
Delete deletes test source by name
func (TestSourcesClient) DeleteByLabels ¶
func (s TestSourcesClient) DeleteByLabels(selector string) error
DeleteByLabels deletes test sources by labels
func (TestSourcesClient) Get ¶
func (s TestSourcesClient) Get(name string) (*testsourcev1.TestSource, error)
Get gets test source by name in given namespace
func (TestSourcesClient) List ¶
func (s TestSourcesClient) List(selector string) (*testsourcev1.TestSourceList, error)
List shows list of available test sources
func (TestSourcesClient) Update ¶
func (s TestSourcesClient) Update(testSource *testsourcev1.TestSource, options ...Option) (*testsourcev1.TestSource, error)
Update updates test source
Click to show internal directories.
Click to hide internal directories.