Documentation
¶
Index ¶
Constants ¶
View Source
const GIT_EMAIL = "forge@projectcatalyst.io"
View Source
const GIT_MESSAGE = "chore: automatic deployment for %s"
View Source
const GIT_NAME = "Catalyst Forge"
Variables ¶
View Source
var ErrNoChanges = fmt.Errorf("no changes to commit")
Functions ¶
func GetGitToken ¶
func GetGitToken(project *project.Project, store *secrets.SecretStore, logger *slog.Logger) (string, error)
GetGitToken loads the Git token from the project.
Types ¶
type Bundle ¶
type Bundle struct {
ApiVersion string `json:"apiVersion"`
Name string `json:"name"`
Instances map[string]BundleInstance `json:"instances"`
// contains filtered or unexported fields
}
Bundle represents a Timoni bundle file.
func GenerateBundle ¶
GenerateBundle generates a Timoni bundle file from a project.
type BundleInstance ¶
type BundleInstance struct {
Module Module `json:"module"`
Namespace string `json:"namespace"`
Values cue.Value `json:"values"`
}
BundleInstance represents a single instance of a module in a Timoni bundle file.
type GitopsDeployer ¶
type GitopsDeployer struct {
// contains filtered or unexported fields
}
GitopsDeployer is a deployer that deploys projects to a GitOps repository.
func NewGitopsDeployer ¶
func NewGitopsDeployer( project *project.Project, store *secrets.SecretStore, logger *slog.Logger, ) GitopsDeployer
NewGitopsDeployer creates a new GitopsDeployer.
func (*GitopsDeployer) Deploy ¶
func (g *GitopsDeployer) Deploy() error
func (*GitopsDeployer) Load ¶
func (g *GitopsDeployer) Load() error
Load loads the repository for the project.
Click to show internal directories.
Click to hide internal directories.