Documentation ¶
Index ¶
- type CertificateAuthorityServer
- func (s *CertificateAuthorityServer) Close()
- func (s *CertificateAuthorityServer) DeleteSigningRecords(ctx context.Context, req *pb.DeleteSigningRecordsRequest) (*pb.DeletedSigningRecords, error)
- func (s *CertificateAuthorityServer) GetSigner() *Signer
- func (s *CertificateAuthorityServer) GetSigningRecords(req *pb.GetSigningRecordsRequest, ...) error
- func (s *CertificateAuthorityServer) SignCertificate(ctx context.Context, req *pb.SignCertificateRequest) (*pb.SignCertificateResponse, error)
- func (s *CertificateAuthorityServer) SignIdentityCertificate(ctx context.Context, req *pb.SignCertificateRequest) (*pb.SignCertificateResponse, error)
- type Config
- type Service
- type Signer
- type SignerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateAuthorityServer ¶
type CertificateAuthorityServer struct { pb.UnimplementedCertificateAuthorityServer // contains filtered or unexported fields }
CertificateAuthorityServer handles incoming requests.
func (*CertificateAuthorityServer) Close ¶ added in v2.11.0
func (s *CertificateAuthorityServer) Close()
func (*CertificateAuthorityServer) DeleteSigningRecords ¶ added in v2.7.18
func (s *CertificateAuthorityServer) DeleteSigningRecords(ctx context.Context, req *pb.DeleteSigningRecordsRequest) (*pb.DeletedSigningRecords, error)
func (*CertificateAuthorityServer) GetSigner ¶ added in v2.11.0
func (s *CertificateAuthorityServer) GetSigner() *Signer
func (*CertificateAuthorityServer) GetSigningRecords ¶ added in v2.7.18
func (s *CertificateAuthorityServer) GetSigningRecords(req *pb.GetSigningRecordsRequest, srv pb.CertificateAuthority_GetSigningRecordsServer) error
func (*CertificateAuthorityServer) SignCertificate ¶
func (s *CertificateAuthorityServer) SignCertificate(ctx context.Context, req *pb.SignCertificateRequest) (*pb.SignCertificateResponse, error)
func (*CertificateAuthorityServer) SignIdentityCertificate ¶
func (s *CertificateAuthorityServer) SignIdentityCertificate(ctx context.Context, req *pb.SignCertificateRequest) (*pb.SignCertificateResponse, error)
type Signer ¶ added in v2.11.0
type Signer struct {
// contains filtered or unexported fields
}
func NewSigner ¶ added in v2.11.0
func NewSigner(ownerClaim string, hubID string, signerConfig SignerConfig) (*Signer, error)
func (*Signer) SignIdentityCSR ¶ added in v2.11.0
type SignerConfig ¶
type SignerConfig struct { CAPool interface{} `yaml:"caPool" json:"caPool" description:"file path to the root certificates in PEM format"` KeyFile urischeme.URIScheme `yaml:"keyFile" json:"keyFile" description:"file name of CA private key in PEM format"` CertFile urischeme.URIScheme `yaml:"certFile" json:"certFile" description:"file name of CA certificate in PEM format"` ValidFrom string `yaml:"validFrom" json:"validFrom" description:"format https://github.com/karrick/tparse"` ExpiresIn time.Duration `yaml:"expiresIn" json:"expiresIn"` // contains filtered or unexported fields }
func (*SignerConfig) String ¶ added in v2.11.0
func (c *SignerConfig) String() string
func (*SignerConfig) Validate ¶
func (c *SignerConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.