Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + func AttestedNodeToProto(node *common.AttestedNode, selectors []*types.Selector) (*types.Agent, error) + func BundleToProto(b *common.Bundle) (*types.Bundle, error) + func CertificatesToProto(rootCas []*common.Certificate) []*types.X509Certificate + func CreateStatus(code codes.Code, format string, a ...interface{}) *types.Status + func FederationRelationshipToProto(f *datastore.FederationRelationship, mask *types.FederationRelationshipMask) (*types.FederationRelationship, error) + func FieldsFromBundleProto(proto *types.Bundle, inputMask *types.BundleMask) logrus.Fields + func FieldsFromJwtAuthoritiesProto(jwtAuthorities []*types.JWTKey) logrus.Fields + func FieldsFromX509AuthoritiesProto(x509Authorities []*types.X509Certificate) logrus.Fields + func HashByte(b []byte) string + func IDFromProto(ctx context.Context, protoID *types.SPIFFEID) (spiffeid.ID, error) + func MakeErr(log logrus.FieldLogger, code codes.Code, msg string, err error) error + func MakeStatus(log logrus.FieldLogger, code codes.Code, msg string, err error) *types.Status + func OK() *types.Status + func ParseJWTAuthorities(keys []*types.JWTKey) ([]*common.PublicKey, error) + func ParseX509Authorities(certs []*types.X509Certificate) ([]*common.Certificate, error) + func ProtoFromAttestedNode(n *common.AttestedNode) (*types.Agent, error) + func ProtoFromID(id spiffeid.ID) *types.SPIFFEID + func ProtoFromSelectors(in []*common.Selector) []*types.Selector + func ProtoToBundle(b *types.Bundle) (*common.Bundle, error) + func ProtoToBundleMask(mask *types.BundleMask) *common.BundleMask + func ProtoToFederationRelationship(f *types.FederationRelationship) (*datastore.FederationRelationship, error) + func ProtoToFederationRelationshipWithMask(f *types.FederationRelationship, mask *types.FederationRelationshipMask) (*datastore.FederationRelationship, error) + func ProtoToRegistrationEntry(ctx context.Context, td spiffeid.TrustDomain, e *types.Entry) (*common.RegistrationEntry, error) + func ProtoToRegistrationEntryWithMask(ctx context.Context, td spiffeid.TrustDomain, e *types.Entry, ...) (_ *common.RegistrationEntry, err error) + func PublicKeysToProto(keys []*common.PublicKey) []*types.JWTKey + func RegistrationEntriesToProto(es []*common.RegistrationEntry) ([]*types.Entry, error) + func RegistrationEntryToProto(e *common.RegistrationEntry) (*types.Entry, error) + func SelectorFieldFromProto(proto []*types.Selector) string + func SelectorsFromProto(proto []*types.Selector) ([]*common.Selector, error) + func TrustDomainAgentIDFromProto(ctx context.Context, td spiffeid.TrustDomain, protoID *types.SPIFFEID) (spiffeid.ID, error) + func TrustDomainMemberIDFromProto(ctx context.Context, td spiffeid.TrustDomain, protoID *types.SPIFFEID) (spiffeid.ID, error) + func TrustDomainWorkloadIDFromProto(ctx context.Context, td spiffeid.TrustDomain, protoID *types.SPIFFEID) (spiffeid.ID, error) + func VerifyTrustDomainAgentID(td spiffeid.TrustDomain, id spiffeid.ID) error + func VerifyTrustDomainAgentIDForNodeAttestor(td spiffeid.TrustDomain, id spiffeid.ID, nodeAttestorName string) error + func VerifyTrustDomainMemberID(td spiffeid.TrustDomain, id spiffeid.ID) error + func VerifyTrustDomainWorkloadID(td spiffeid.TrustDomain, id spiffeid.ID) error + type AuthorizedEntryFetcher interface + FetchAuthorizedEntries func(ctx context.Context, id spiffeid.ID) ([]*types.Entry, error) + type AuthorizedEntryFetcherFunc func(ctx context.Context, id spiffeid.ID) ([]*types.Entry, error) + func (fn AuthorizedEntryFetcherFunc) FetchAuthorizedEntries(ctx context.Context, id spiffeid.ID) ([]*types.Entry, error) + type RateLimiter = api.RateLimiter + type RateLimiterFunc = api.RateLimiterFunc