
Having an executor within isogen package creates potential import cycling. This patch moves it to a separate package which can be used to conveniently store all the executors at one place. Change-Id: I2154c0af6c28f47abb2448863332766260106759 Signed-off-by: Ruslan Aliev <raliev@mirantis.com> Relates-To: #432
32 lines
1.0 KiB
Go
32 lines
1.0 KiB
Go
/*
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package isogen
|
|
|
|
// ErrNoParsedNumPkgs is returned when it's unable to find number of packages to install
|
|
type ErrNoParsedNumPkgs struct {
|
|
}
|
|
|
|
func (e ErrNoParsedNumPkgs) Error() string {
|
|
return "No number of packages to install found in parsed container logs"
|
|
}
|
|
|
|
// ErrUnexpectedPb is returned when progress bar was not finished for some reason
|
|
type ErrUnexpectedPb struct {
|
|
}
|
|
|
|
func (e ErrUnexpectedPb) Error() string {
|
|
return "An unexpected error occurred while parsing container logs"
|
|
}
|