Versions in this module Expand all Collapse all v0 v0.50.0 Jul 29, 2026 Changes in this version + const DefaultBranch + const DefaultForce + const DefaultGitHubWorkflowDir + const DefaultGitHubWorkflowFilename + const DefaultKubeconfigSecretName + const DefaultPlatform + const DefaultRegistryLogin + const DefaultRegistryLoginUrlVariableName + const DefaultRegistryPassSecretName + const DefaultRegistryUrlVariableName + const DefaultRegistryUserVariableName + const DefaultRemoteBuild + const DefaultRemoteBuildWorkflowName + const DefaultSelfHostedRunner + const DefaultTestStep + const DefaultVerbose + const DefaultWorkflowDispatch + const DefaultWorkflowName + const MainLayoutPlainText + const PostExportManyPlainText + const PostExportOnePlainText + const RequireManyPlainText + const RequireOnePlainText + var DefaultWorkflowWriter = &fileWriter + var ErrWorkflowExists = errors.New("existing GitHub workflow detected, overwrite using the --force option") + func NewWorkflowGenerator(options ...Option) *workflowGenerator + func PrintConfiguration(cfg WorkflowConfig, runtime string, w io.Writer) error + func PrintPostExportMessage(opts WorkflowConfig, w io.Writer) error + type BufferWriter struct + Buffer *bytes.Buffer + Path string + func NewBufferWriter() *BufferWriter + func (bw *BufferWriter) Exist(_ string) bool + func (bw *BufferWriter) Write(path string, raw []byte) error + type Option func(*workflowGenerator) + func WithMessageWriter(mw io.Writer) Option + func WithVerbose(v bool) Option + func WithWorkflowConfig(wc WorkflowConfig) Option + func WithWorkflowWriter(ww WorkflowWriter) Option + type WorkflowConfig struct + Branch string + Force bool + GithubWorkflowDir string + GithubWorkflowFilename string + KubeconfigSecret string + RegistryLogin bool + RegistryLoginUrlVar string + RegistryPassSecret string + RegistryUrlVar string + RegistryUserVar string + RemoteBuild bool + SelfHostedRunner bool + TestStep bool + WorkflowDispatch bool + WorkflowName string + type WorkflowGeneratorMock struct + Config WorkflowConfig + FnRoot string + WasInvoked bool + func (gm *WorkflowGeneratorMock) Generate(_ context.Context, f fn.Function) error + type WorkflowWriter interface + Exist func(path string) bool + Write func(path string, raw []byte) error