...

Source file src/github.com/datawire/ambassador/v2/pkg/api/envoy/watchdog/v3alpha/abort_action.pb.go

Documentation: github.com/datawire/ambassador/v2/pkg/api/envoy/watchdog/v3alpha

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.14.0
     5  // source: envoy/watchdog/v3alpha/abort_action.proto
     6  
     7  package envoy_watchdog_v3alpha
     8  
     9  import (
    10  	_ "github.com/cncf/udpa/go/udpa/annotations"
    11  	_ "github.com/envoyproxy/protoc-gen-validate/validate"
    12  	proto "github.com/golang/protobuf/proto"
    13  	duration "github.com/golang/protobuf/ptypes/duration"
    14  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    16  	reflect "reflect"
    17  	sync "sync"
    18  )
    19  
    20  const (
    21  	// Verify that this generated code is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    23  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    24  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    25  )
    26  
    27  // This is a compile-time assertion that a sufficiently up-to-date version
    28  // of the legacy proto package is being used.
    29  const _ = proto.ProtoPackageIsVersion4
    30  
    31  // A GuardDogAction that will terminate the process by killing the
    32  // stuck thread. This would allow easier access to the call stack of the stuck
    33  // thread since we would run signal handlers on that thread. By default
    34  // this will be registered to run as the last watchdog action on KILL and
    35  // MULTIKILL events if those are enabled.
    36  type AbortActionConfig struct {
    37  	state         protoimpl.MessageState
    38  	sizeCache     protoimpl.SizeCache
    39  	unknownFields protoimpl.UnknownFields
    40  
    41  	// How long to wait for the thread to respond to the thread kill function
    42  	// before killing the process from this action. This is a blocking action.
    43  	// By default this is 5 seconds.
    44  	WaitDuration *duration.Duration `protobuf:"bytes,1,opt,name=wait_duration,json=waitDuration,proto3" json:"wait_duration,omitempty"`
    45  }
    46  
    47  func (x *AbortActionConfig) Reset() {
    48  	*x = AbortActionConfig{}
    49  	if protoimpl.UnsafeEnabled {
    50  		mi := &file_envoy_watchdog_v3alpha_abort_action_proto_msgTypes[0]
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		ms.StoreMessageInfo(mi)
    53  	}
    54  }
    55  
    56  func (x *AbortActionConfig) String() string {
    57  	return protoimpl.X.MessageStringOf(x)
    58  }
    59  
    60  func (*AbortActionConfig) ProtoMessage() {}
    61  
    62  func (x *AbortActionConfig) ProtoReflect() protoreflect.Message {
    63  	mi := &file_envoy_watchdog_v3alpha_abort_action_proto_msgTypes[0]
    64  	if protoimpl.UnsafeEnabled && x != nil {
    65  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    66  		if ms.LoadMessageInfo() == nil {
    67  			ms.StoreMessageInfo(mi)
    68  		}
    69  		return ms
    70  	}
    71  	return mi.MessageOf(x)
    72  }
    73  
    74  // Deprecated: Use AbortActionConfig.ProtoReflect.Descriptor instead.
    75  func (*AbortActionConfig) Descriptor() ([]byte, []int) {
    76  	return file_envoy_watchdog_v3alpha_abort_action_proto_rawDescGZIP(), []int{0}
    77  }
    78  
    79  func (x *AbortActionConfig) GetWaitDuration() *duration.Duration {
    80  	if x != nil {
    81  		return x.WaitDuration
    82  	}
    83  	return nil
    84  }
    85  
    86  var File_envoy_watchdog_v3alpha_abort_action_proto protoreflect.FileDescriptor
    87  
    88  var file_envoy_watchdog_v3alpha_abort_action_proto_rawDesc = []byte{
    89  	0x0a, 0x29, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x64, 0x6f, 0x67,
    90  	0x2f, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x5f, 0x61,
    91  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x65, 0x6e, 0x76,
    92  	0x6f, 0x79, 0x2e, 0x77, 0x61, 0x74, 0x63, 0x68, 0x64, 0x6f, 0x67, 0x2e, 0x76, 0x33, 0x61, 0x6c,
    93  	0x70, 0x68, 0x61, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
    94  	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
    95  	0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
    96  	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f,
    97  	0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
    98  	0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e,
    99  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f,
   100  	0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x53,
   101  	0x0a, 0x11, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,
   102  	0x66, 0x69, 0x67, 0x12, 0x3e, 0x0a, 0x0d, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61,
   103  	0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f,
   104  	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72,
   105  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x77, 0x61, 0x69, 0x74, 0x44, 0x75, 0x72, 0x61, 0x74,
   106  	0x69, 0x6f, 0x6e, 0x42, 0x4a, 0x0a, 0x24, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70,
   107  	0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x77, 0x61, 0x74, 0x63, 0x68,
   108  	0x64, 0x6f, 0x67, 0x2e, 0x76, 0x33, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x10, 0x41, 0x62, 0x6f,
   109  	0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba,
   110  	0x80, 0xc8, 0xd1, 0x06, 0x02, 0x08, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62,
   111  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   112  }
   113  
   114  var (
   115  	file_envoy_watchdog_v3alpha_abort_action_proto_rawDescOnce sync.Once
   116  	file_envoy_watchdog_v3alpha_abort_action_proto_rawDescData = file_envoy_watchdog_v3alpha_abort_action_proto_rawDesc
   117  )
   118  
   119  func file_envoy_watchdog_v3alpha_abort_action_proto_rawDescGZIP() []byte {
   120  	file_envoy_watchdog_v3alpha_abort_action_proto_rawDescOnce.Do(func() {
   121  		file_envoy_watchdog_v3alpha_abort_action_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_watchdog_v3alpha_abort_action_proto_rawDescData)
   122  	})
   123  	return file_envoy_watchdog_v3alpha_abort_action_proto_rawDescData
   124  }
   125  
   126  var file_envoy_watchdog_v3alpha_abort_action_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   127  var file_envoy_watchdog_v3alpha_abort_action_proto_goTypes = []interface{}{
   128  	(*AbortActionConfig)(nil), // 0: envoy.watchdog.v3alpha.AbortActionConfig
   129  	(*duration.Duration)(nil), // 1: google.protobuf.Duration
   130  }
   131  var file_envoy_watchdog_v3alpha_abort_action_proto_depIdxs = []int32{
   132  	1, // 0: envoy.watchdog.v3alpha.AbortActionConfig.wait_duration:type_name -> google.protobuf.Duration
   133  	1, // [1:1] is the sub-list for method output_type
   134  	1, // [1:1] is the sub-list for method input_type
   135  	1, // [1:1] is the sub-list for extension type_name
   136  	1, // [1:1] is the sub-list for extension extendee
   137  	0, // [0:1] is the sub-list for field type_name
   138  }
   139  
   140  func init() { file_envoy_watchdog_v3alpha_abort_action_proto_init() }
   141  func file_envoy_watchdog_v3alpha_abort_action_proto_init() {
   142  	if File_envoy_watchdog_v3alpha_abort_action_proto != nil {
   143  		return
   144  	}
   145  	if !protoimpl.UnsafeEnabled {
   146  		file_envoy_watchdog_v3alpha_abort_action_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   147  			switch v := v.(*AbortActionConfig); i {
   148  			case 0:
   149  				return &v.state
   150  			case 1:
   151  				return &v.sizeCache
   152  			case 2:
   153  				return &v.unknownFields
   154  			default:
   155  				return nil
   156  			}
   157  		}
   158  	}
   159  	type x struct{}
   160  	out := protoimpl.TypeBuilder{
   161  		File: protoimpl.DescBuilder{
   162  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   163  			RawDescriptor: file_envoy_watchdog_v3alpha_abort_action_proto_rawDesc,
   164  			NumEnums:      0,
   165  			NumMessages:   1,
   166  			NumExtensions: 0,
   167  			NumServices:   0,
   168  		},
   169  		GoTypes:           file_envoy_watchdog_v3alpha_abort_action_proto_goTypes,
   170  		DependencyIndexes: file_envoy_watchdog_v3alpha_abort_action_proto_depIdxs,
   171  		MessageInfos:      file_envoy_watchdog_v3alpha_abort_action_proto_msgTypes,
   172  	}.Build()
   173  	File_envoy_watchdog_v3alpha_abort_action_proto = out.File
   174  	file_envoy_watchdog_v3alpha_abort_action_proto_rawDesc = nil
   175  	file_envoy_watchdog_v3alpha_abort_action_proto_goTypes = nil
   176  	file_envoy_watchdog_v3alpha_abort_action_proto_depIdxs = nil
   177  }
   178  

View as plain text