Documentation
¶
Index ¶
- 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 IDFromProto(protoID *types.SPIFFEID) (spiffeid.ID, error)
- func OK() *types.Status
- func ParseJWTAuthorities(keys []*types.JWTKey) ([]*common.PublicKey, error)
- func ProtoFromID(id spiffeid.ID) *types.SPIFFEID
- func ProtoToBundle(b *types.Bundle) (*common.Bundle, error)
- func ProtoToRegistrationEntry(e *types.Entry) (*common.RegistrationEntry, error)
- func PublicKeysToProto(keys []*common.PublicKey) []*types.JWTKey
- func RegistrationEntryToProto(e *common.RegistrationEntry) (*types.Entry, error)
- func StatusFromError(err error) *types.Status
- type CallCounter
- type Names
- type RateLimiter
- type RateLimiterFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificatesToProto ¶
func CertificatesToProto(rootCas []*common.Certificate) []*types.X509Certificate
func CreateStatus ¶
CreateStatus creates a proto Status
func IDFromProto ¶
IDFromProto converts a SPIFFE ID from the given types.SPIFFEID to spiffeid.ID
func ParseJWTAuthorities ¶
func ProtoFromID ¶
ProtoFromID converts a SPIFFE ID from the given spiffeid.ID to types.SPIFFEID
func ProtoToRegistrationEntry ¶
func ProtoToRegistrationEntry(e *types.Entry) (*common.RegistrationEntry, error)
ProtoToRegistrationEntry converts and validate entry into common registration entry
func RegistrationEntryToProto ¶
func RegistrationEntryToProto(e *common.RegistrationEntry) (*types.Entry, error)
RegistrationEntryToProto converts RegistrationEntry into types Entry
func StatusFromError ¶
StatusFromError creates a proto Status from given error
Types ¶
type CallCounter ¶
type CallCounter interface {
AddLabel(name, value string)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.