Documentation ¶
Index ¶
- func AccessKey(key *ecdsa.PrivateKey, claims elephantine.JWTClaims) (string, error)
- func Claims(t *testing.T, user string, scope string, units ...string) elephantine.JWTClaims
- func IsTwirpError(t test.TestingT, err error, code twirp.ErrorCode)
- func NewSigningKey() (*ecdsa.PrivateKey, error)
- func PurgeBackingServices() error
- func StandardClaims(t *testing.T, scope string, units ...string) elephantine.JWTClaims
- type BackingServices
- type Environment
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessKey ¶
func AccessKey(key *ecdsa.PrivateKey, claims elephantine.JWTClaims) (string, error)
func NewSigningKey ¶
func NewSigningKey() (*ecdsa.PrivateKey, error)
func PurgeBackingServices ¶
func PurgeBackingServices() error
func StandardClaims ¶
Types ¶
type BackingServices ¶
type BackingServices struct {
// contains filtered or unexported fields
}
func GetBackingServices ¶
func GetBackingServices() (*BackingServices, error)
func (*BackingServices) Purge ¶
func (bs *BackingServices) Purge() error
type Environment ¶
type Environment struct { S3 *s3.Client Bucket string PostgresURI string ReportingURI string Migrator *migrate.Migrator }
func SetUpBackingServices ¶
func SetUpBackingServices( t T, instrument *elephantine.HTTPClientInstrumentation, skipMigrations bool, ) Environment
Click to show internal directories.
Click to hide internal directories.