sync

package
v0.0.0-...-be3da68 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 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 APIMGitSynchroniser

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

func (*APIMGitSynchroniser) Exec

func (s *APIMGitSynchroniser) Exec(workDir string, artifactsDir string, includedIds []string, excludedIds []string) error

type APIMTenantSynchroniser

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

func (*APIMTenantSynchroniser) Exec

func (s *APIMTenantSynchroniser) Exec(workDir string, artifactsDir string, includedIds []string, excludedIds []string) error

type Syncer

type Syncer interface {
	Exec(workDir string, artifactsDir string, includedIds []string, excludedIds []string) error
}

func NewAPIMGitSynchroniser

func NewAPIMGitSynchroniser(exe *httpclnt.HTTPExecuter) Syncer

NewAPIMGitSynchroniser returns an initialised APIMGitSynchroniser instance.

func NewAPIMTenantSynchroniser

func NewAPIMTenantSynchroniser(exe *httpclnt.HTTPExecuter) Syncer

NewAPIMTenantSynchroniser returns an initialised APIMTenantSynchroniser 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