Documentation ¶
Index ¶
- Constants
- Variables
- func CreatePostgres() (*dockertest.Pool, *dockertest.Resource, error)
- func GenerateApplicaionGroupId() string
- func GenerateClusterId() string
- func GenerateContractId() string
- func GetHostAndPort(resource *dockertest.Resource) (string, string)
- func RemovePostgres(pool *dockertest.Pool, resource *dockertest.Resource) error
- func ValidateApplicationGroupId(id string) bool
- func ValidateClusterId(id string) bool
- func ValidateContractId(id string) bool
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 RemovePostgres ¶
func RemovePostgres(pool *dockertest.Pool, resource *dockertest.Resource) error
RemovePostgres remove postgres docker container
func ValidateClusterId ¶
func ValidateContractId ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.