srpm_import

package
v0.0.0-...-483e9f6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImportOutput

type ImportOutput struct {
	// Commit is the commit object
	Commit *object.Commit

	// Branch is the branch name
	Branch string

	// Tag is the tag name
	Tag string
}

type State

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

func FromFile

func FromFile(path string, rolling bool, keys ...*openpgp.Entity) (*State, error)

FromFile creates a new State from an SRPM file. The SRPM file is extracted to a temporary directory.

func (*State) Close

func (s *State) Close() error

func (*State) GetDir

func (s *State) GetDir() string

func (*State) Import

func (s *State) Import(opts *git.CloneOptions, storer storage2.Storer, targetFS billy.Filesystem, lookaside storage.Storage, osRelease string) (*ImportOutput, error)

Import imports the SRPM into the target repository.

func (*State) SetAuthor

func (s *State) SetAuthor(name, email string)

Jump to

Keyboard shortcuts

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