Documentation
¶
Index ¶
- type Buildkite
- func (c *Buildkite) Badges(name string) ([]templating.Badge, error)
- func (c *Buildkite) Configure() error
- func (c *Buildkite) Name() string
- func (c *Buildkite) Scaffold(dir string, data templating.TemplateData) (*string, error)
- func (c *Buildkite) Validate(name string) error
- func (c *Buildkite) ValidateConfig() error
- type CI
- type Gitlab
- func (c *Gitlab) Badges(name string) ([]templating.Badge, error)
- func (c *Gitlab) Configure() error
- func (c *Gitlab) Name() string
- func (c *Gitlab) Scaffold(dir string, data templating.TemplateData) (*string, error)
- func (c *Gitlab) Validate(name string) error
- func (c *Gitlab) ValidateConfig() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buildkite ¶
type Buildkite struct {
Organisation string `yaml:"organisation" env:"BUILDKITE_ORG"`
Token string `yaml:"token" env:"BUILDKITE_TOKEN"`
// contains filtered or unexported fields
}
func (*Buildkite) Scaffold ¶
func (c *Buildkite) Scaffold(dir string, data templating.TemplateData) (*string, error)
func (*Buildkite) ValidateConfig ¶
type CI ¶
type CI interface {
Name() string
ValidateConfig() error
Validate(name string) error
Scaffold(dir string, data templating.TemplateData) (*string, error)
Badges(name string) ([]templating.Badge, error)
Configure() error
}
type Gitlab ¶
type Gitlab struct {
Group string `yaml:"group" env:"GITLAB_GROUP"`
Token string `yaml:"token" env:"GITLAB_TOKEN"`
// contains filtered or unexported fields
}
func (*Gitlab) Scaffold ¶
func (c *Gitlab) Scaffold(dir string, data templating.TemplateData) (*string, error)
func (*Gitlab) ValidateConfig ¶
Click to show internal directories.
Click to hide internal directories.