v1beta1

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1beta1 converts between the Cofide v1beta1 trust bundle messages and the SPIRE API trust bundle messages they mirror.

SPIRE represents the refresh hint and JWT key expiry as integer seconds, with zero meaning unset, where the Cofide messages use Duration and Timestamp. Converting to SPIRE drops any fraction of a second, so a key never expires later than its Cofide expiry, and a refresh hint under a second becomes no hint. An expiry in the first second after the Unix epoch would become zero, which SPIRE reads as never expiring, so it becomes the second before the epoch instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromSPIRE

func FromSPIRE(bundle *types.Bundle) *trustbundlepb.Bundle

FromSPIRE converts a SPIRE API trust bundle to a Cofide trust bundle. It returns nil if bundle is nil. The result shares no memory with bundle.

func ToSPIRE

func ToSPIRE(bundle *trustbundlepb.Bundle) *types.Bundle

ToSPIRE converts a Cofide trust bundle to a SPIRE API trust bundle. It returns nil if bundle is nil. The result shares no memory with bundle.

Types

This section is empty.

Jump to

Keyboard shortcuts

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