Documentation ¶
Index ¶
- func Decode(failOnWarn bool, res *pb.DecodeResponse) error
- func Error(msg string, errs ...error) error
- func Format(cfg *pb.FormatRequest_Config, res *pb.FormatResponse) error
- func GetVersion(res *pb.GetVersionResponse) error
- func HasErrorDiags(res ...ResWithDiags) bool
- func HasFailed(failOnWarn bool, res ...ResWithDiags) bool
- func HasWarningDiags(res ...ResWithDiags) bool
- func ListSamples(failOnWarn bool, res *pb.ListSamplesResponse) error
- func ListScenarios(failOnWarn bool, res *pb.ListScenariosResponse) error
- func OperationResponse(failOnWarn bool, res *pb.Operation_Response) error
- func OperationResponses(failOnWarn bool, res *pb.OperationResponses) error
- func OutlineScenarios(failOnWarn bool, res *pb.OutlineScenariosResponse) error
- func ScenariosValidateConfig(failOnWarn bool, res *pb.ValidateScenariosConfigurationResponse) error
- func ShowSampleObservation(failOnWarn bool, res *pb.ObserveSampleResponse) error
- func Unimplemented(msg string) error
- type ErrExit
- type ResWithDiags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(failOnWarn bool, res *pb.DecodeResponse) error
Decode returns the status for a fligth plan decode.
func Format ¶
func Format(cfg *pb.FormatRequest_Config, res *pb.FormatResponse) error
Format returns the format status.
func GetVersion ¶
func GetVersion(res *pb.GetVersionResponse) error
GetVersion returns the get version response.
func HasErrorDiags ¶
func HasErrorDiags(res ...ResWithDiags) bool
HasErrorDiags returns whether or not the response has error diagnostics.
func HasFailed ¶
func HasFailed(failOnWarn bool, res ...ResWithDiags) bool
HasFailed takes a boolean which determines whether or not the diagnostics failed or not.
func HasWarningDiags ¶
func HasWarningDiags(res ...ResWithDiags) bool
HasWarningDiags returns whether or not the response has warning diagnostics.
func ListSamples ¶
func ListSamples(failOnWarn bool, res *pb.ListSamplesResponse) error
ListSamples returns the status response for a sample list.
func ListScenarios ¶
func ListScenarios(failOnWarn bool, res *pb.ListScenariosResponse) error
ListScenarios returns the status response for a scenario list.
func OperationResponse ¶
func OperationResponse(failOnWarn bool, res *pb.Operation_Response) error
OperationResponse returns the status for an operation.
func OperationResponses ¶
func OperationResponses(failOnWarn bool, res *pb.OperationResponses) error
OperationResponses returns the status multiple operations.
func OutlineScenarios ¶
func OutlineScenarios(failOnWarn bool, res *pb.OutlineScenariosResponse) error
OutlineScenarios returns the status response for a scenario outline.
func ScenariosValidateConfig ¶
func ScenariosValidateConfig(failOnWarn bool, res *pb.ValidateScenariosConfigurationResponse) error
ScenariosValidateConfig returns the status response for a flight plan validation.
func ShowSampleObservation ¶
func ShowSampleObservation(failOnWarn bool, res *pb.ObserveSampleResponse) error
ShowSampleObservation returns status of the sample observation.
func Unimplemented ¶
Unimplemented returns an unimplemented error.
Types ¶
type ResWithDiags ¶
type ResWithDiags interface {
GetDiagnostics() []*pb.Diagnostic
}
ResWithDiags is an interface of a response that has diagnostics.