siftool

package
v2.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App holds state and configured options.

func New

func New(opts ...AppOpt) (*App, error)

New creates a new App configured with opts.

By default, application output and errors are written to os.Stdout and os.Stderr respectively. To modify this behavior, consider using OptAppOutput and/or OptAppError.

func (*App) Add

func (*App) Add(path string, t sif.DataType, r io.Reader, opts ...sif.DescriptorInputOpt) error

Add adds a data object to a SIF file.

func (*App) Del

func (*App) Del(path string, id uint32) error

Del deletes a specified object descriptor and data from the SIF file.

func (*App) Dump

func (a *App) Dump(path string, id uint32) error

Dump extracts and outputs a data object from a SIF file.

func (*App) Header

func (a *App) Header(path string) error

Header displays a SIF file global header.

func (*App) Info

func (a *App) Info(path string, id uint32) error

Info displays detailed info about a descriptor from a SIF file.

func (*App) List

func (a *App) List(path string) error

List displays a list of all active descriptors from a SIF file.

func (*App) New

func (*App) New(path string) error

New creates a new empty SIF file.

func (*App) Setprim

func (*App) Setprim(path string, id uint32) error

Setprim sets the primary system partition of the SIF file.

type AppOpt

type AppOpt func(*appOpts) error

AppOpt are used to configure optional behavior.

func OptAppError added in v2.7.0

func OptAppError(w io.Writer) AppOpt

OptAppError specifies that errors should be written to w.

func OptAppOutput

func OptAppOutput(w io.Writer) AppOpt

OptAppOutput specifies that output should be written to w.

Jump to

Keyboard shortcuts

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