Documentation
¶
Index ¶
- func PropagateMetadata(parentLabels ...map[string]string) map[string]string
- func ReferenceDefaulter(ref v1beta1.ParameterizedLocalObjectReference, defaultKind string) v1beta1.ParameterizedLocalObjectReference
- type InvalidObjectReference
- type Invocation
- func CrawlerInvocationFromReference(ctx context.Context, c client.Client, namespace string, ...) (Invocation[v1beta1.CrawlerSpec], error)
- func DownloaderInvocationFromReference(ctx context.Context, c client.Client, namespace string, ...) (Invocation[v1beta1.DownloaderSpec], error)
- func ProfileInvocationFromReference(ctx context.Context, c client.Client, namespace string, ...) (Invocation[v1beta1.ProfileSpec], error)
- func UploaderInvocationFromReference(ctx context.Context, c client.Client, namespace string, ...) (Invocation[v1beta1.UploaderSpec], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PropagateMetadata ¶ added in v0.3.0
func ReferenceDefaulter ¶ added in v0.3.0
func ReferenceDefaulter(ref v1beta1.ParameterizedLocalObjectReference, defaultKind string) v1beta1.ParameterizedLocalObjectReference
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)
Click to show internal directories.
Click to hide internal directories.