v1alpha1

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package v1alpha1 contains experimental types which may be useful for policy "templates" interacting with the ocm-io policy framework addon, but are not recommended for "real" use yet. They can and will be changed or completely removed with no additional notice; be aware of this when importing and using them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReflectiveResourceList

type ReflectiveResourceList struct {
	ClientList client.ObjectList
}

ReflectiveResourceList implements v1beta1.ResourceList for the wrapped client.ObjectList, by using reflection. The wrapped list must have an Items field, with a slice of items which satisfy the client.Object interface - most types which satisfy client.ObjectList seem to follow this convention. Using this type is not recommended: implementing ResourceList by hand will likely lead to better performance.

func (*ReflectiveResourceList) Items

func (l *ReflectiveResourceList) Items() ([]client.Object, error)

Items returns the list of items in the list. Since this implementation uses reflection, it may have errors or not perform as well as a bespoke implementation for the underlying type. The returned Objects are in the same order that they are in the list.

func (*ReflectiveResourceList) ObjectList

func (l *ReflectiveResourceList) ObjectList() client.ObjectList

type ReflectiveResourceListError

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

func (*ReflectiveResourceListError) Error

Jump to

Keyboard shortcuts

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