deploysource

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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