client/simplestreams_images.go
func (r *ProtocolSimpleStreams) GetImageFingerprints() ([]string, error) {
	// Get all the images from simplestreams
	images, err := r.ssClient.ListImages()
	if err != nil {
		return nil, err
	}

	// And now extract just the fingerprints
	fingerprints := []string{}
	for _, img := range images {
		fingerprints = append(fingerprints, img.Fingerprint)
	}

	return fingerprints, nil
}
func (r *ProtocolSimpleStreams) GetImageFingerprints() ([]string, error) {
	// Get all the images from simplestreams
	images, err := r.ssClient.ListImages()
	if err != nil {
		return nil, err
	}

	// And now extract just the fingerprints
	fingerprints := []string{}
	for _, img := range images {
		fingerprints = append(fingerprints, img.Fingerprint)
	}

	return fingerprints, nil
}
func ( r * ProtocolSimpleStreams ) GetImageFingerprints ( ) ( [ ] string , error ) { // Get all the images from simplestreams images , err := r . ssClient . ListImages ( ) if err != nil { return nil , err } // And now extract just the fingerprints fingerprints := [ ] string { } for _ , img := range images { fingerprints = append ( fingerprints , img . Fingerprint ) } return fingerprints , nil }
// GetImageFingerprints returns a list of available image fingerprints
GetImageFingerprints returns a list of available image fingerprints