Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublicKey ¶
func PublicKey(pcr *certsv1beta1.PodCertificateRequest) (crypto.PublicKey, error)
PublicKey extracts the subject public key from a PodCertificateRequest.
Types ¶
type Client ¶ added in v0.2.0
type Client struct {
// contains filtered or unexported fields
}
Client selects one served PCR API version for both watches and status updates. Signers use the beta representation internally to retain legacy public keys.
func NewClient ¶ added in v0.2.0
func NewClient(kc kubernetes.Interface) (*Client, error)
NewClient prefers v1 and falls back only when discovery reports it absent.
func (*Client) GetCached ¶ added in v0.2.0
func (c *Client) GetCached(namespace, name string) (*certsv1beta1.PodCertificateRequest, error)
GetCached reads from the owned informer cache and returns the signers' beta representation. Callers must treat the result as read-only, as with a standard lister.
func (*Client) Informer ¶ added in v0.2.0
func (c *Client) Informer() cache.SharedIndexInformer
Informer returns this client's informer, which caches the selected API version. The caller must run it once for all controllers sharing this client.
func (*Client) UpdateStatus ¶ added in v0.2.0
func (c *Client) UpdateStatus(ctx context.Context, pcr *certsv1beta1.PodCertificateRequest) error
UpdateStatus writes through the same API version used by the informer.