-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from k0sproject/cleanup
Clean up, restructure
- Loading branch information
Showing
39 changed files
with
579 additions
and
622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
package rig | ||
|
||
import ( | ||
"github.com/k0sproject/rig/errstring" | ||
) | ||
import "errors" | ||
|
||
var ( | ||
ErrOS = errstring.New("local os") // ErrOS is returned when an action fails on local OS | ||
ErrInvalidPath = errstring.New("invalid path") // ErrInvalidPath is returned when a path is invalid | ||
ErrValidationFailed = errstring.New("validation failed") // ErrValidationFailed is returned when a validation fails | ||
ErrSudoRequired = errstring.New("sudo required") // ErrSudoRequired is returned when sudo is required | ||
ErrNotFound = errstring.New("not found") // ErrNotFound is returned when a resource is not found | ||
ErrNotImplemented = errstring.New("not implemented") // ErrNotImplemented is returned when a feature is not implemented | ||
ErrNotSupported = errstring.New("not supported") // ErrNotSupported is returned when a feature is not supported | ||
ErrAuthFailed = errstring.New("authentication failed") // ErrAuthFailed is returned when authentication fails | ||
ErrUploadFailed = errstring.New("upload failed") // ErrUploadFailed is returned when an upload fails | ||
ErrNotConnected = errstring.New("not connected") // ErrNotConnected is returned when a connection is not established | ||
ErrCantConnect = errstring.New("can't connect") // ErrCantConnect is returned when a connection is not established and retrying will fail | ||
ErrCommandFailed = errstring.New("command failed") // ErrCommandFailed is returned when a command fails | ||
ErrOS = errors.New("local os") // ErrOS is returned when an action fails on local OS | ||
ErrInvalidPath = errors.New("invalid path") // ErrInvalidPath is returned when a path is invalid | ||
ErrValidationFailed = errors.New("validation failed") // ErrValidationFailed is returned when a validation fails | ||
ErrSudoRequired = errors.New("sudo required") // ErrSudoRequired is returned when sudo is required | ||
ErrNotFound = errors.New("not found") // ErrNotFound is returned when a resource is not found | ||
ErrNotImplemented = errors.New("not implemented") // ErrNotImplemented is returned when a feature is not implemented | ||
ErrNotSupported = errors.New("not supported") // ErrNotSupported is returned when a feature is not supported | ||
ErrAuthFailed = errors.New("authentication failed") // ErrAuthFailed is returned when authentication fails | ||
ErrUploadFailed = errors.New("upload failed") // ErrUploadFailed is returned when an upload fails | ||
ErrNotConnected = errors.New("not connected") // ErrNotConnected is returned when a connection is not established | ||
ErrCantConnect = errors.New("can't connect") // ErrCantConnect is returned when a connection is not established and retrying will fail | ||
ErrCommandFailed = errors.New("command failed") // ErrCommandFailed is returned when a command fails | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.