Documentation
¶
Index ¶
- Constants
- func AnsibleOtherImageKeys() []string
- func AnsibleTasImageKeys() []string
- func ConvertAnsibleImageKey(ansibleImageKey string) string
- func DecompressGzipFile(gzipPath string, outputPath string) error
- func ExtractHash(image string) string
- func ExtractHashes(images []string) []string
- func FileFromImage(ctx context.Context, imageName, filePath, outputPath string) error
- func GetEnv(key string) string
- func GetEnvAsSecret(key string) string
- func GetFileContent(filePath string) ([]byte, error)
- func GetMapKeys(m map[string]string) []string
- func GetMapValues(m map[string]string) []string
- func LoadAnsibleCollectionSnapshotFile(zipFileURL, ansibleImagesFile string) ([]byte, error)
- func LogArray(message string, data []string)
- func LogAvailableAnsibleArtifacts()
- func LogMap(message string, data map[string]string)
- func MandatoryTasOperatorImageKeys() []string
- func MapAnsibleZipFileURL(originalPath string) (string, error)
- func OtherOperatorImageKeys() []string
- func ParseOperatorImages(helpContent string) (OperatorMap, OperatorMap)
- func RunImage(imageDefinition string, commands []string) (string, error)
- func SplitMap(original map[string]string, keysToKeep []string) (map[string]string, map[string]string)
- type AnsibleMap
- type OSArchMatrix
- type OperatorMap
- type Repository
- type RepositoryList
- type SnapshotData
Constants ¶
View Source
const ( EnvReleasesSnapshotFile = "SNAPSHOT" EnvAnsibleImagesFile = "ANSIBLE" EnvRepositoriesFile = "REPOSITORIES" EnvTestGithubToken = "TEST_GITHUB_TOKEN" // #nosec G101 EnvVersion = "VERSION" OperatorImageKey = "rhtas-operator-image" OperatorBundleImageKey = "rhtas-operator-bundle-image" AnsibleCollectionKey = "artifact-signer-ansible.collection.url" AnsibleCollectionSnapshotFile = "roles/tas_single_node/defaults/main.yml" AnsibleArtifactsURL = "https://api.github.com/repos/securesign/artifact-signer-ansible/actions/artifacts" OperatorBundleClusterServiceVersionFile = "rhtas-operator.clusterserviceversion.yaml" OperatorBundleClusterServiceVersionPath = "manifests/" + OperatorBundleClusterServiceVersionFile TasImageDefinitionRegexp = `^registry.redhat.io/rhtas/[\w/-]+@sha256:\w{64}$` OtherImageDefinitionRegexp = `^(registry.redhat.io|registry.access.redhat.com)` SnapshotImageDefinitionRegexp = `^[\.\w/-]+@sha256:\w{64}$` DefaultRepositoriesFile = "testdata/repositories.json" )
Variables ¶
This section is empty.
Functions ¶
func AnsibleOtherImageKeys ¶
func AnsibleOtherImageKeys() []string
func AnsibleTasImageKeys ¶
func AnsibleTasImageKeys() []string
func ConvertAnsibleImageKey ¶
func DecompressGzipFile ¶
DecompressGzipFile decompresses a Gzip file and writes the decompressed content to a specified output file.
func ExtractHash ¶
func ExtractHashes ¶
func FileFromImage ¶
func GetEnvAsSecret ¶
func GetFileContent ¶
func GetMapKeys ¶
func GetMapValues ¶
func LogAvailableAnsibleArtifacts ¶
func LogAvailableAnsibleArtifacts()
func MandatoryTasOperatorImageKeys ¶
func MandatoryTasOperatorImageKeys() []string
func MapAnsibleZipFileURL ¶
func OtherOperatorImageKeys ¶
func OtherOperatorImageKeys() []string
func ParseOperatorImages ¶
func ParseOperatorImages(helpContent string) (OperatorMap, OperatorMap)
Types ¶
type AnsibleMap ¶
func MapAnsibleImages ¶
func MapAnsibleImages(ansibleDefinitionFileContent []byte) (AnsibleMap, error)
func (*AnsibleMap) UnmarshalYAML ¶
func (data *AnsibleMap) UnmarshalYAML(value *yaml.Node) error
type OSArchMatrix ¶
func GetOSArchMatrix ¶
func GetOSArchMatrix() OSArchMatrix
type OperatorMap ¶
type Repository ¶
type RepositoryList ¶
type RepositoryList struct {
Data []Repository `json:"data"`
}
func LoadRepositoryList ¶
func LoadRepositoryList() (*RepositoryList, error)
func (*RepositoryList) FindByImage ¶
func (r *RepositoryList) FindByImage(image string) *Repository
type SnapshotData ¶
func ParseSnapshotData ¶
func ParseSnapshotData() (SnapshotData, error)
func (*SnapshotData) UnmarshalJSON ¶
func (data *SnapshotData) UnmarshalJSON(b []byte) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.