github.com/migueleliasweb/helm@v2.6.1+incompatible/pkg/proto/hapi/release/hook.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: hapi/release/hook.proto 3 4 /* 5 Package release is a generated protocol buffer package. 6 7 It is generated from these files: 8 hapi/release/hook.proto 9 hapi/release/info.proto 10 hapi/release/release.proto 11 hapi/release/status.proto 12 hapi/release/test_run.proto 13 hapi/release/test_suite.proto 14 15 It has these top-level messages: 16 Hook 17 Info 18 Release 19 Status 20 TestRun 21 TestSuite 22 */ 23 package release 24 25 import proto "github.com/golang/protobuf/proto" 26 import fmt "fmt" 27 import math "math" 28 import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" 29 30 // Reference imports to suppress errors if they are not otherwise used. 31 var _ = proto.Marshal 32 var _ = fmt.Errorf 33 var _ = math.Inf 34 35 // This is a compile-time assertion to ensure that this generated file 36 // is compatible with the proto package it is being compiled against. 37 // A compilation error at this line likely means your copy of the 38 // proto package needs to be updated. 39 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 40 41 type Hook_Event int32 42 43 const ( 44 Hook_UNKNOWN Hook_Event = 0 45 Hook_PRE_INSTALL Hook_Event = 1 46 Hook_POST_INSTALL Hook_Event = 2 47 Hook_PRE_DELETE Hook_Event = 3 48 Hook_POST_DELETE Hook_Event = 4 49 Hook_PRE_UPGRADE Hook_Event = 5 50 Hook_POST_UPGRADE Hook_Event = 6 51 Hook_PRE_ROLLBACK Hook_Event = 7 52 Hook_POST_ROLLBACK Hook_Event = 8 53 Hook_RELEASE_TEST_SUCCESS Hook_Event = 9 54 Hook_RELEASE_TEST_FAILURE Hook_Event = 10 55 ) 56 57 var Hook_Event_name = map[int32]string{ 58 0: "UNKNOWN", 59 1: "PRE_INSTALL", 60 2: "POST_INSTALL", 61 3: "PRE_DELETE", 62 4: "POST_DELETE", 63 5: "PRE_UPGRADE", 64 6: "POST_UPGRADE", 65 7: "PRE_ROLLBACK", 66 8: "POST_ROLLBACK", 67 9: "RELEASE_TEST_SUCCESS", 68 10: "RELEASE_TEST_FAILURE", 69 } 70 var Hook_Event_value = map[string]int32{ 71 "UNKNOWN": 0, 72 "PRE_INSTALL": 1, 73 "POST_INSTALL": 2, 74 "PRE_DELETE": 3, 75 "POST_DELETE": 4, 76 "PRE_UPGRADE": 5, 77 "POST_UPGRADE": 6, 78 "PRE_ROLLBACK": 7, 79 "POST_ROLLBACK": 8, 80 "RELEASE_TEST_SUCCESS": 9, 81 "RELEASE_TEST_FAILURE": 10, 82 } 83 84 func (x Hook_Event) String() string { 85 return proto.EnumName(Hook_Event_name, int32(x)) 86 } 87 func (Hook_Event) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } 88 89 // Hook defines a hook object. 90 type Hook struct { 91 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 92 // Kind is the Kubernetes kind. 93 Kind string `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"` 94 // Path is the chart-relative path to the template. 95 Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"` 96 // Manifest is the manifest contents. 97 Manifest string `protobuf:"bytes,4,opt,name=manifest" json:"manifest,omitempty"` 98 // Events are the events that this hook fires on. 99 Events []Hook_Event `protobuf:"varint,5,rep,packed,name=events,enum=hapi.release.Hook_Event" json:"events,omitempty"` 100 // LastRun indicates the date/time this was last run. 101 LastRun *google_protobuf.Timestamp `protobuf:"bytes,6,opt,name=last_run,json=lastRun" json:"last_run,omitempty"` 102 // Weight indicates the sort order for execution among similar Hook type 103 Weight int32 `protobuf:"varint,7,opt,name=weight" json:"weight,omitempty"` 104 } 105 106 func (m *Hook) Reset() { *m = Hook{} } 107 func (m *Hook) String() string { return proto.CompactTextString(m) } 108 func (*Hook) ProtoMessage() {} 109 func (*Hook) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 110 111 func (m *Hook) GetName() string { 112 if m != nil { 113 return m.Name 114 } 115 return "" 116 } 117 118 func (m *Hook) GetKind() string { 119 if m != nil { 120 return m.Kind 121 } 122 return "" 123 } 124 125 func (m *Hook) GetPath() string { 126 if m != nil { 127 return m.Path 128 } 129 return "" 130 } 131 132 func (m *Hook) GetManifest() string { 133 if m != nil { 134 return m.Manifest 135 } 136 return "" 137 } 138 139 func (m *Hook) GetEvents() []Hook_Event { 140 if m != nil { 141 return m.Events 142 } 143 return nil 144 } 145 146 func (m *Hook) GetLastRun() *google_protobuf.Timestamp { 147 if m != nil { 148 return m.LastRun 149 } 150 return nil 151 } 152 153 func (m *Hook) GetWeight() int32 { 154 if m != nil { 155 return m.Weight 156 } 157 return 0 158 } 159 160 func init() { 161 proto.RegisterType((*Hook)(nil), "hapi.release.Hook") 162 proto.RegisterEnum("hapi.release.Hook_Event", Hook_Event_name, Hook_Event_value) 163 } 164 165 func init() { proto.RegisterFile("hapi/release/hook.proto", fileDescriptor0) } 166 167 var fileDescriptor0 = []byte{ 168 // 371 bytes of a gzipped FileDescriptorProto 169 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xdf, 0x8e, 0x93, 0x40, 170 0x14, 0x87, 0x65, 0x5b, 0xa0, 0x3d, 0x5d, 0xd7, 0x71, 0x62, 0x74, 0xd2, 0x1b, 0xc9, 0x5e, 0x71, 171 0x35, 0x98, 0x35, 0x3e, 0x00, 0xdb, 0x1d, 0x75, 0xb3, 0x84, 0x36, 0x03, 0xc4, 0xc4, 0x1b, 0xc2, 172 0xc6, 0x69, 0x21, 0x2d, 0x0c, 0x29, 0x53, 0x7d, 0x33, 0x9f, 0xc4, 0x07, 0x32, 0x33, 0xfc, 0x89, 173 0x89, 0x77, 0x67, 0xbe, 0xdf, 0xc7, 0x39, 0x9c, 0x03, 0xef, 0xca, 0xa2, 0xad, 0x82, 0xb3, 0x38, 174 0x89, 0xa2, 0x13, 0x41, 0x29, 0xe5, 0x91, 0xb6, 0x67, 0xa9, 0x24, 0xbe, 0xd6, 0x01, 0x1d, 0x82, 175 0xf5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