Documentation ¶
Index ¶
- func CreateCACertificate(tb testing.TB, parent *x509.Certificate, parentKey crypto.Signer) (*x509.Certificate, crypto.Signer)
- func CreateCertificate(tb testing.TB, tmpl, parent *x509.Certificate, pub, priv interface{}) *x509.Certificate
- func CreateX509SVID(tb testing.TB, parent *x509.Certificate, parentKey crypto.Signer, ...) (*x509.Certificate, crypto.Signer)
- func NewEC256Key(tb testing.TB) *ecdsa.PrivateKey
- func NewSerial(tb testing.TB) *big.Int
- type CA
- type Logger
- type WorkloadAPI
- type X509SVID
- type X509SVIDResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCACertificate ¶
func CreateCACertificate(tb testing.TB, parent *x509.Certificate, parentKey crypto.Signer) (*x509.Certificate, crypto.Signer)
func CreateCertificate ¶
func CreateCertificate(tb testing.TB, tmpl, parent *x509.Certificate, pub, priv interface{}) *x509.Certificate
func CreateX509SVID ¶
func NewEC256Key ¶
func NewEC256Key(tb testing.TB) *ecdsa.PrivateKey
NewEC256Key returns an ECDSA key over the P256 curve
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
func (*CA) CreateX509SVID ¶
func (*CA) Roots ¶
func (ca *CA) Roots() []*x509.Certificate
type WorkloadAPI ¶
type WorkloadAPI struct {
// contains filtered or unexported fields
}
func NewWorkloadAPI ¶
func NewWorkloadAPI(tb testing.TB, resp *X509SVIDResponse) *WorkloadAPI
func (*WorkloadAPI) Addr ¶
func (w *WorkloadAPI) Addr() string
func (*WorkloadAPI) SetX509SVIDResponse ¶
func (w *WorkloadAPI) SetX509SVIDResponse(r *X509SVIDResponse)
func (*WorkloadAPI) Stop ¶
func (w *WorkloadAPI) Stop()
type X509SVIDResponse ¶
type X509SVIDResponse struct { SVIDs []X509SVID Bundle []*x509.Certificate FederatedBundles map[string][]*x509.Certificate }
func (*X509SVIDResponse) ToProto ¶
func (r *X509SVIDResponse) ToProto(tb testing.TB) *workload.X509SVIDResponse
Click to show internal directories.
Click to hide internal directories.