spireclient

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchDeleteFederatedBundleStatus

type BatchDeleteFederatedBundleStatus struct {
	TrustDomain string
	Status      *Status
}

type BatchGetFederatedBundleStatus

type BatchGetFederatedBundleStatus struct {
	Bundle *spiffebundle.Bundle
}

type BatchSetFederatedBundleStatus

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

type Client

type Client interface {
	GetBundle(context.Context) (*spiffebundle.Bundle, error)
	GetFederatedBundles(context.Context) ([]*spiffebundle.Bundle, error)
	SetFederatedBundles(context.Context, []*spiffebundle.Bundle) ([]*BatchSetFederatedBundleStatus, error)
	DeleteFederatedBundles(context.Context, []spiffeid.TrustDomain) ([]*BatchDeleteFederatedBundleStatus, error)
}

Client is an interface for interacting with a SPIRE Server, providing methods for trust bundle retrieval, setting federation bundles, and deleting federation bundles.

func NewSpireClient

func NewSpireClient(ctx context.Context, addr net.Addr) (Client, error)

type ListFederatedBundlesResponse

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

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