sources

package
v0.0.0-...-95524c8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const PipelineJobLabel = "pipeline_job_id"

Variables

This section is empty.

Functions

This section is empty.

Types

type LogEntry

type LogEntry struct {
	Resource Resource `json:"resource"`
}

type PubSubSource

type PubSubSource struct {
	RunsSubscription *pubsub.Subscription
	Logger           logr.Logger
	// contains filtered or unexported fields
}

func NewPubSubSource

func NewPubSubSource(ctx context.Context, project string, subscription string) (*PubSubSource, error)

func (*PubSubSource) ErrorOut

func (ps *PubSubSource) ErrorOut() <-chan error

func (*PubSubSource) Out

func (pss *PubSubSource) Out() <-chan StreamMessage[string]

type Resource

type Resource struct {
	Labels map[string]string `json:"labels"`
}

type WorkflowSource

type WorkflowSource struct {
	K8sClient K8sClient
	Logger    logr.Logger
	// contains filtered or unexported fields
}

func NewWorkflowSource

func NewWorkflowSource(ctx context.Context, namespace string, k8sClient K8sClient) (*WorkflowSource, error)

func (*WorkflowSource) Out

func (ws *WorkflowSource) Out() <-chan StreamMessage[*unstructured.Unstructured]

Jump to

Keyboard shortcuts

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