package
0.0.0-20241119151531-f211d2b7cd89
Repository: https://github.com/app-sre/go-qontract-reconcile.git
Documentation: pkg.go.dev

# README

Git Partition Sync - Producer

Uploads an encrypted archive of latest versions of target GitLab projects to s3 bucket.
This works in tandem with git-partition-sync-consumer to sync GitLab instances in isolated environments. Utilizes the AWS SDK to communicate to the desired s3 buckets.

age x25519 format keys are utilized.

gitlab-sync-diagram

Uploaded s3 Object Key Format

Uploaded keys are base64 encoded. Decoded, the key is a json string with following structure:

{
  "group":string,
  "project_name":string,
  "commit_sha":string,
  "local_branch":string,
  "remote_branch":string
}

Note: the values within each json object will mirror values for each destination defined within config file (exluding commit_sha which is the latest commit pulled from source)

# Functions

No description provided by the author
No description provided by the author
NewGitPartitionSyncProducer returns a new GitPartitionSyncProducer.

# Constants

The query or mutation executed by GetGitlabSyncApps.
The query or mutation executed by GetSaasResourceTemplateRefs.

# Structs

GetGitlabSyncAppsApps_v1App_v1 includes the requested fields of the GraphQL type App_v1.
GetGitlabSyncAppsApps_v1App_v1CodeComponentsAppCodeComponents_v1 includes the requested fields of the GraphQL type AppCodeComponents_v1.
GetGitlabSyncAppsApps_v1App_v1CodeComponentsAppCodeComponents_v1GitlabSyncCodeComponentGitlabSync_v1 includes the requested fields of the GraphQL type CodeComponentGitlabSync_v1.
GetGitlabSyncAppsApps_v1App_v1CodeComponentsAppCodeComponents_v1GitlabSyncCodeComponentGitlabSync_v1DestinationProjectCodeComponentGitlabSyncProject_v1 includes the requested fields of the GraphQL type CodeComponentGitlabSyncProject_v1.
GetGitlabSyncAppsApps_v1App_v1CodeComponentsAppCodeComponents_v1GitlabSyncCodeComponentGitlabSync_v1SourceProjectCodeComponentGitlabSyncProject_v1 includes the requested fields of the GraphQL type CodeComponentGitlabSyncProject_v1.
GetGitlabSyncAppsResponse is returned by GetGitlabSyncApps on success.
GetSaasResourceTemplateRefsResponse is returned by GetSaasResourceTemplateRefs on success.
GetSaasResourceTemplateRefsSaas_filesSaasFile_v2 includes the requested fields of the GraphQL type SaasFile_v2.
GetSaasResourceTemplateRefsSaas_filesSaasFile_v2ResourceTemplatesSaasResourceTemplate_v2 includes the requested fields of the GraphQL type SaasResourceTemplate_v2.
GetSaasResourceTemplateRefsSaas_filesSaasFile_v2ResourceTemplatesSaasResourceTemplate_v2TargetsSaasResourceTemplateTarget_v2 includes the requested fields of the GraphQL type SaasResourceTemplateTarget_v2.
GitPartitionSyncProducer is the producer integration for the git partition sync.