testsources

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	Secrets map[string]string
}

Option contain test source options

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

Get gets test source by name in given namespace

func (TestSourcesClient) List

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

Jump to

Keyboard shortcuts

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