Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubChangeTemplater ¶
type GithubChangeTemplater[T any] struct { // contains filtered or unexported fields }
GithubChangeTemplater is a templater that generates a change in a gitops repo. It clones the repo, creates a branch, applies changes, and then opens a PR.
func NewGithubChangeTemplater ¶
func NewGithubChangeTemplater[T any]( files []*GithubFileTemplater[T], commitMessage *template.Template, prSubject *template.Template, client *github.Client, ) *GithubChangeTemplater[T]
func (*GithubChangeTemplater[T]) CreateChange ¶
func (t *GithubChangeTemplater[T]) CreateChange(ctx context.Context, org GitOrg, repo GitRepo, branch GitBranch, author GitAuthor, model T) (GitopsChange, error)
type GithubFileTemplater ¶
type GithubFileTemplater[T any] struct { // contains filtered or unexported fields }
GithubFileTemplater uses a template to generate a gitops resource in GitHub, and then listens for status updates on the commit / PR.
func NewGithubFileTemplater ¶
type GitopsChange ¶
type GitopsChange struct {
// contains filtered or unexported fields
}
GitopsChange is a change in a gitops repo. It is used to track the status of a change.
Click to show internal directories.
Click to hide internal directories.