// 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} }
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) }