Documentation
¶
Index ¶
- func ExtractProjectID(validations []engine.NextValidation) (string, error)
- func GenerateProject(projectId string, resources ...interface{}) (afero.Fs, projectLib.Project, error)
- func Logs(err error) io.ReadSeeker
- func ProcessDNSValidations(validations []engine.NextValidation, generatedDomainRegExp *regexp.Regexp, ...) error
- func ProcessProjectIDValidation(validations []engine.NextValidation, expectedProjectID string) (string, error)
- func Publish(tns tnsIface.Client, object map[string]interface{}, ...) error
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.
Types ¶
This section is empty.