testutil

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NatsTestOperatorA = CreateNatsTestOperatorFromValues(
		"SOACDATEBXKVKM32VHLGU4574XUZNUOZ6GVD45J7HVC4D74KJWCR52PZYY", "OAZQ4BE3XWWQZXMZNAJUXUL33QR3JEMGNYUOVRTOSIHZS24GR5OB7GCQ",
		"SOAHBKSH6IERVYYRYFF3XD7L6N3FJKQGDK3VVNO5HYVS3HEZIJZTKG32ZI", "ODSQ3FLLTVD4O3K4BAXXOFPURAFMOSNPB74DBTLPDD5NAXSBOIC6M3M5",
	)
	NatsTestAccountA = CreateNatsTestAccountFromValues(
		"SAAKZTYWR5QQQJOQ3HQMYPPDH2LIDGFS6USLW3P4K47HZEHR6AKVTJYPGQ", "ABVIZMZGIFNQNOEMNHPGQLSL5NW7SUMTPBWT3HD65DQDNDKOU4XGBTL4",
		"SAABWTQAYJ7BEI65HLX5F4GSWHZL6DH6UQOGWYCEV5OQ63XQT2BNQERQKY", "ADZUBQ2ZAWRNON6VNSZHGLOJ5SOYE6GY2YDBQV3I2ZBQIWWP5YBR3KWT",
	)
)

Functions

func AnyNatsTestAccountID

func AnyNatsTestAccountID() string

func GetProjectBinaryAssetsDir

func GetProjectBinaryAssetsDir() string

func GetProjectCRDDirectoryPaths

func GetProjectCRDDirectoryPaths() []string

func SanitizeTestName

func SanitizeTestName(name string) string

func ScopedTestName

func ScopedTestName(prefix, testName string) string

func ShortHash

func ShortHash(value string) string

Types

type NatsTestAccount

type NatsTestAccount struct {
	Root NatsTestAccountKey
	Sign NatsTestAccountKey
}

func CreateNatsTestAccount

func CreateNatsTestAccount() NatsTestAccount

func CreateNatsTestAccountFromValues

func CreateNatsTestAccountFromValues(rootSeed, rootPub, signSeed, signPub string) NatsTestAccount

func (NatsTestAccount) AccountID

func (k NatsTestAccount) AccountID() string

func (NatsTestAccount) String

func (k NatsTestAccount) String() string

type NatsTestAccountKey

type NatsTestAccountKey NatsTestKey

func CreateNatsTestAccountKey

func CreateNatsTestAccountKey() NatsTestAccountKey

func (NatsTestAccountKey) String

func (k NatsTestAccountKey) String() string

type NatsTestKey

type NatsTestKey struct {
	Key       nkeys.KeyPair
	PublicKey string
	Seed      []byte
}

func CreateNatsTestKeyFromSeed

func CreateNatsTestKeyFromSeed(seed string) NatsTestKey

func CreateNatsTestKeyFromValues

func CreateNatsTestKeyFromValues(seed, pub string) NatsTestKey

func CreateNatsTestUserKey

func CreateNatsTestUserKey() NatsTestKey

func (NatsTestKey) String

func (k NatsTestKey) String() string

type NatsTestOperator

type NatsTestOperator struct {
	Root NatsTestOperatorKey
	Sign NatsTestOperatorKey
}

func CreateNatsTestOperator

func CreateNatsTestOperator() NatsTestOperator

func CreateNatsTestOperatorFromValues

func CreateNatsTestOperatorFromValues(rootSeed, rootPub, signSeed, signPub string) NatsTestOperator

func (NatsTestOperator) String

func (k NatsTestOperator) String() string

type NatsTestOperatorKey

type NatsTestOperatorKey NatsTestKey

func CreateNatsTestOperatorKey

func CreateNatsTestOperatorKey() NatsTestOperatorKey

func (NatsTestOperatorKey) String

func (k NatsTestOperatorKey) String() string

Jump to

Keyboard shortcuts

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