templater

package
v0.0.0-...-a447307 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Repositories map[string]map[string]*RepositoryConfiguration `yaml:"repositories"`
	Secrets      map[string]string                              `yaml:"secrets"`

	Auth struct {
		GitHub string `yaml:"github"`
	} `yaml:"auth"`
	Registry string `yaml:"registry"`

	Committer *github.CommitAuthor `yaml:"committer"`
}

func (Config) RepositoryCount

func (c Config) RepositoryCount() (ret int)

type Repo

type Repo struct {
	Owner string `json:"owner"`
	Name  string `json:"name"`
}

func (Repo) String

func (r Repo) String() string

type RepositoryConfiguration

type RepositoryConfiguration struct {
	PreBuild  string `yaml:"prebuild"`
	PostBuild string `yaml:"postbuild"`
}

type Templater

type Templater struct {
	// contains filtered or unexported fields
}

func NewTemplater

func NewTemplater(client *github.Client, config *Config) *Templater

func (*Templater) RenderWorkflows

func (t *Templater) RenderWorkflows(ctx context.Context) error

func (*Templater) SetRepoSecrets

func (t *Templater) SetRepoSecrets(ctx context.Context) error

Jump to

Keyboard shortcuts

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