예제 #1
0
// NewErrVersionNotFound is th ErrVersionNotFound constructor
func NewErrVersionNotFound(options *flags.Options) *ErrVersionNotFound {
	channel := image.GetChannel(options.OSChannel, options.KernelChannel, options.GadgetChannel)
	return &ErrVersionNotFound{release: options.Release, channel: channel, arch: options.Arch}
}
예제 #2
0
func imgTemplate(options *flags.Options) (pattern string) {
	channel := image.GetChannel(options.OSChannel, options.KernelChannel, options.GadgetChannel)
	return fmt.Sprintf(imageNamePrefixPattern, options.ImageType, options.Release, options.Arch, channel)
}