internal

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package internal contains internal helper types and functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImageVersionFromDockerfile added in v0.29.3

func GetImageVersionFromDockerfile() (string, error)

func ParseJSON

func ParseJSON(reader io.ReadCloser, v any) error

func Ptr added in v0.29.0

func Ptr[T any](value T) *T

func UnmarshalNDJSON added in v0.29.0

func UnmarshalNDJSON(ctx context.Context, r io.Reader) iter.Seq2[Line, error]

Types

type CloudEvent

type CloudEvent struct {
	SpecVersion     string          `json:"specversion"`
	ID              string          `json:"id"`
	Time            string          `json:"time"`
	Source          string          `json:"source"`
	Subject         string          `json:"subject"`
	Type            string          `json:"type"`
	DataContentType string          `json:"datacontenttype"`
	Data            json.RawMessage `json:"data"`
	Hash            string          `json:"hash"`
	PredecessorHash string          `json:"predecessorhash"`
	TraceParent     *string         `json:"traceparent"`
	TraceState      *string         `json:"tracestate"`
	Signature       *string         `json:"signature"`
}

type Error added in v0.29.0

type Error struct {
	Error string `json:"error"`
}

type Line added in v0.29.0

type Line struct {
	Type    string
	Payload json.RawMessage
}

type StreamEventType added in v0.29.0

type StreamEventType struct {
	EventType string          `json:"eventType"`
	IsPhantom bool            `json:"isPhantom"`
	Schema    *map[string]any `json:"schema,omitempty"`
}

type StreamSubject added in v0.29.0

type StreamSubject struct {
	Subject string `json:"subject"`
}

Jump to

Keyboard shortcuts

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