resources

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PropagateMetadata added in v0.3.0

func PropagateMetadata(parentLabels ...map[string]string) map[string]string

func ReferenceDefaulter added in v0.3.0

Types

type InvalidObjectReference added in v0.2.5

type InvalidObjectReference struct {
	Message string
}

func (InvalidObjectReference) Error added in v0.2.5

func (i InvalidObjectReference) Error() string

type Invocation added in v0.3.0

type Invocation[S any] struct {
	// Spec is the spec of the resource
	Spec S
	// Parameters is the parameter settings of the resource
	Parameters []v1beta1.ParameterSetting
	// Metadata is the metadata of the resource
	Metadata metav1.ObjectMeta
}

Invocation represents the invocation of an Ocular resource (profile, downloader, crawler, uploader). It contains the spec of the resource, the metadata and the parameters that should be set. This is done since some resources additionally have a cluster wide version that share the same spec.

func CrawlerInvocationFromReference added in v0.3.0

func CrawlerInvocationFromReference(ctx context.Context, c client.Client, namespace string, ref v1beta1.ParameterizedLocalObjectReference) (Invocation[v1beta1.CrawlerSpec], error)

func DownloaderInvocationFromReference added in v0.3.0

func DownloaderInvocationFromReference(ctx context.Context, c client.Client, namespace string, ref v1beta1.ParameterizedLocalObjectReference) (Invocation[v1beta1.DownloaderSpec], error)

func ProfileInvocationFromReference added in v0.3.0

func ProfileInvocationFromReference(ctx context.Context, c client.Client, namespace string, ref v1beta1.ParameterizedLocalObjectReference) (Invocation[v1beta1.ProfileSpec], error)

func UploaderInvocationFromReference added in v0.3.0

func UploaderInvocationFromReference(ctx context.Context, c client.Client, namespace string, ref v1beta1.ParameterizedLocalObjectReference) (Invocation[v1beta1.UploaderSpec], error)

Jump to

Keyboard shortcuts

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