Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attestation ¶
type Attestation struct {
// contains filtered or unexported fields
}
Attestation controls the sining and verification of resources.
func NewAttestation ¶
func NewAttestation(key string) (*Attestation, error)
NewAttestation instantiate the Attestation helper setting the default parameters expected for signing and verifying resources.
func (*Attestation) GetPass ¶
func (a *Attestation) GetPass(confirm bool) ([]byte, error)
GetPass prompts for the user private-key password only once, when the password is already stored it returns instead.
func (*Attestation) Sign ¶
func (a *Attestation) Sign(payloadPath, outputSignature string) error
Sign signs the resource file (first argument) on the specificed signature location.
Click to show internal directories.
Click to hide internal directories.