pull

package
v0.6.7-334-g4066d0e Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

func Pull

func Pull(ctx context.Context, opts *PullOptions, args ...string) error

Pull a Unikraft component.

Types

type PullOptions

type PullOptions struct {
	All          bool     `long:"all" short:"A" usage:"Pull all versions"`
	Architecture string   `long:"arch" short:"m" usage:"Specify the desired architecture"`
	ForceCache   bool     `long:"force-cache" short:"Z" usage:"Force using cache and pull directly from source"`
	Kraftfile    string   `long:"kraftfile" short:"K" usage:"Set an alternative path of the Kraftfile"`
	Manager      string   `long:"as" short:"M" usage:"Force the handler type (Omitting it will attempt auto-detect)" default:"auto"`
	NoChecksum   bool     `long:"no-checksum" short:"C" usage:"Do not verify package checksum (if available)"`
	NoDeps       bool     `long:"no-deps" short:"D" usage:"Do not pull dependencies"`
	Platform     string   `long:"plat" short:"p" usage:"Specify the desired platform"`
	WithDeps     bool     `long:"with-deps" short:"d" usage:"Pull dependencies"`
	Workdir      string   `long:"workdir" short:"w" usage:"Set a path to working directory to pull components to"`
	KConfig      []string `long:"kconfig" short:"k" usage:"Request a package with specific KConfig options."`
}

func (*PullOptions) Pre

func (opts *PullOptions) Pre(cmd *cobra.Command, _ []string) error

func (*PullOptions) Run

func (opts *PullOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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