deploysource

package
v0.49.4-rc0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 11 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        *config.Config
	GenericApplicationConfig config.GenericApplicationSpec
}

type Provider

type Provider interface {
	Revision() string
	Get(ctx context.Context, logWriter io.Writer) (*DeploySource, error)
	GetReadOnly(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