kptpkg

package
v1.0.0-beta.35 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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