osc

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// OSCExecutable is the name of the OpenBuildService CLI executable.
	OSCExecutable = "osc"
)

Variables

This section is empty.

Functions

func CreateOSCConfigFile

func CreateOSCConfigFile(apiURL, username, password string) error

CreateOSCConfigFile creates the osc config file (~/.oscrc) that contains API URL and credentials needed to authenticate with the API.

func OSC

func OSC(workDir string, args ...string) error

OSC can be used to run a 'osc' command.

func Output

func Output(workDir string, args ...string) (string, error)

Output can be used to run a 'osc' command while capturing its output.

func PreCheck

func PreCheck() error

PreCheck checks if all requirements are fulfilled to run this package and all sub-packages.

func Status

func Status(workDir string, args ...string) (*command.Status, error)

Status can be used to run a 'osc' command while capturing its status.

func Version added in v0.12.1

func Version() (*semver.Version, error)

Version returns the semver version of the osc executable.

func WaitResults added in v0.12.1

func WaitResults(project, packageName string) error

WaitResults waits for the build results. If can fail on error if an osc version >= 1.8.0 is being used.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳