コード例 #1
0
ファイル: cloud.go プロジェクト: fgimenez/snappy-cloud-image
// 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
ファイル: cloud.go プロジェクト: fgimenez/snappy-cloud-image
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)
}