generate

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGenerateCmd

func AddGenerateCmd(rootCmd *cobra.Command, opts shared.RootOptions)

func AddGenerateDockerCmd

func AddGenerateDockerCmd(generate *cobra.Command, opts *GenerateOpts)

func AddGenerateImagesCmd

func AddGenerateImagesCmd(generate *cobra.Command, opts *GenerateOpts)

func AddGenerateKubernetesCmd

func AddGenerateKubernetesCmd(generate *cobra.Command, opts *GenerateOpts)

Types

type Client

type Client interface {
	GetWorkspace(workspaceId int) (api.Workspace, error)
}

type GenerateCmd

type GenerateCmd struct {
	Opts *GenerateOpts
	// contains filtered or unexported fields
}

type GenerateDockerCmd

type GenerateDockerCmd struct {
	Opts *GenerateDockerOpts
	// contains filtered or unexported fields
}

func (*GenerateDockerCmd) CloneRepository

func (c *GenerateDockerCmd) CloneRepository(client Client, fs *cs.FileSystem, git git.Git, clonedir string) error

func (*GenerateDockerCmd) GenerateDocker

func (c *GenerateDockerCmd) GenerateDocker(fs *cs.FileSystem, exp exporter.Exporter, git git.Git, clientFactory func() (Client, error)) error

func (*GenerateDockerCmd) RunE

func (c *GenerateDockerCmd) RunE(cc *cobra.Command, args []string) error

type GenerateDockerOpts

type GenerateDockerOpts struct {
	*GenerateOpts
	BaseImage string
	Envs      []string
}

type GenerateImagesCmd

type GenerateImagesCmd struct {
	Opts *GenerateImagesOpts
	// contains filtered or unexported fields
}

func (*GenerateImagesCmd) GenerateImages

func (c *GenerateImagesCmd) GenerateImages(fs *cs.FileSystem, exp exporter.Exporter) error

func (*GenerateImagesCmd) RunE

func (c *GenerateImagesCmd) RunE(_ *cobra.Command, args []string) error

type GenerateImagesOpts

type GenerateImagesOpts struct {
	*GenerateOpts
	Registry    string
	ImagePrefix string
}

type GenerateKubernetesCmd

type GenerateKubernetesCmd struct {
	Opts *GenerateKubernetesOpts
	// contains filtered or unexported fields
}

func (*GenerateKubernetesCmd) GenerateKubernetes

func (c *GenerateKubernetesCmd) GenerateKubernetes(fs *cs.FileSystem, exp exporter.Exporter) error

func (*GenerateKubernetesCmd) RunE

func (c *GenerateKubernetesCmd) RunE(_ *cobra.Command, args []string) error

type GenerateKubernetesOpts

type GenerateKubernetesOpts struct {
	*GenerateOpts
	Registry     string
	ImagePrefix  string
	Namespace    string
	PullSecret   string
	Hostname     string
	IngressClass string
}

type GenerateOpts

type GenerateOpts struct {
	shared.RootOptions
	Input    string
	Branch   string
	Output   string
	Force    bool
	RepoRoot string
}

Jump to

Keyboard shortcuts

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