Documentation
¶
Overview ¶
Package deploylink validates and builds "Deploy to Levelrail" links for git repositories and templates. The dashboard mirrors these rules in web/src/lib/deployLink.ts, and both run the cases in testdata/cases.json.
Index ¶
Constants ¶
const Path = "/deploy"
Path is the dashboard route a link opens.
Variables ¶
This section is empty.
Functions ¶
func ValidateBranch ¶
ValidateBranch accepts a plain branch or tag name.
func ValidateRepo ¶
ValidateRepo accepts https and ssh git URLs without credentials.
func ValidateTemplate ¶
ValidateTemplate checks the shape of a catalog template id. Whether the id exists is checked by whoever holds the catalog.
Types ¶
type Params ¶
Params are the values a link may carry. Env values and secrets are never part of a link, so there is deliberately no field for them.
func (Params) URL ¶
URL builds the link for an instance base URL such as https://lr.example.com.