unpack

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnpackModelKit

func UnpackModelKit(ctx context.Context, opts *UnpackOptions) error

UnpackModelKit performs the core unpacking logic for a ModelKit.

Types

type FilterConf

type FilterConf struct {
	BaseTypes []string
	Filters   []string
}

FilterConf represents filter configuration for unpacking operations.

func FiltersFromUnpackConf

func FiltersFromUnpackConf(unpackKitfile, unpackModels, unpackCode, unpackDatasets, unpackDocs bool) []FilterConf

FiltersFromUnpackConf converts a (deprecated) unpackConf to a set of filters to enable supporting the old flags

func ParseFilter

func ParseFilter(filter string) (*FilterConf, error)

ParseFilter parses a filter string and returns a FilterConf.

type UnpackOptions

type UnpackOptions struct {
	options.NetworkOptions
	ConfigHome     string
	UnpackDir      string
	Filters        []string
	FilterConfs    []FilterConf
	ModelRef       *registry.Reference
	Overwrite      bool
	IgnoreExisting bool
}

UnpackOptions represents the configuration for unpacking operations. This is the main options structure used by both command and library interfaces.

Jump to

Keyboard shortcuts

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