Documentation
¶
Overview ¶
Package gitlab provides the GitLab CI plugin for TerraCi. It registers a pipeline generator and MR comment service.
Index ¶
- Variables
- type ArtifactReports
- type Artifacts
- type ArtifactsConfig
- type Cache
- type CfgSecret
- type CfgVaultSecret
- type Client
- type Config
- type DefaultConfig
- type Generator
- type IDToken
- type Image
- type ImageConfig
- type Job
- type JobConfig
- type JobDefaults
- type JobNeed
- type JobOverwrite
- type JobOverwriteType
- type MRCommentConfig
- type MRConfig
- type MRContext
- type MRService
- type Pipeline
- type Plugin
- func (p *Plugin) BuildInitConfig(state plugin.InitState) *plugin.InitContribution
- func (p *Plugin) ConfigKey() string
- func (p *Plugin) Description() string
- func (p *Plugin) DetectEnv() bool
- func (p *Plugin) InitGroup() *plugin.InitGroupSpec
- func (p *Plugin) Initialize(_ context.Context, _ *plugin.AppContext) error
- func (p *Plugin) IsConfigured() bool
- func (p *Plugin) Name() string
- func (p *Plugin) NewCommentService(_ *plugin.AppContext) ci.CommentService
- func (p *Plugin) NewConfig() any
- func (p *Plugin) NewGenerator(_ *plugin.AppContext, depGraph *graph.DependencyGraph, ...) pipeline.Generator
- func (p *Plugin) ProviderName() string
- func (p *Plugin) SetConfig(cfg any) error
- type Reports
- type Rule
- type Secret
- type SummaryJobConfig
- type VaultEngine
- type VaultSecret
- type Workflow
Constants ¶
This section is empty.
Variables ¶
var ( DefaultStagesPrefix = gitlabci.DefaultStagesPrefix SummaryJobName = gitlabci.SummaryJobName SummaryStageName = gitlabci.SummaryStageName WhenManual = gitlabci.WhenManual OverwriteTypePlan = gitlabci.OverwriteTypePlan OverwriteTypeApply = gitlabci.OverwriteTypeApply )
Re-export constants from internal package.
var ( NewGenerator = gitlabci.NewGenerator NewClient = gitlabci.NewClient NewClientFromEnv = gitlabci.NewClientFromEnv DetectMRContext = gitlabci.DetectMRContext NewMRService = gitlabci.NewMRService NewMRServiceFromEnv = gitlabci.NewMRServiceFromEnv FindTerraCIComment = gitlabci.FindTerraCIComment )
Re-export functions from internal package.
Functions ¶
This section is empty.
Types ¶
type ArtifactReports ¶
type ArtifactReports = gitlabci.ArtifactReports
Re-export types from internal package for external consumers.
type ArtifactsConfig ¶
type ArtifactsConfig = gitlabci.ArtifactsConfig
Re-export types from internal package for external consumers.
type CfgVaultSecret ¶
type CfgVaultSecret = gitlabci.CfgVaultSecret
Re-export types from internal package for external consumers.
type DefaultConfig ¶
type DefaultConfig = gitlabci.DefaultConfig
Re-export types from internal package for external consumers.
type ImageConfig ¶
type ImageConfig = gitlabci.ImageConfig
Re-export types from internal package for external consumers.
type JobDefaults ¶
type JobDefaults = gitlabci.JobDefaults
Re-export types from internal package for external consumers.
type JobOverwrite ¶
type JobOverwrite = gitlabci.JobOverwrite
Re-export types from internal package for external consumers.
type JobOverwriteType ¶
type JobOverwriteType = gitlabci.JobOverwriteType
Re-export types from internal package for external consumers.
type MRCommentConfig ¶
type MRCommentConfig = gitlabci.MRCommentConfig
Re-export types from internal package for external consumers.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is the GitLab CI plugin.
func (*Plugin) BuildInitConfig ¶
func (p *Plugin) BuildInitConfig(state plugin.InitState) *plugin.InitContribution
func (*Plugin) Description ¶
func (*Plugin) InitGroup ¶
func (p *Plugin) InitGroup() *plugin.InitGroupSpec
func (*Plugin) Initialize ¶
func (*Plugin) IsConfigured ¶
func (*Plugin) NewCommentService ¶
func (p *Plugin) NewCommentService(_ *plugin.AppContext) ci.CommentService
func (*Plugin) NewGenerator ¶
func (p *Plugin) NewGenerator(_ *plugin.AppContext, depGraph *graph.DependencyGraph, modules []*discovery.Module) pipeline.Generator
func (*Plugin) ProviderName ¶
type SummaryJobConfig ¶
type SummaryJobConfig = gitlabci.SummaryJobConfig
Re-export types from internal package for external consumers.
type VaultEngine ¶
type VaultEngine = gitlabci.VaultEngine
Re-export types from internal package for external consumers.
type VaultSecret ¶
type VaultSecret = gitlabci.VaultSecret
Re-export types from internal package for external consumers.