cli

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 50 Imported by: 1

Documentation

Index

Constants

View Source
const BuiltinPipelineDir = "/usr/share/melange/pipelines"

Variables

This section is empty.

Functions

func ApkBuild added in v0.3.0

func ApkBuild() *cobra.Command

func Build

func Build() *cobra.Command

func BuildCmd

func BuildCmd(ctx context.Context, archs []apko_types.Architecture, baseOpts ...build.Option) error

func Bump added in v0.2.0

func Bump() *cobra.Command

func Completion added in v0.3.0

func Completion() *cobra.Command

func Convert added in v0.3.0

func Convert() *cobra.Command

func GemBuild added in v0.3.0

func GemBuild() *cobra.Command

GemBuild is the top-level `convert gem` cobra command

TODO: add a --version flag to switch the version of the gem

func Index added in v0.2.0

func Index() *cobra.Command

Index is a constructor for a cobra.Command which wraps the IndexCmd function.

func IndexCmd added in v0.2.0

func IndexCmd(ctx context.Context, opts ...index.Option) error

IndexCmd is the backend implementation of the "melange index" command.

func Keygen

func Keygen() *cobra.Command

func KeygenCmd

func KeygenCmd(ctx context.Context, opts ...KeygenOption) error

func Lint added in v0.5.2

func Lint() *cobra.Command

func New

func New() *cobra.Command

func PackageVersion added in v0.3.0

func PackageVersion() *cobra.Command

func PythonBuild added in v0.3.0

func PythonBuild() *cobra.Command

PythonBuild is the top-level `convert python` cobra command

func Query added in v0.3.0

func Query() *cobra.Command

func QueryCmd added in v0.3.0

func QueryCmd(ctx context.Context, configFile, pattern string) error

func Sign added in v0.5.0

func Sign() *cobra.Command

func SignIndex

func SignIndex() *cobra.Command

SignIndex is a constructor that returns a cobra.Command which wraps the SignIndexCmd() function.

func Test added in v0.5.4

func Test() *cobra.Command

func TestCmd added in v0.5.4

func TestCmd(ctx context.Context, archs []apko_types.Architecture, baseOpts ...build.TestOption) error

func UpdateCache added in v0.2.0

func UpdateCache() *cobra.Command

UpdateCache is a constructor for a cobra.Command which provides the "melange update-cache" command.

Types

type KeygenContext

type KeygenContext struct {
	KeyName string
	BitSize int
}

func (*KeygenContext) GenerateKeypair

func (kc *KeygenContext) GenerateKeypair() (*rsa.PrivateKey, *rsa.PublicKey, error)

type KeygenOption

type KeygenOption func(*KeygenContext) error

type LintOpts added in v0.5.2

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

func (LintOpts) RunAllE added in v0.5.2

func (o LintOpts) RunAllE(ctx context.Context, pkgs ...string) error

Jump to

Keyboard shortcuts

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