kptpkg

package
v0.0.0-...-c7d747a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultInitializer

type DefaultInitializer struct{}

DefaultInitilizer implements Initializer interface.

func (*DefaultInitializer) Initialize

func (i *DefaultInitializer) Initialize(
	ctx context.Context,
	fsys filesys.FileSystem,
	opts InitOptions,
) error

type InitOptions

type InitOptions struct {
	PkgName string
	PkgPath string
	// RelPath is used purely for printing info relative to current working dir of user.
	// It may or may not be same as PkgPath.
	RelPath  string
	Desc     string
	Keywords []string
	Site     string
}

InitOptions contains customization options for package initialization.

type Initializer

type Initializer interface {
	Initialize(ctx context.Context, pkg filesys.FileSystem, opts InitOptions) error
}

Initializer defines capability to initialize a kpt package.

Jump to

Keyboard shortcuts

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