deploysource

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploySource

type DeploySource struct {
	RepoDir                   string
	AppDir                    string
	Revision                  string
	ApplicationConfig         []byte
	ApplicationConfigFilename string
}

func (*DeploySource) ToPluginDeploySource added in v0.51.0

func (d *DeploySource) ToPluginDeploySource() *common.DeploymentSource

type Provider

type Provider interface {
	Revision() string
	Get(ctx context.Context, logWriter io.Writer) (*DeploySource, error)
}

func NewProvider

func NewProvider(
	workingDir string,
	cloner SourceCloner,
	appGitPath *model.ApplicationGitPath,
	sd secretDecrypter,
) Provider

type SourceCloner

type SourceCloner interface {
	Clone(ctx context.Context, dest string) error
	Revision() string
	RevisionName() string
}

func NewGitSourceCloner

func NewGitSourceCloner(gc gitClient, cfg config.PipedRepository, revisionName, revision string) SourceCloner

func NewLocalSourceCloner

func NewLocalSourceCloner(repo git.Repo, revisionName, revision string) SourceCloner

Jump to

Keyboard shortcuts

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