Skip to content

Commit

Permalink
Add documentation about FetchProductInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
felixsch committed Jan 15, 2025
1 parent 619f199 commit 1799de8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/registration/product.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ type productShowRequest struct {
Arch string `json:"arch"`
}

// FetchProductInfo fetches information about a product specified by identifier (e.g. SLES) and its version and architecture.
// The Result also includes the available extension tree, which can be used to activate leaf extensions.
func FetchProductInfo(conn connection.Connection, identifier, version, arch string) (*Product, error) {
payload := productShowRequest{
Identifier: identifier,
Expand Down

0 comments on commit 1799de8

Please sign in to comment.