Documentation
¶
Index ¶
- Constants
- func CreateOSCConfigFile(apiURL, username, password string) error
- func OSC(workDir string, args ...string) error
- func Output(workDir string, args ...string) (string, error)
- func PreCheck() error
- func Status(workDir string, args ...string) (*command.Status, error)
- func Version() (*semver.Version, error)
- func WaitResults(project, packageName string) error
Constants ¶
View Source
const (
// OSCExecutable is the name of the OpenBuildService CLI executable.
OSCExecutable = "osc"
)
Variables ¶
This section is empty.
Functions ¶
func CreateOSCConfigFile ¶
CreateOSCConfigFile creates the osc config file (~/.oscrc) that contains API URL and credentials needed to authenticate with the API.
func PreCheck ¶
func PreCheck() error
PreCheck checks if all requirements are fulfilled to run this package and all sub-packages.
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
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.
Click to show internal directories.
Click to hide internal directories.