Structin secretstorecompute-sdk-go v1.11.0View source
type Secret struct {
// contains filtered or unexported fields
}

Secret represents a secret in a store

Methods

func (s *Secret) Handle() *fastly.Secret

Handle returns an opaque pointer for other packages which need a Secret.

This should not be needed by user code.

Returns

*fastly.Secret

Plaintext

View source
func (s *Secret) Plaintext() ([]byte, error)

Plaintext decrypts and returns the secret value as a byte slice.

Returns

([]byte, error)