tccUtils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: BSD-3-Clause Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractProjectID

func ExtractProjectID(validations []engine.NextValidation) (string, error)

ExtractProjectID returns the project ID from validations (no validation performed).

func GenerateProject

func GenerateProject(projectId string, resources ...interface{}) (afero.Fs, projectLib.Project, error)

GenerateProject creates a project in memfs with the provided resources It uses schema's SetWithStruct which internally uses yasser to write YAML files Returns both the filesystem and the project so the fs can be used for TCC compilation

func Logs

func Logs(err error) io.ReadSeeker

Logs converts an error to an io.ReadSeeker, similar to the old compiler.Logs() behavior

func ProcessDNSValidations

func ProcessDNSValidations(
	validations []engine.NextValidation,
	generatedDomainRegExp *regexp.Regexp,
	devMode bool,
	dvPublicKey []byte,
) error

ProcessDNSValidations runs DNS validations from TCC compiler.

func ProcessProjectIDValidation

func ProcessProjectIDValidation(
	validations []engine.NextValidation,
	expectedProjectID string,
) (string, error)

ProcessProjectIDValidation runs project ID validation from TCC compiler.

func Publish

func Publish(
	tns tnsIface.Client,
	object map[string]interface{},
	indexes map[string]interface{},
	projectID string,
	branch string,
	commit string,
) error

Publish publishes the compiled object and indexes to TNS

Types

This section is empty.

Directories

Path Synopsis
Package convert holds the map<->tcc object conversion.
Package convert holds the map<->tcc object conversion.

Jump to

Keyboard shortcuts

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