Help us shape the future of Go! Take the 2026 Go Developer Survey

trustbundlesources

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BundleFormatPEM    = "pem"
	BundleFormatSPIFFE = "spiffe"
	UseUnspecified     = 0
	UseBootstrap       = 1
	UseRebootstrap     = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle added in v1.12.4

type Bundle struct {
	// contains filtered or unexported fields
}

func New added in v1.12.4

func New(config *Config, log logrus.FieldLogger) Bundle

func (*Bundle) GetBundle added in v1.12.4

func (b *Bundle) GetBundle() ([]*x509.Certificate, bool, error)

func (*Bundle) GetInsecureBootstrap added in v1.12.4

func (b *Bundle) GetInsecureBootstrap() bool

func (*Bundle) GetStartTime added in v1.13.0

func (b *Bundle) GetStartTime() (time.Time, error)

func (*Bundle) IsBootstrap added in v1.13.0

func (b *Bundle) IsBootstrap() bool

func (*Bundle) IsRebootstrap added in v1.13.0

func (b *Bundle) IsRebootstrap() bool

func (*Bundle) SetForceRebootstrap added in v1.13.0

func (b *Bundle) SetForceRebootstrap() error

func (*Bundle) SetMetrics added in v1.13.0

func (b *Bundle) SetMetrics(metrics telemetry.Metrics)

func (*Bundle) SetStorage added in v1.13.0

func (b *Bundle) SetStorage(sto storage.Storage) error

func (*Bundle) SetSuccess added in v1.13.0

func (b *Bundle) SetSuccess() error

func (*Bundle) SetSuccessIfRunning added in v1.13.0

func (b *Bundle) SetSuccessIfRunning() error

func (*Bundle) SetUse added in v1.13.0

func (b *Bundle) SetUse(use int) error

type Config

type Config struct {
	InsecureBootstrap            bool
	TrustBundleFormat            string
	TrustBundlePath              string
	TrustBundleURL               string
	TrustBundleUnixSocket        string
	TrustBundleSpiffeWorkloadAPI string
	TrustDomain                  string
	ServerAddress                string
	ServerPort                   int
}

Jump to

Keyboard shortcuts

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