builder

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepository

func GetRepository(b *builder.Engine) (string, error)

GetRepository returns package source repository for the provided builder

func NewGenerator

func NewGenerator(config Config) (builder.Generator, error)

NewGenerator creates a new generator instance based on the provided configuration

func NewSyncer

func NewSyncer(b *builder.Engine) (builder.Syncer, error)

NewSyncer returns a new syncer instance for the provided builder

Types

type Config

type Config struct {
	// RemoteSupport is an address of an Ops Center clusters should connect to
	// after installation
	RemoteSupportAddress string
	// RemoteSupportToken is the authentication token used to connector to
	// an Ops Center
	RemoteSupportToken string
	// CACertPath is a path to the CA certificate to pack with the installer
	CACertPath string

	// EncryptionKey is a key used to encrypt packages at rest in the installer
	EncryptionKey string
	// contains filtered or unexported fields
}

Config is the generator configuration

func (*Config) CheckAndSetDefaults

func (c *Config) CheckAndSetDefaults() (err error)

CheckAndSetDefaults validates generator config and fills in defaults

Jump to

Keyboard shortcuts

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