spiffe

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

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

Helper is the component that consumes the Workload API and renews certs implements the interface Helper

func NewHelper

func NewHelper(config *HelperConfig) (*Helper, error)

NewHelper creates a new SPIFFE helper

func (*Helper) CertReadyChan

func (h *Helper) CertReadyChan() <-chan struct{}

CertReadyChan returns a channel to know when the trust bundle is ready

func (*Helper) ProcessStarted

func (h *Helper) ProcessStarted()

ProcessStarted is used to notify SPIFFE helper that externally manged process is ready

func (*Helper) RunDaemon

func (h *Helper) RunDaemon(ctx context.Context)

RunDaemon starts the main loop Starts the workload API client to listen for new SVID updates When a new SVID is received on the updateChan, the SVID certificates are stored in disk and a restart signal is sent to the proxy's process

type HelperConfig

type HelperConfig struct {
	AgentAddress       string
	Cmd                string
	CmdArgs            string
	CertDir            string
	SvidFileName       string
	SvidKeyFileName    string
	SvidBundleFileName string
	RenewSignal        string
	Timeout            string
	ExternalProcess    bool
	ProcessReloadFunc  func() error
}

HelperConfig contains config variables when creating a SPIFFE Helper.

Jump to

Keyboard shortcuts

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