Documentation
¶
Overview ¶
Package internal contains internal helper types and functions.
Index ¶
- func GetImageVersionFromDockerfile() (string, error)
- func ParseJSON(reader io.ReadCloser, v any) error
- func Ptr[T any](value T) *T
- func UnmarshalNDJSON(ctx context.Context, r io.Reader) iter.Seq2[Line, error]
- func ValidateServerHeader(response *http.Response) error
- type CloudEvent
- type Error
- type Line
- type StreamEventType
- type StreamSubject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageVersionFromDockerfile ¶ added in v0.29.3
func UnmarshalNDJSON ¶ added in v0.29.0
func ValidateServerHeader ¶ added in v1.4.0
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 Line ¶ added in v0.29.0
type Line struct {
Type string
Payload json.RawMessage
}
type StreamEventType ¶ added in v0.29.0
type StreamSubject ¶ added in v0.29.0
type StreamSubject struct {
Subject string `json:"subject"`
}
Click to show internal directories.
Click to hide internal directories.