Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertCPUToNum(cpu *resource.Quantity) int
- func ConvertMemToNum(mem *resource.Quantity) int
- func GenRandomName(prefix string) string
- func GetDefaultVersion(comp string, versions *config.Versions) string
- func GetErrorStatusCode(err error) int
- func GetFullFabricVersion(version, tag string) string
- func GetMajorRelease(version string) int
- func GetServiceName(compName string) string
- func GetZoneAndRegion(zone, region string) (string, string)
- func IgnoreAlreadyExistError(err error) error
- func IsFullFabricVersion(version string) bool
- func IsValidVersion(comp string, version string, versions *config.Versions) bool
- type Resource
- type ResourceReturn
Constants ¶
View Source
const ( V1_4 = "V1.4" V2_0 = "V2.0" // Current 2.5.1 versions V1_4_9 = "1.4.9" V2_2_1 = "2.2.1" )
Variables ¶
View Source
var Lookup = map[string]string{
"1.4.6-20200520": "1.4.6-2",
"1.4.7-20200618": "1.4.7-0",
"1.4.7-20200714": "1.4.7-1",
"1.4.7-20200825": "1.4.7-2",
"1.4.7-20201001": "1.4.7-3",
"2.1.1-20200618": "2.1.1-0",
"2.1.1-20200714": "2.1.1-1",
"2.1.1-20200825": "2.1.1-2",
"2.1.1-20201001": "2.1.1-3",
"sha256:5e41ad17db016c3d3026ec931b9f8bc4ecb44e7617def38b5ed8ef55d8cb0f6d": "1.4.9-0",
"sha256:2037c532f6c823667baed5af248c01c941b2344c2a939e451b81ea0e03938243": "1.4.9-1",
"sha256:3b9ef25ad835fa6289f8e5a6c7f48db016d1f317348bc1cee44be330a43aa176": "1.4.9-1",
"sha256:730dc10549f47e039e6609f18167825ce2bcefdaddf40715c37b54bf7bd5e017": "2.2.1-1",
"sha256:04b405a56b2e8e94862dd490d12e41ff8244990b8074214d2d3afc515a2022ba": "1.4.9-1",
"sha256:f6993b4deb2c62f54954b98a20e515eb941c67d6d4477f12eb3d4e3efbb75f5e": "2.2.1-1",
"sha256:889e64f33172a6bc900060c0327078a25b4893a5487d096961bd81066d523aaa": "1.4.9-2",
"sha256:668785bc9c125c4f511edd41f51db641586a09a1dc6b1204ac942c644ba77276": "1.4.9-2",
"sha256:a657e9269aa7d99da6c853fdf6cd8968f6bfcb83cf4fb0cc0543822c54be9644": "2.2.1-2",
"sha256:5ee941b705cd0a65ae227e328b7d40d3afde5c84c298339ef6b15375f998221e": "1.4.9-2",
"sha256:5fda84689e5b9ef45ea31343106c838e7dc831c5f0d6cf3ed8879a7674a74cc3": "2.2.1-2",
"sha256:9c0ffb13f2bb6443ba88ac83b1dfd8e96a4b550880952bd7090b37fa6c28e322": "1.4.9-3",
"sha256:c1cb180f85d0f6ffbbe861efc990bbe21f617736b401a6f4d9b1c8d8dfb69fb5": "1.4.9-3",
"sha256:c1c2f0ab4a76e3639d7e93c4d2276e9cd142f4e545b8f77f71066602d95e51ed": "2.2.1-3",
"sha256:13935d0d3dfbea91919478a0dfc0eb1284c3f62e9d9add663d1e5336eafe7b85": "1.4.9-3",
"sha256:d8f2dfbb2219141adc07e4dcf9ade152ee2c3a4236f0bf175bffc49b040ad775": "2.2.1-3",
"sha256:ad7591b7d8c141d7eac67c79178ad77a646515a4c1041843bd8c6a653a2d5f40": "1.4.9-4",
"sha256:fbddbab59e1a356479fe6b2d5a4244268026027707955d484c7603709d9066b2": "2.2.1-4",
"sha256:c29fda827e18f148573a020a28287aa6f7f160700bfca33ff795e648c6da54d0": "1.4.9-4",
"sha256:d096e5815c3c28e9ee9fc4378c0672d6e10f871148cc13649ab4337ea177f7f7": "2.2.1-4",
"sha256:d22fb839635e880abff622257c5e3c9d5984f27be0c06ec1106dc748a88baaa0": "1.4.9-5",
"sha256:b16fe2cbae5f53fc5494b7a09bdcf13e1d18da52f9a86b6ee6e852885c7fcd84": "1.4.9-5",
"sha256:fa051805656584edec209e538e156f1cc1b0929f4ef22831bdc89f65a61ea125": "2.2.1-5",
"sha256:a4454e9c2a0a42665512b005d1ddb2b2a0a3c07b0304daf0aea80a1f05339335": "1.4.9-5",
"sha256:e2333d3545e814ab06aa5223fe53545d54b708bdf52dd1dbb8d10931a0408594": "2.2.1-5",
"sha256:383ebcc1d9bcacf722284a506c03d5ebabd436bb4f84a0ddf75ffe85142cf77c": "1.4.9-6",
"1.4.9-20201030": "1.4.9-1",
"1.4.9-20201119": "1.4.9-2",
"1.4.9-20201208": "1.4.9-3",
"1.4.9-20210112": "1.4.9-4",
"1.4.9-20210222": "1.4.9-5",
"2.2.1-20201030": "2.2.1-1",
"2.2.1-20201119": "2.2.1-2",
"2.2.1-20201208": "2.2.1-3",
"2.2.1-20210112": "2.2.1-4",
"2.2.1-20210222": "2.2.1-5",
}
Maps <fabricVersion>-<releaseDate> from <ca/orderer/peer>Tag to its corresponding fabric version
Functions ¶
func ConvertCPUToNum ¶
func ConvertMemToNum ¶
func GenRandomName ¶
func GetErrorStatusCode ¶
func GetFullFabricVersion ¶
func GetMajorRelease ¶
func GetServiceName ¶
func GetZoneAndRegion ¶
func IgnoreAlreadyExistError ¶
func IsFullFabricVersion ¶
Types ¶
type ResourceReturn ¶
func GetTotalDeploymentResources ¶
func GetTotalDeploymentResources(resources []*corev1.ResourceRequirements) *ResourceReturn
Click to show internal directories.
Click to hide internal directories.