signer

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct {
	crypto.Signer
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(name string) *Signer

func (Signer) AttestationCRNameAndNamespace

func (s Signer) AttestationCRNameAndNamespace() (string, string)

AttestationCRName returns the name of the attestation request name in case of a pending signer.

func (Signer) Certificate

func (s Signer) Certificate() *x509.Certificate

func (Signer) Error

func (s Signer) Error() error

func (Signer) Failed

func (s Signer) Failed() (bool, error)

func (Signer) Name

func (s Signer) Name() string

func (Signer) NotInitialized

func (s Signer) NotInitialized() bool

func (Signer) Pending

func (s Signer) Pending() bool

Pending returns if the signer is in pending state

func (Signer) Ready

func (s Signer) Ready() bool

func (*Signer) SetError

func (s *Signer) SetError(err error)

func (*Signer) SetPending

func (s *Signer) SetPending(requestName, namespace string)

func (*Signer) SetReady

func (s *Signer) SetReady(cs crypto.Signer, cert *x509.Certificate)

type SignerMap

type SignerMap struct {
	// contains filtered or unexported fields
}

func NewSignerMap

func NewSignerMap() *SignerMap

func (*SignerMap) Add

func (sm *SignerMap) Add(s *Signer)

func (*SignerMap) Delete

func (sm *SignerMap) Delete(s *Signer)

func (*SignerMap) Get

func (sm *SignerMap) Get(name string) *Signer

func (*SignerMap) Names

func (sm *SignerMap) Names() []string

func (*SignerMap) PendingSigners

func (sm *SignerMap) PendingSigners() []*Signer

func (*SignerMap) UnInitializedSigners

func (sm *SignerMap) UnInitializedSigners() []*Signer

type SignerState

type SignerState string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL