vsslib

package
v0.16.15 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWTDecode added in v0.9.0

func JWTDecode(token string, publicKey *rsa.PublicKey) (jwt.MapClaims, error)

func JWTEncode added in v0.7.0

func JWTEncode(claims jwt.MapClaims, privateKey *rsa.PrivateKey) (string, error)

func JWTToken added in v0.12.1

func JWTToken(authorizationToken string) (string, error)

func NewAWSSession added in v0.5.0

func NewAWSSession(awsID string, awsKey string, awsRegion string) (*session.Session, error)

func NewPostgresSession added in v0.13.8

func NewPostgresSession(dbHost string, dbPort string, dbUser string, dbPass string, dbName string, ssl bool) (*sql.DB, error)

func NewRouter

func NewRouter(assetsPath string) (*gin.Engine, error)

func PostgresMigrate added in v0.16.6

func PostgresMigrate(db *sql.DB, rollback bool) error

func RSAPrivateFile added in v0.14.0

func RSAPrivateFile() (*rsa.PrivateKey, error)

func RSAPublicFile added in v0.14.0

func RSAPublicFile() (*rsa.PublicKey, error)

func RSAPublicUrl added in v0.14.0

func RSAPublicUrl(pemURL string) (*rsa.PublicKey, error)

Types

type Auth0Handler added in v0.15.0

type Auth0Handler interface {
	RoleList() ([]*management.Role, error)
	RoleShow(id string) (*management.Role, *management.UserList, error)
	RoleCreate(name string, description string) error
	RoleUpdate(id string, name string, description string) error
	RoleDelete(id string) error
	UserList() ([]*management.User, error)
	UserShow(id string) (*management.User, error)
	UserCreate(name string, email string) (string, error)
	UserUpdate(id string, name string, email string, passreset bool) error
	UserBlock(id string) error
	UserDelete(id string) error
	PassReset(email string) error
}

func NewAuth0Session added in v0.14.2

func NewAuth0Session(domain string, client string, secret string, connection string) (Auth0Handler, error)

type CWLHandler

type CWLHandler interface {
	Write(msg string) error
	Get(limit int64) (*cloudwatchlogs.GetLogEventsOutput, error)
}

func NewCloudwatchLogSess added in v0.5.0

func NewCloudwatchLogSess(sess *session.Session, group string, stream string) (CWLHandler, error)

type DynamoHandler

type DynamoHandler interface {
	List(filter expression.ConditionBuilder, projection expression.ProjectionBuilder) ([]map[string]interface{}, error)
	Create(map[string]interface{}) error
	Show(key map[string]*dynamodb.AttributeValue) (map[string]interface{}, error)
	Delete(key map[string]*dynamodb.AttributeValue) error
}

func NewDynamoDBSession added in v0.5.0

func NewDynamoDBSession(sess *session.Session, table string) (DynamoHandler, error)

type LoggerHandler added in v0.6.0

type LoggerHandler interface {
	Panic(msg string)
	Error(msg string)
}

func NewZapLogger added in v0.6.0

func NewZapLogger() (LoggerHandler, error)

type OpHandler

type OpHandler interface {
	Get(item string, label string) (string, error)
}

func NewOPSession

func NewOPSession(opURL string, opToken string, opVault string) (OpHandler, error)

Jump to

Keyboard shortcuts

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