resources

package
v0.10.0-main Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Devices      = "devices"
	Fleets       = "fleets"
	Repositories = "repositories"

	UnknownOrUnsupportedSelectorError = "400, message: unknown or unsupported selector: unable to resolve selector name"
	FailedToResolveOperatorError      = "400, message: failed to parse field selector: failed to resolve operation for selector"
	InvalidFieldSelectorSyntax        = "400, message: failed to parse field selector: invalid field selector syntax"
)

Variables

This section is empty.

Functions

func ApplyFromExampleFile

func ApplyFromExampleFile(harness *e2e.Harness, fileName string) (string, error)

func CreateDevice

func CreateDevice(harness *e2e.Harness, name string, labels *map[string]string) (*api.Device, error)

func CreateFleet

func CreateFleet(harness *e2e.Harness, name string, templateImage string, labels *map[string]string) (*api.Fleet, error)

func CreateRepository

func CreateRepository(harness *e2e.Harness, name string, url string) (*api.Repository, error)

func Delete

func Delete(harness *e2e.Harness, resourceKind string, name string) (string, error)

func DeleteAll

func DeleteAll(harness *e2e.Harness, devices []*api.Device, fleets []*api.Fleet, repositories []*api.Repository) error

func DeleteDevices

func DeleteDevices(harness *e2e.Harness, devices []*api.Device) error

func DeleteFleets

func DeleteFleets(harness *e2e.Harness, fleets []*api.Fleet) error

func DeleteRepositories

func DeleteRepositories(harness *e2e.Harness, repositories []*api.Repository) error

func DevicesAreListed

func DevicesAreListed(harness *e2e.Harness, count int) error

func ExpectNotExistWithName

func ExpectNotExistWithName(harness *e2e.Harness, resourceKind string, name string) error

func FilterWithCreationTimeDuringCurrentYear

func FilterWithCreationTimeDuringCurrentYear(harness *e2e.Harness, resourceKind string, fieldName string) (string, error)

func FilterWithFieldValueCondition

func FilterWithFieldValueCondition(harness *e2e.Harness, resourceKind string, fieldName string, operator FieldSelectorOperator, fieldValue string) (string, error)

func FilterWithLabelSelector

func FilterWithLabelSelector(harness *e2e.Harness, resourceKind string, selector string) (string, error)

func FleetsAreListed

func FleetsAreListed(harness *e2e.Harness, count int) error

func GetByName

func GetByName(harness *e2e.Harness, resourceKind string, name string) (string, error)

func GetJSONByName added in v0.9.0

func GetJSONByName[T any](h *e2e.Harness, resourceKind, name string) (T, error)

func ListAll

func ListAll(harness *e2e.Harness, resourceKind string) (string, error)

func RepositoriesAreListed

func RepositoriesAreListed(harness *e2e.Harness, count int) error

func SomeRowsAreListedInResponse

func SomeRowsAreListedInResponse(response string, err error, expectedRows int) error

Types

type FieldSelectorOperator

type FieldSelectorOperator int
const (
	Exists FieldSelectorOperator = iota + 1
	DoesNotExist
	Equals
	DoubleEquals
	NotEquals
	GreaterThan
	GreaterThanOrEquals
	LessThan
	LessThanOrEquals
	In
	NotIn
	Contains
	NotContains
)

func ToFieldSelectorOperator

func ToFieldSelectorOperator(operator string) (FieldSelectorOperator, error)

func (FieldSelectorOperator) EnumIndex

func (o FieldSelectorOperator) EnumIndex() int

func (FieldSelectorOperator) String

func (o FieldSelectorOperator) String() string

Jump to

Keyboard shortcuts

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