Documentation ¶
Index ¶
- type CantCreateSketchError
- type CantOpenSketchError
- type CantUpdateSketchError
- type CommandError
- type CompileFailedError
- type FailedDebugError
- type FailedDownloadError
- type FailedInstallError
- type FailedLibraryInstallError
- type FailedMonitorError
- type FailedUninstallError
- type FailedUploadError
- type InitFailedError
- type InvalidArgumentError
- type InvalidFQBNError
- type InvalidInstanceError
- type InvalidLibraryError
- type InvalidPlatformPropertyError
- type InvalidProfileError
- type InvalidURLError
- type InvalidVersionError
- type LibraryDependenciesResolutionFailedError
- type LibraryNotFoundError
- type MissingFQBNError
- type MissingPlatformPropertyError
- type MissingPortAddressError
- type MissingPortError
- type MissingPortProtocolError
- type MissingProgrammerError
- type MissingSketchPathError
- type MonitorNotFoundError
- type MultipleBoardsDetectedError
- type MultipleLibraryInstallDetected
- type MultiplePlatformsError
- type NoBoardsDetectedError
- type NoMonitorAvailableForProtocolError
- type NotFoundError
- type PermissionDeniedError
- type PlatformAlreadyAtTheLatestVersionError
- type PlatformLoadingError
- type PlatformNotFoundError
- type ProgrammerNotFoundError
- type ProgrammerRequiredForUploadError
- type SignatureVerificationFailedError
- type TempDirCreationFailedError
- type TempFileCreationFailedError
- type UnavailableError
- type UnknownFQBNError
- type UnknownProfileError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CantCreateSketchError ¶
type CantCreateSketchError struct {
Cause error
}
CantCreateSketchError is returned when the sketch cannot be created
func (*CantCreateSketchError) Error ¶
func (e *CantCreateSketchError) Error() string
func (*CantCreateSketchError) Unwrap ¶
func (e *CantCreateSketchError) Unwrap() error
type CantOpenSketchError ¶
type CantOpenSketchError struct {
Cause error
}
CantOpenSketchError is returned when the sketch is not found or cannot be opened
func (*CantOpenSketchError) Error ¶
func (e *CantOpenSketchError) Error() string
func (*CantOpenSketchError) ToRPCStatus ¶
func (e *CantOpenSketchError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*CantOpenSketchError) Unwrap ¶
func (e *CantOpenSketchError) Unwrap() error
type CantUpdateSketchError ¶
type CantUpdateSketchError struct {
Cause error
}
CantUpdateSketchError is returned when the sketch cannot be updated
func (*CantUpdateSketchError) Error ¶
func (e *CantUpdateSketchError) Error() string
func (*CantUpdateSketchError) Unwrap ¶
func (e *CantUpdateSketchError) Unwrap() error
type CommandError ¶
type CommandError interface { // ToRPCStatus convertes the error into a *status.Status ToRPCStatus() *status.Status }
CommandError is an error that may be converted into a gRPC status.
type CompileFailedError ¶
CompileFailedError is returned when the compile fails
func (*CompileFailedError) Error ¶
func (e *CompileFailedError) Error() string
func (*CompileFailedError) ToRPCStatus ¶
func (e *CompileFailedError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*CompileFailedError) Unwrap ¶
func (e *CompileFailedError) Unwrap() error
type FailedDebugError ¶
FailedDebugError is returned when the debug fails
func (*FailedDebugError) Error ¶
func (e *FailedDebugError) Error() string
func (*FailedDebugError) ToRPCStatus ¶
func (e *FailedDebugError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*FailedDebugError) Unwrap ¶
func (e *FailedDebugError) Unwrap() error
type FailedDownloadError ¶
FailedDownloadError is returned when a network download fails
func (*FailedDownloadError) Error ¶
func (e *FailedDownloadError) Error() string
func (*FailedDownloadError) ToRPCStatus ¶
func (e *FailedDownloadError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*FailedDownloadError) Unwrap ¶
func (e *FailedDownloadError) Unwrap() error
type FailedInstallError ¶
FailedInstallError is returned if an install operation fails
func (*FailedInstallError) Error ¶
func (e *FailedInstallError) Error() string
func (*FailedInstallError) ToRPCStatus ¶
func (e *FailedInstallError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*FailedInstallError) Unwrap ¶
func (e *FailedInstallError) Unwrap() error
type FailedLibraryInstallError ¶
type FailedLibraryInstallError struct {
Cause error
}
FailedLibraryInstallError is returned if a library install operation fails
func (*FailedLibraryInstallError) Error ¶
func (e *FailedLibraryInstallError) Error() string
func (*FailedLibraryInstallError) ToRPCStatus ¶
func (e *FailedLibraryInstallError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*FailedLibraryInstallError) Unwrap ¶
func (e *FailedLibraryInstallError) Unwrap() error
type FailedMonitorError ¶
type FailedMonitorError struct {
Cause error
}
FailedMonitorError is returned when opening the monitor port of a board fails
func (*FailedMonitorError) Error ¶
func (e *FailedMonitorError) Error() string
func (*FailedMonitorError) ToRPCStatus ¶
func (e *FailedMonitorError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*FailedMonitorError) Unwrap ¶
func (e *FailedMonitorError) Unwrap() error
type FailedUninstallError ¶
FailedUninstallError is returned if an uninstall operation fails
func (*FailedUninstallError) Error ¶
func (e *FailedUninstallError) Error() string
func (*FailedUninstallError) ToRPCStatus ¶
func (e *FailedUninstallError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*FailedUninstallError) Unwrap ¶
func (e *FailedUninstallError) Unwrap() error
type FailedUploadError ¶
FailedUploadError is returned when the upload fails
func (*FailedUploadError) Error ¶
func (e *FailedUploadError) Error() string
func (*FailedUploadError) ToRPCStatus ¶
func (e *FailedUploadError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*FailedUploadError) Unwrap ¶
func (e *FailedUploadError) Unwrap() error
type InitFailedError ¶
type InitFailedError struct { Code codes.Code Cause error Reason rpc.FailedInstanceInitReason }
InitFailedError is returned when the instance initialization fails
func (*InitFailedError) Error ¶
func (ife *InitFailedError) Error() string
func (*InitFailedError) ToRPCStatus ¶
func (ife *InitFailedError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type InvalidArgumentError ¶
InvalidArgumentError is returned when an invalid argument is passed to the command
func (*InvalidArgumentError) Error ¶
func (e *InvalidArgumentError) Error() string
func (*InvalidArgumentError) ToRPCStatus ¶
func (e *InvalidArgumentError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*InvalidArgumentError) Unwrap ¶
func (e *InvalidArgumentError) Unwrap() error
type InvalidFQBNError ¶
type InvalidFQBNError struct {
Cause error
}
InvalidFQBNError is returned when the FQBN has syntax errors
func (*InvalidFQBNError) Error ¶
func (e *InvalidFQBNError) Error() string
func (*InvalidFQBNError) ToRPCStatus ¶
func (e *InvalidFQBNError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*InvalidFQBNError) Unwrap ¶
func (e *InvalidFQBNError) Unwrap() error
type InvalidInstanceError ¶
type InvalidInstanceError struct{}
InvalidInstanceError is returned if the instance used in the command is not valid.
func (*InvalidInstanceError) Error ¶
func (e *InvalidInstanceError) Error() string
func (*InvalidInstanceError) ToRPCStatus ¶
func (e *InvalidInstanceError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type InvalidLibraryError ¶
type InvalidLibraryError struct {
Cause error
}
InvalidLibraryError is returned when the library has syntax errors
func (*InvalidLibraryError) Error ¶
func (e *InvalidLibraryError) Error() string
func (*InvalidLibraryError) ToRPCStatus ¶
func (e *InvalidLibraryError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*InvalidLibraryError) Unwrap ¶
func (e *InvalidLibraryError) Unwrap() error
type InvalidPlatformPropertyError ¶
InvalidPlatformPropertyError is returned when a property in the platform is not valid
func (*InvalidPlatformPropertyError) Error ¶
func (e *InvalidPlatformPropertyError) Error() string
func (*InvalidPlatformPropertyError) ToRPCStatus ¶
func (e *InvalidPlatformPropertyError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type InvalidProfileError ¶
type InvalidProfileError struct {
Cause error
}
InvalidProfileError is returned when the profile has errors
func (*InvalidProfileError) Error ¶
func (e *InvalidProfileError) Error() string
func (*InvalidProfileError) ToRPCStatus ¶
func (e *InvalidProfileError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*InvalidProfileError) Unwrap ¶
func (e *InvalidProfileError) Unwrap() error
type InvalidURLError ¶
type InvalidURLError struct {
Cause error
}
InvalidURLError is returned when the URL has syntax errors
func (*InvalidURLError) Error ¶
func (e *InvalidURLError) Error() string
func (*InvalidURLError) ToRPCStatus ¶
func (e *InvalidURLError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*InvalidURLError) Unwrap ¶
func (e *InvalidURLError) Unwrap() error
type InvalidVersionError ¶
type InvalidVersionError struct {
Cause error
}
InvalidVersionError is returned when the version has syntax errors
func (*InvalidVersionError) Error ¶
func (e *InvalidVersionError) Error() string
func (*InvalidVersionError) ToRPCStatus ¶
func (e *InvalidVersionError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*InvalidVersionError) Unwrap ¶
func (e *InvalidVersionError) Unwrap() error
type LibraryDependenciesResolutionFailedError ¶
type LibraryDependenciesResolutionFailedError struct {
Cause error
}
LibraryDependenciesResolutionFailedError is returned when an inconsistency is found in library dependencies or a solution cannot be found.
func (*LibraryDependenciesResolutionFailedError) Error ¶
func (e *LibraryDependenciesResolutionFailedError) Error() string
func (*LibraryDependenciesResolutionFailedError) ToRPCStatus ¶
func (e *LibraryDependenciesResolutionFailedError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*LibraryDependenciesResolutionFailedError) Unwrap ¶
func (e *LibraryDependenciesResolutionFailedError) Unwrap() error
type LibraryNotFoundError ¶
LibraryNotFoundError is returned when a platform is not found
func (*LibraryNotFoundError) Error ¶
func (e *LibraryNotFoundError) Error() string
func (*LibraryNotFoundError) ToRPCStatus ¶
func (e *LibraryNotFoundError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*LibraryNotFoundError) Unwrap ¶
func (e *LibraryNotFoundError) Unwrap() error
type MissingFQBNError ¶
type MissingFQBNError struct{}
MissingFQBNError is returned when the FQBN is mandatory and not specified
func (*MissingFQBNError) Error ¶
func (e *MissingFQBNError) Error() string
func (*MissingFQBNError) ToRPCStatus ¶
func (e *MissingFQBNError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type MissingPlatformPropertyError ¶
type MissingPlatformPropertyError struct {
Property string
}
MissingPlatformPropertyError is returned when a property in the platform is not found
func (*MissingPlatformPropertyError) Error ¶
func (e *MissingPlatformPropertyError) Error() string
func (*MissingPlatformPropertyError) ToRPCStatus ¶
func (e *MissingPlatformPropertyError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type MissingPortAddressError ¶
type MissingPortAddressError struct{}
MissingPortAddressError is returned when the port protocol is mandatory and not specified
func (*MissingPortAddressError) Error ¶
func (e *MissingPortAddressError) Error() string
func (*MissingPortAddressError) ToRPCStatus ¶
func (e *MissingPortAddressError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type MissingPortError ¶
type MissingPortError struct{}
MissingPortError is returned when the port is mandatory and not specified
func (*MissingPortError) Error ¶
func (e *MissingPortError) Error() string
func (*MissingPortError) ToRPCStatus ¶
func (e *MissingPortError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type MissingPortProtocolError ¶
type MissingPortProtocolError struct{}
MissingPortProtocolError is returned when the port protocol is mandatory and not specified
func (*MissingPortProtocolError) Error ¶
func (e *MissingPortProtocolError) Error() string
func (*MissingPortProtocolError) ToRPCStatus ¶
func (e *MissingPortProtocolError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type MissingProgrammerError ¶
type MissingProgrammerError struct{}
MissingProgrammerError is returned when the programmer is mandatory and not specified
func (*MissingProgrammerError) Error ¶
func (e *MissingProgrammerError) Error() string
func (*MissingProgrammerError) ToRPCStatus ¶
func (e *MissingProgrammerError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type MissingSketchPathError ¶
type MissingSketchPathError struct{}
MissingSketchPathError is returned when the sketch path is mandatory and not specified
func (*MissingSketchPathError) Error ¶
func (e *MissingSketchPathError) Error() string
func (*MissingSketchPathError) ToRPCStatus ¶
func (e *MissingSketchPathError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type MonitorNotFoundError ¶
MonitorNotFoundError is returned when the pluggable monitor is not found
func (*MonitorNotFoundError) Error ¶
func (e *MonitorNotFoundError) Error() string
func (*MonitorNotFoundError) ToRPCStatus ¶
func (e *MonitorNotFoundError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*MonitorNotFoundError) Unwrap ¶
func (e *MonitorNotFoundError) Unwrap() error
type MultipleBoardsDetectedError ¶
MultipleBoardsDetectedError is returned when trying to detect the FQBN of a board connected to a port fails because that are multiple possible boards detected.
func (*MultipleBoardsDetectedError) Error ¶
func (e *MultipleBoardsDetectedError) Error() string
func (*MultipleBoardsDetectedError) ToRPCStatus ¶
func (e *MultipleBoardsDetectedError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type MultipleLibraryInstallDetected ¶
MultipleLibraryInstallDetected is returned when the user request an operation on a library but multiple libraries with the same name (in library.properties) are detected.
func (*MultipleLibraryInstallDetected) Error ¶
func (e *MultipleLibraryInstallDetected) Error() string
func (*MultipleLibraryInstallDetected) ToRPCStatus ¶
func (e *MultipleLibraryInstallDetected) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type MultiplePlatformsError ¶
MultiplePlatformsError is returned when trying to detect the Platform the user is trying to interact with and and multiple results are found.
func (*MultiplePlatformsError) Error ¶
func (e *MultiplePlatformsError) Error() string
func (*MultiplePlatformsError) ToRPCStatus ¶
func (e *MultiplePlatformsError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type NoBoardsDetectedError ¶
NoBoardsDetectedError is returned when detecting the FQBN of a board does not produce any result.
func (*NoBoardsDetectedError) Error ¶
func (e *NoBoardsDetectedError) Error() string
func (*NoBoardsDetectedError) ToRPCStatus ¶
func (e *NoBoardsDetectedError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type NoMonitorAvailableForProtocolError ¶
type NoMonitorAvailableForProtocolError struct {
Protocol string
}
NoMonitorAvailableForProtocolError is returned when a monitor for the specified port protocol is not available
func (*NoMonitorAvailableForProtocolError) Error ¶
func (e *NoMonitorAvailableForProtocolError) Error() string
func (*NoMonitorAvailableForProtocolError) ToRPCStatus ¶
func (e *NoMonitorAvailableForProtocolError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type NotFoundError ¶
NotFoundError is returned when a resource is not found
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
func (*NotFoundError) ToRPCStatus ¶
func (e *NotFoundError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*NotFoundError) Unwrap ¶
func (e *NotFoundError) Unwrap() error
type PermissionDeniedError ¶
PermissionDeniedError is returned when a resource cannot be accessed or modified
func (*PermissionDeniedError) Error ¶
func (e *PermissionDeniedError) Error() string
func (*PermissionDeniedError) ToRPCStatus ¶
func (e *PermissionDeniedError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*PermissionDeniedError) Unwrap ¶
func (e *PermissionDeniedError) Unwrap() error
type PlatformAlreadyAtTheLatestVersionError ¶
type PlatformAlreadyAtTheLatestVersionError struct {
Platform string
}
PlatformAlreadyAtTheLatestVersionError is returned when a platform is up to date
func (*PlatformAlreadyAtTheLatestVersionError) Error ¶
func (e *PlatformAlreadyAtTheLatestVersionError) Error() string
func (*PlatformAlreadyAtTheLatestVersionError) ToRPCStatus ¶
func (e *PlatformAlreadyAtTheLatestVersionError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type PlatformLoadingError ¶
type PlatformLoadingError struct {
Cause error
}
PlatformLoadingError is returned when a platform has fatal errors that prevents loading
func (*PlatformLoadingError) Error ¶
func (e *PlatformLoadingError) Error() string
func (*PlatformLoadingError) ToRPCStatus ¶
func (e *PlatformLoadingError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*PlatformLoadingError) Unwrap ¶
func (e *PlatformLoadingError) Unwrap() error
type PlatformNotFoundError ¶
PlatformNotFoundError is returned when a platform is not found
func (*PlatformNotFoundError) Error ¶
func (e *PlatformNotFoundError) Error() string
func (*PlatformNotFoundError) ToRPCStatus ¶
func (e *PlatformNotFoundError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*PlatformNotFoundError) Unwrap ¶
func (e *PlatformNotFoundError) Unwrap() error
type ProgrammerNotFoundError ¶
ProgrammerNotFoundError is returned when the programmer is not found
func (*ProgrammerNotFoundError) Error ¶
func (e *ProgrammerNotFoundError) Error() string
func (*ProgrammerNotFoundError) ToRPCStatus ¶
func (e *ProgrammerNotFoundError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*ProgrammerNotFoundError) Unwrap ¶
func (e *ProgrammerNotFoundError) Unwrap() error
type ProgrammerRequiredForUploadError ¶
type ProgrammerRequiredForUploadError struct{}
ProgrammerRequiredForUploadError is returned when the upload can be done only using a programmer
func (*ProgrammerRequiredForUploadError) Error ¶
func (e *ProgrammerRequiredForUploadError) Error() string
func (*ProgrammerRequiredForUploadError) ToRPCStatus ¶
func (e *ProgrammerRequiredForUploadError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
type SignatureVerificationFailedError ¶
SignatureVerificationFailedError is returned if a signature verification fails
func (*SignatureVerificationFailedError) Error ¶
func (e *SignatureVerificationFailedError) Error() string
func (*SignatureVerificationFailedError) ToRPCStatus ¶
func (e *SignatureVerificationFailedError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*SignatureVerificationFailedError) Unwrap ¶
func (e *SignatureVerificationFailedError) Unwrap() error
type TempDirCreationFailedError ¶
type TempDirCreationFailedError struct {
Cause error
}
TempDirCreationFailedError is returned if a temp dir could not be created
func (*TempDirCreationFailedError) Error ¶
func (e *TempDirCreationFailedError) Error() string
func (*TempDirCreationFailedError) ToRPCStatus ¶
func (e *TempDirCreationFailedError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*TempDirCreationFailedError) Unwrap ¶
func (e *TempDirCreationFailedError) Unwrap() error
type TempFileCreationFailedError ¶
type TempFileCreationFailedError struct {
Cause error
}
TempFileCreationFailedError is returned if a temp file could not be created
func (*TempFileCreationFailedError) Error ¶
func (e *TempFileCreationFailedError) Error() string
func (*TempFileCreationFailedError) ToRPCStatus ¶
func (e *TempFileCreationFailedError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*TempFileCreationFailedError) Unwrap ¶
func (e *TempFileCreationFailedError) Unwrap() error
type UnavailableError ¶
type UnavailableError struct {}
UnavailableError is returned when a resource is temporarily not available
func (*UnavailableError) Error ¶
func (e *UnavailableError) Error() string
func (*UnavailableError) ToRPCStatus ¶
func (e *UnavailableError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*UnavailableError) Unwrap ¶
func (e *UnavailableError) Unwrap() error
type UnknownFQBNError ¶
type UnknownFQBNError struct {
Cause error
}
UnknownFQBNError is returned when the FQBN is not found
func (*UnknownFQBNError) Error ¶
func (e *UnknownFQBNError) Error() string
func (*UnknownFQBNError) ToRPCStatus ¶
func (e *UnknownFQBNError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*UnknownFQBNError) Unwrap ¶
func (e *UnknownFQBNError) Unwrap() error
type UnknownProfileError ¶
UnknownProfileError is returned when the profile is not found
func (*UnknownProfileError) Error ¶
func (e *UnknownProfileError) Error() string
func (*UnknownProfileError) ToRPCStatus ¶
func (e *UnknownProfileError) ToRPCStatus() *status.Status
ToRPCStatus converts the error into a *status.Status
func (*UnknownProfileError) Unwrap ¶
func (e *UnknownProfileError) Unwrap() error
Directories ¶
Path | Synopsis |
---|---|
discovery_client
discovery_client is a command line UI client to test pluggable discoveries.
|
discovery_client is a command line UI client to test pluggable discoveries. |
Package monitor provides a client for Pluggable Monitors.
|
Package monitor provides a client for Pluggable Monitors. |