helper

package
v0.0.0-...-ead3321 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: AGPL-3.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const LETTERS_FOR_ID = "abcdefghijklmnopqrstuvwxyz0123456789" // lowercase RFC 1123

Variables

View Source
var (
	PREFIX_CLUSTER_ID           = "c"
	PREFIX_CONTRACT_ID          = "p"
	PREFIX_APPLICATION_GROUP_ID = "a"
	ID_LENGTH                   = 9
)

Functions

func CreatePostgres

func CreatePostgres() (*dockertest.Pool, *dockertest.Resource, error)

CreatePostgres create postgres docker container

func GenerateApplicaionGroupId

func GenerateApplicaionGroupId() string

func GenerateClusterId

func GenerateClusterId() string

func GenerateContractId

func GenerateContractId() string

func GetHostAndPort

func GetHostAndPort(resource *dockertest.Resource) (string, string)

func RemovePostgres

func RemovePostgres(pool *dockertest.Pool, resource *dockertest.Resource) error

RemovePostgres remove postgres docker container

func ValidateApplicationGroupId

func ValidateApplicationGroupId(id string) bool

func ValidateClusterId

func ValidateClusterId(id string) bool

func ValidateContractId

func ValidateContractId(id string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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