initializer

package
v0.0.0-...-a2f2221 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	Download(path, source string) error
}

func NewGitDownloader

func NewGitDownloader(logger log.Logger) Downloader

type Initializer

type Initializer struct {
	HTTPDownloader Downloader
	GitDownloader  Downloader
	ZipProcessor   Processor
	// contains filtered or unexported fields
}

func NewInitializer

func NewInitializer(logger log.Logger, sources Sources, secrets, assets map[string]string, root string) (*Initializer, error)

func NewInitializerFromStrings

func NewInitializerFromStrings(logger log.Logger, sourcesStr, secretsStr, assetsStr, root string) (*Initializer, error)

func (*Initializer) Init

func (i *Initializer) Init() error

func (*Initializer) Secrets

func (i *Initializer) Secrets() string

func (*Initializer) Sources

func (i *Initializer) Sources() string

func (*Initializer) Validate

func (i *Initializer) Validate() error

type Processor

type Processor interface {
	Process(path string) error
}

type Sources

type Sources map[string]string

func (*Sources) Copy

func (s *Sources) Copy() Sources

func (*Sources) Validate

func (s *Sources) Validate() error

FIXME: Merge with the one in init

type TemplateData

type TemplateData struct {
	Secrets *map[string]string
}

type ZipProcessor

type ZipProcessor struct {
}

func (*ZipProcessor) Process

func (u *ZipProcessor) Process(path string) error

Jump to

Keyboard shortcuts

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