github.com/Beeketing/helm@v2.12.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 Hook_CRD_INSTALL Hook_Event = 11 56 ) 57 58 var Hook_Event_name = map[int32]string{ 59 0: "UNKNOWN", 60 1: "PRE_INSTALL", 61 2: "POST_INSTALL", 62 3: "PRE_DELETE", 63 4: "POST_DELETE", 64 5: "PRE_UPGRADE", 65 6: "POST_UPGRADE", 66 7: "PRE_ROLLBACK", 67 8: "POST_ROLLBACK", 68 9: "RELEASE_TEST_SUCCESS", 69 10: "RELEASE_TEST_FAILURE", 70 11: "CRD_INSTALL", 71 } 72 var Hook_Event_value = map[string]int32{ 73 "UNKNOWN": 0, 74 "PRE_INSTALL": 1, 75 "POST_INSTALL": 2, 76 "PRE_DELETE": 3, 77 "POST_DELETE": 4, 78 "PRE_UPGRADE": 5, 79 "POST_UPGRADE": 6, 80 "PRE_ROLLBACK": 7, 81 "POST_ROLLBACK": 8, 82 "RELEASE_TEST_SUCCESS": 9, 83 "RELEASE_TEST_FAILURE": 10, 84 "CRD_INSTALL": 11, 85 } 86 87 func (x Hook_Event) String() string { 88 return proto.EnumName(Hook_Event_name, int32(x)) 89 } 90 func (Hook_Event) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } 91 92 type Hook_DeletePolicy int32 93 94 const ( 95 Hook_SUCCEEDED Hook_DeletePolicy = 0 96 Hook_FAILED Hook_DeletePolicy = 1 97 Hook_BEFORE_HOOK_CREATION Hook_DeletePolicy = 2 98 ) 99 100 var Hook_DeletePolicy_name = map[int32]string{ 101 0: "SUCCEEDED", 102 1: "FAILED", 103 2: "BEFORE_HOOK_CREATION", 104 } 105 var Hook_DeletePolicy_value = map[string]int32{ 106 "SUCCEEDED": 0, 107 "FAILED": 1, 108 "BEFORE_HOOK_CREATION": 2, 109 } 110 111 func (x Hook_DeletePolicy) String() string { 112 return proto.EnumName(Hook_DeletePolicy_name, int32(x)) 113 } 114 func (Hook_DeletePolicy) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} } 115 116 // Hook defines a hook object. 117 type Hook struct { 118 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 119 // Kind is the Kubernetes kind. 120 Kind string `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"` 121 // Path is the chart-relative path to the template. 122 Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"` 123 // Manifest is the manifest contents. 124 Manifest string `protobuf:"bytes,4,opt,name=manifest" json:"manifest,omitempty"` 125 // Events are the events that this hook fires on. 126 Events []Hook_Event `protobuf:"varint,5,rep,packed,name=events,enum=hapi.release.Hook_Event" json:"events,omitempty"` 127 // LastRun indicates the date/time this was last run. 128 LastRun *google_protobuf.Timestamp `protobuf:"bytes,6,opt,name=last_run,json=lastRun" json:"last_run,omitempty"` 129 // Weight indicates the sort order for execution among similar Hook type 130 Weight int32 `protobuf:"varint,7,opt,name=weight" json:"weight,omitempty"` 131 // DeletePolicies are the policies that indicate when to delete the hook 132 DeletePolicies []Hook_DeletePolicy `protobuf:"varint,8,rep,packed,name=delete_policies,json=deletePolicies,enum=hapi.release.Hook_DeletePolicy" json:"delete_policies,omitempty"` 133 } 134 135 func (m *Hook) Reset() { *m = Hook{} } 136 func (m *Hook) String() string { return proto.CompactTextString(m) } 137 func (*Hook) ProtoMessage() {} 138 func (*Hook) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 139 140 func (m *Hook) GetName() string { 141 if m != nil { 142 return m.Name 143 } 144 return "" 145 } 146 147 func (m *Hook) GetKind() string { 148 if m != nil { 149 return m.Kind 150 } 151 return "" 152 } 153 154 func (m *Hook) GetPath() string { 155 if m != nil { 156 return m.Path 157 } 158 return "" 159 } 160 161 func (m *Hook) GetManifest() string { 162 if m != nil { 163 return m.Manifest 164 } 165 return "" 166 } 167 168 func (m *Hook) GetEvents() []Hook_Event { 169 if m != nil { 170 return m.Events 171 } 172 return nil 173 } 174 175 func (m *Hook) GetLastRun() *google_protobuf.Timestamp { 176 if m != nil { 177 return m.LastRun 178 } 179 return nil 180 } 181 182 func (m *Hook) GetWeight() int32 { 183 if m != nil { 184 return m.Weight 185 } 186 return 0 187 } 188 189 func (m *Hook) GetDeletePolicies() []Hook_DeletePolicy { 190 if m != nil { 191 return m.DeletePolicies 192 } 193 return nil 194 } 195 196 func init() { 197 proto.RegisterType((*Hook)(nil), "hapi.release.Hook") 198 proto.RegisterEnum("hapi.release.Hook_Event", Hook_Event_name, Hook_Event_value) 199 proto.RegisterEnum("hapi.release.Hook_DeletePolicy", Hook_DeletePolicy_name, Hook_DeletePolicy_value) 200 } 201 202 func init() { proto.RegisterFile("hapi/release/hook.proto", fileDescriptor0) } 203 204 var fileDescriptor0 = []byte{ 205 // 453 bytes of a gzipped FileDescriptorProto 206 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x51, 0x8f, 0x9a, 0x40, 207 0x10, 0x80, 0x8f, 0x53, 0x41, 0x47, 0xcf, 0xdb, 0x6e, 0x9a, 0x76, 0xe3, 0xcb, 0x19, 0x9f, 0x7c, 208 0xc2, 0xe6, 0x9a, 0xfe, 0x00, 0x84, 0xb9, 0x6a, 0x24, 0x60, 0x16, 0x4c, 0x93, 0xbe, 0x10, 0xae, 209 0xee, 0x29, 0x11, 0x81, 0x08, 0xb6, 0xe9, 0x1f, 0xed, 0x3f, 0xe8, 0xff, 0x68, 0x76, 0x45, 0x7a, 210 0x49, 0xfb, 0x36, 0xf3, 0xcd, 0xb7, 0xb3, 0x33, 0xbb, 0xf0, 0x7e, 0x1f, 0x17, 0xc9, 0xec, 0x24, 211 0x52, 0x11, 0x97, 0x62, 0xb6, 0xcf, 0xf3, 0x83, 0x59, 0x9c, 0xf2, 0x2a, 0xa7, 0x03, 0x59, 0x30, 212 0xeb, 0xc2, 0xe8, 0x61, 0x97, 0xe7, 0xbb, 0x54, 0xcc, 0x54, 0xed, 0xf9, 0xfc, 0x32, 0xab, 0x92, 213 0xa3, 0x28, 0xab, 0xf8, 0x58, 0x5c, 0xf4, 0xc9, 0xaf, 0x36, 0xb4, 0x17, 0x79, 0x7e, 0xa0, 0x14, 214 0xda, 0x59, 0x7c, 0x14, 0x4c, 0x1b, 0x6b, 0xd3, 0x1e, 0x57, 0xb1, 0x64, 0x87, 0x24, 0xdb, 0xb2, 215 0xdb, 0x0b, 0x93, 0xb1, 0x64, 0x45, 0x5c, 0xed, 0x59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