Documentation ¶
Overview ¶
The MIT License (MIT)
Copyright (c) 2020 - 2022 Reliza Incorporated (Reliza (tm), https://reliza.io)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- Constants
- Variables
- func Execute()
- func GetDigestedImageFromSubstitution(subst Substitution) string
- func GetMatchingKeyFromSubstitution(subst Substitution) string
- func IsInBitnamiParse(line string, whitespacePrefix int) bool
- func ReadBomJsonFromFile(filePath string) map[string]interface{}
- func ReplaceTags(replaceTagsVars ReplaceTagsVars) string
- type BomInput
- type ErrorBody
- type IsHasCertRHResp
- type KeyValueSorted
- type ProjectAuthResp
- type ProjectAuthRespMaps
- type PropSecretParse
- type ReplaceTagsVars
- type RequestSession
- type ResolvedProperty
- type ResolvedSecret
- type SecretProps
- type SecretPropsRHResp
- type SecretPropsRHRespMaps
- type SecretTemplateResolver
- type SetCertRHResp
- type Substitution
- type TagRecord
Constants ¶
const ( ShellToUse = "sh" KubectlApp = "tools/kubectl" )
const FULL_RELEASE_GQL_DATA = RELEASE_GQL_DATA + `
sourceCodeEntryDetails {
uuid
branchUuid
vcsUuid
vcsBranch
commit
commits
commitMessage
vcsTag
notes
org
dateActual
}
vcsRepository {
uuid
name
org
uri
type
}
artifactDetails {
uuid
identifier
org
branch
buildId
buildUri
cicdMeta
digests
isInternal
artifactType {
name
aliases
}
notes
tagRecords{
key
value
}
dateFrom
dateTo
buildDuration
packageType
version
publisher
group
dependencies
}
projectName
namespace
`
const PROJECT_GQL_DATA = `` /* 246-byte string literal not displayed */
const RELEASE_GQL_DATA = `` /* 503-byte string literal not displayed */
Variables ¶
var Version string = "Version_Managed_By_CI_AND_Reliza"
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetDigestedImageFromSubstitution ¶
func GetDigestedImageFromSubstitution(subst Substitution) string
func GetMatchingKeyFromSubstitution ¶
func GetMatchingKeyFromSubstitution(subst Substitution) string
func IsInBitnamiParse ¶
func ReadBomJsonFromFile ¶
func ReplaceTags ¶
func ReplaceTags(replaceTagsVars ReplaceTagsVars) string
Types ¶
type IsHasCertRHResp ¶
type IsHasCertRHResp struct {
Responsewrapper bool `json:"isInstanceHasSealedSecretCert"`
}
type KeyValueSorted ¶
type KeyValueSorted struct { Key string Value Substitution Length int }
type ProjectAuthResp ¶
type ProjectAuthResp struct {
Responsewrapper ProjectAuthRespMaps `json:"artifactDownloadSecrets"`
}
type ProjectAuthRespMaps ¶
type PropSecretParse ¶
type ReplaceTagsVars ¶
type RequestSession ¶
type ResolvedProperty ¶
type ResolvedSecret ¶
type SecretProps ¶
type SecretPropsRHResp ¶
type SecretPropsRHResp struct {
Responsewrapper SecretPropsRHRespMaps `json:"getInstancePropSecrets"`
}
type SecretPropsRHRespMaps ¶
type SecretPropsRHRespMaps struct { Secrets []ResolvedSecret `json:"secrets"` Properties []ResolvedProperty `json:"properties"` }
type SecretTemplateResolver ¶
type SetCertRHResp ¶
type SetCertRHResp struct {
Responsewrapper bool `json:"setInstanceSealedSecretCert"`
}
type Substitution ¶
func GetSubstitutionFromDigestedString ¶
func GetSubstitutionFromDigestedString(ds string) Substitution