spire

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchGetFederatedBundleStatus

type BatchGetFederatedBundleStatus struct {
	Bundle *spiffebundle.Bundle
}

type BatchSetFederatedBundleStatus

type BatchSetFederatedBundleStatus struct {
	Bundle *spiffebundle.Bundle
	Status *Status
}

type BundleClient

type BundleClient interface {
	GetBundle(context.Context) (*spiffebundle.Bundle, error)
	BatchSetFederatedBundle(context.Context, []*spiffebundle.Bundle) ([]*BatchSetFederatedBundleStatus, error)
	ListFederatedBundles(context.Context) (*ListFederatedBundlesResponse, error)
}

func NewBundleClient

func NewBundleClient(cc grpc.ClientConnInterface) BundleClient

NewBundleClient creates a new SPIRE Bundle API client

type ListFederatedBundlesResponse

type ListFederatedBundlesResponse struct {
	Bundles []*spiffebundle.Bundle
}

type SpireServer

type SpireServer interface {
	GetBundle(context.Context) (*spiffebundle.Bundle, error)
	SetFederatedBundles(context.Context, []*spiffebundle.Bundle) ([]*BatchSetFederatedBundleStatus, error)
	GetFederatedBundles(context.Context) (*ListFederatedBundlesResponse, error)
}

TODO: can we change the name to SpireServerLocalClient?

func NewLocalSpireServer

func NewLocalSpireServer(ctx context.Context, addr net.Addr) SpireServer

NewLocalSpireServer creates and initializes a new client to communicate with a SPIRE Server given an address to its admin API

type Status

type Status struct {
	// TODO: see if we need to map this to our (probably simplified) own set of codes
	Code    codes.Code
	Message string
}

Jump to

Keyboard shortcuts

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