func (b Base) Validate() error {
	if b.Name == "" {
		return errors.NotValidf("base without name")
	}

	if !validOSForBase.Contains(b.Name) {
		return errors.NotValidf("os %q", b.Name)
	}
	if b.Channel.Empty() {
		return errors.NotValidf("channel")
	}
	for _, v := range b.Architectures {
		if !arch.IsSupportedArch(v) {
			return errors.NotValidf("architecture %q", v)
		}
	}

	return nil
}
// Validate returns with no error when the Base is valid.
Validate returns with no error when the Base is valid.
// Validate returns with no error when the Base is valid .
func (b Base) Validate() error {
	if b.Name == "" {
		return errors.NotValidf("base without name")
	}
	if !validOSForBase.Contains(b.Name) {
		return errors.NotValidf("os %q", b.Name)
	}
	if b.Channel.Empty() {
		return errors.NotValidf("channel")
	}
	for _, v := range b.Architectures {
		if !arch.IsSupportedArch(v) {
			return errors.NotValidf("architecture %q", v)
		}
	}
	return nil
}
func ( b Base ) Validate ( ) error { if b . Name == " " { return errors . NotValidf ( " " ) } if ! validOSForBase . Contains ( b . Name ) { return errors . NotValidf ( " " , b . Name ) } if b . Channel . Empty ( ) { return errors . NotValidf ( " " ) } for _ , v := range b . Architectures { if ! arch . IsSupportedArch ( v ) { return errors . NotValidf ( " " , v ) } } return nil }
Validate returns with no error when the Base is valid.
Validate returns with no error when the Base is valid .