sync

package
v0.0.0-...-4834d3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetManifestHeaders

func GetManifestHeaders(manifestPath string) (textproto.MIMEHeader, error)

Types

type APIProductGitSynchroniser

type APIProductGitSynchroniser struct {
	// contains filtered or unexported fields
}

func (*APIProductGitSynchroniser) Exec

func (s *APIProductGitSynchroniser) Exec(request Request) error

type APIProductTenantSynchroniser

type APIProductTenantSynchroniser struct {
	// contains filtered or unexported fields
}

func (*APIProductTenantSynchroniser) Exec

func (s *APIProductTenantSynchroniser) Exec(request Request) error

type APIProxyGitSynchroniser

type APIProxyGitSynchroniser struct {
	// contains filtered or unexported fields
}

func (*APIProxyGitSynchroniser) Exec

func (s *APIProxyGitSynchroniser) Exec(request Request) error

type APIProxyTenantSynchroniser

type APIProxyTenantSynchroniser struct {
	// contains filtered or unexported fields
}

func (*APIProxyTenantSynchroniser) Exec

func (s *APIProxyTenantSynchroniser) Exec(request Request) error

type CPIPackageTenantSynchroniser

type CPIPackageTenantSynchroniser struct {
	// contains filtered or unexported fields
}

func (*CPIPackageTenantSynchroniser) Exec

func (s *CPIPackageTenantSynchroniser) Exec(request Request) error

type Request

type Request struct {
	WorkDir      string
	ArtifactsDir string
	IncludedIds  []string
	ExcludedIds  []string
	PackageFile  string
}

type Syncer

type Syncer interface {
	Exec(request Request) error
}

func NewAPIProductGitSynchroniser

func NewAPIProductGitSynchroniser(exe *httpclnt.HTTPExecuter) Syncer

NewAPIProductGitSynchroniser returns an initialised APIProductGitSynchroniser instance.

func NewAPIProductTenantSynchroniser

func NewAPIProductTenantSynchroniser(exe *httpclnt.HTTPExecuter) Syncer

NewAPIProductTenantSynchroniser returns an initialised APIProductTenantSynchroniser instance.

func NewAPIProxyGitSynchroniser

func NewAPIProxyGitSynchroniser(exe *httpclnt.HTTPExecuter) Syncer

NewAPIProxyGitSynchroniser returns an initialised APIProxyGitSynchroniser instance.

func NewAPIProxyTenantSynchroniser

func NewAPIProxyTenantSynchroniser(exe *httpclnt.HTTPExecuter) Syncer

NewAPIProxyTenantSynchroniser returns an initialised APIProxyTenantSynchroniser instance.

func NewCPIPackageTenantSynchroniser

func NewCPIPackageTenantSynchroniser(exe *httpclnt.HTTPExecuter) Syncer

NewCPIPackageTenantSynchroniser returns an initialised CPIPackageTenantSynchroniser instance.

func NewSyncer

func NewSyncer(target string, functionType string, exe *httpclnt.HTTPExecuter) Syncer

type Synchroniser

type Synchroniser struct {
	// contains filtered or unexported fields
}

func New

func (*Synchroniser) ArtifactsToGit

func (s *Synchroniser) ArtifactsToGit(packageId string, workDir string, artifactsDir string, includedIds []string, excludedIds []string, draftHandling string, dirNamingType string, scriptCollectionMap []string) error

func (*Synchroniser) ArtifactsToTenant

func (s *Synchroniser) ArtifactsToTenant(packageId string, workDir string, artifactsDir string, includedIds []string, excludedIds []string) error

func (*Synchroniser) PackageToGit

func (s *Synchroniser) PackageToGit(packageDataFromTenant *api.PackageSingleData, packageId string, workDir string, artifactsDir string) error

func (*Synchroniser) SingleArtifactToTenant

func (s *Synchroniser) SingleArtifactToTenant(artifactId, artifactName, artifactType, packageId, artifactDir, workDir, parametersFile string, scriptMap []string) error

func (*Synchroniser) VerifyDownloadablePackage

func (s *Synchroniser) VerifyDownloadablePackage(packageId string) (packageDataFromTenant *api.PackageSingleData, readOnly bool, packageExists bool, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL