Documentation
¶
Index ¶
Constants ¶
View Source
const (
AdminAccountID = "00000000-0000-0000-0000-000000000000"
)
Variables ¶
View Source
var ( ErrNoStorageObjectFound = errors.New("no storage object found") ErrTooManyStorageObjectsFound = errors.New("too many storage objects found") )
Functions ¶
This section is empty.
Types ¶
type AsymmetricSigner ¶
type AsymmetricSigner interface { AsymmetricSign(context.Context, *kmspb.AsymmetricSignRequest, ...gax.CallOption) ( *kmspb.AsymmetricSignResponse, error, ) GetPublicKey(context.Context, *kmspb.GetPublicKeyRequest, ...gax.CallOption) (*kmspb.PublicKey, error) }
AsymmetricSigner is implemented by the kms.KeyManagementClient and it mainly exists so that testing can be easily done via a fake version of the kms service.
type Signer ¶
type Signer interface { SignTx(ctx context.Context, personaTag string, namespace string, data any) (*sign.Transaction, error) SignSystemTx(ctx context.Context, namespace string, data any) (*sign.Transaction, error) SignerAddress() string }
func NewKMSSigner ¶
func NewNakamaSigner ¶
type TestOnlySigner ¶ added in v1.3.0
type TestOnlySigner interface { Signer SignTxWithTimestamp(ctx context.Context, personaTag string, namespace string, data any, timestamp int64, salt uint16) ( *sign.Transaction, error) }
func NewKMSTestOnlySigner ¶ added in v1.3.0
func NewKMSTestOnlySigner(ctx context.Context, asymmetricSigner AsymmetricSigner, keyName string) ( TestOnlySigner, error, )
only use this for testing
Click to show internal directories.
Click to hide internal directories.