giterminism_manager

package
v1.2.29 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

type FileReader interface {
	IsConfigExistAnywhere(ctx context.Context, relPath string) (bool, error)
	ReadConfig(ctx context.Context, customRelPath string) (string, []byte, error)
	ReadConfigTemplateFiles(ctx context.Context, customRelDirPath string, tmplFunc func(templatePathInsideDir string, data []byte, err error) error) error
	ConfigGoTemplateFilesGet(ctx context.Context, relPath string) ([]byte, error)
	ConfigGoTemplateFilesGlob(ctx context.Context, pattern string) (map[string]interface{}, error)
	ReadDockerfile(ctx context.Context, relPath string) ([]byte, error)
	IsDockerignoreExistAnywhere(ctx context.Context, relPath string) (bool, error)
	ReadDockerignore(ctx context.Context, relPath string) ([]byte, error)

	HelmChartExtender
}

type HelmChartExtender

type HelmChartExtender interface {
	LocateChart(ctx context.Context, name string, settings *cli.EnvSettings) (string, error)
	ReadChartFile(ctx context.Context, filePath string) ([]byte, error)
	LoadChartDir(ctx context.Context, dir string) ([]*chart.ChartExtenderBufferedFile, error)
}

type Inspector

type Inspector interface {
	InspectCustomTags() error
	InspectConfigGoTemplateRenderingEnv(ctx context.Context, envName string) error
	InspectConfigStapelFromLatest() error
	InspectConfigStapelGitBranch() error
	InspectConfigStapelMountBuildDir() error
	InspectConfigStapelMountFromPath(fromPath string) error
	InspectConfigDockerfileContextAddFile(relPath string) error
	InspectBuildContextFiles(ctx context.Context, matcher path_matcher.PathMatcher) error
}

type Interface

type Interface interface {
	FileReader() FileReader
	Inspector() Inspector

	LocalGitRepo() *git_repo.Local
	HeadCommit() string
	ProjectDir() string
	RelativeToGitProjectDir() string
	LooseGiterminism() bool
	Dev() bool
}

func NewManager

func NewManager(ctx context.Context, projectDir string, localGitRepo *git_repo.Local, headCommit string, options NewManagerOptions) (Interface, error)

type Manager

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

func (Manager) Dev

func (s Manager) Dev() bool

func (Manager) FileReader

func (m Manager) FileReader() FileReader

func (Manager) HeadCommit

func (s Manager) HeadCommit() string

func (Manager) Inspector

func (m Manager) Inspector() Inspector

func (Manager) LocalGitRepo

func (s Manager) LocalGitRepo() *git_repo.Local

func (Manager) LooseGiterminism

func (s Manager) LooseGiterminism() bool

func (Manager) ProjectDir

func (s Manager) ProjectDir() string

func (Manager) RelativeToGitProjectDir

func (s Manager) RelativeToGitProjectDir() string

type NewManagerOptions

type NewManagerOptions struct {
	LooseGiterminism bool
	Dev              bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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