pulumi/sdk/proto/go/errors.pb.go
Sean Gillespie 8b9e24cd85 Allow dynamic-provider to send structured errors
A critical part of the partial update protocol is to return a structured
error when a resource is successfully created, but fails to initialize.
This structured error contains the properties of the
partially-initialized resource, and instructs the engine to halt.

Most languages implement this by attaching "details" to the error, i.e.,
an arbitrary proto message attached to the error. The JavaScript
implementation is not mature enough to include all the facilities
required to use this, so here we must add a `Status` message, which
protobuf requires as part of its structure for returning details.
2018-07-02 13:32:23 -07:00

55 lines
1.8 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: errors.proto
package status
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type ErrorCause struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
StackTrace string `protobuf:"bytes,2,opt,name=stackTrace" json:"stackTrace,omitempty"`
}
func (m *ErrorCause) Reset() { *m = ErrorCause{} }
func (m *ErrorCause) String() string { return proto.CompactTextString(m) }
func (*ErrorCause) ProtoMessage() {}
func (*ErrorCause) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
func (m *ErrorCause) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *ErrorCause) GetStackTrace() string {
if m != nil {
return m.StackTrace
}
return ""
}
func init() {
proto.RegisterType((*ErrorCause)(nil), "pulumirpc.ErrorCause")
}
func init() { proto.RegisterFile("errors.proto", fileDescriptor2) }
var fileDescriptor2 = []byte{
// 106 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x49, 0x2d, 0x2a, 0xca,
0x2f, 0x2a, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2c, 0x28, 0xcd, 0x29, 0xcd, 0xcd,
0x2c, 0x2a, 0x48, 0x56, 0x72, 0xe3, 0xe2, 0x72, 0x05, 0x49, 0x39, 0x27, 0x96, 0x16, 0xa7, 0x0a,
0x49, 0x70, 0xb1, 0xe7, 0xa6, 0x16, 0x17, 0x27, 0xa6, 0xa7, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70,
0x06, 0xc1, 0xb8, 0x42, 0x72, 0x5c, 0x5c, 0xc5, 0x25, 0x89, 0xc9, 0xd9, 0x21, 0x45, 0x89, 0xc9,
0xa9, 0x12, 0x4c, 0x60, 0x49, 0x24, 0x91, 0x24, 0x36, 0xb0, 0xc9, 0xc6, 0x80, 0x00, 0x00, 0x00,
0xff, 0xff, 0xbe, 0x60, 0x19, 0xf9, 0x69, 0x00, 0x00, 0x00,
}