github.com/koderover/helm@v2.17.0+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  package release
     5  
     6  import proto "github.com/golang/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  import timestamp "github.com/golang/protobuf/ptypes/timestamp"
    10  
    11  // Reference imports to suppress errors if they are not otherwise used.
    12  var _ = proto.Marshal
    13  var _ = fmt.Errorf
    14  var _ = math.Inf
    15  
    16  // This is a compile-time assertion to ensure that this generated file
    17  // is compatible with the proto package it is being compiled against.
    18  // A compilation error at this line likely means your copy of the
    19  // proto package needs to be updated.
    20  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    21  
    22  type Hook_Event int32
    23  
    24  const (
    25  	Hook_UNKNOWN              Hook_Event = 0
    26  	Hook_PRE_INSTALL          Hook_Event = 1
    27  	Hook_POST_INSTALL         Hook_Event = 2
    28  	Hook_PRE_DELETE           Hook_Event = 3
    29  	Hook_POST_DELETE          Hook_Event = 4
    30  	Hook_PRE_UPGRADE          Hook_Event = 5
    31  	Hook_POST_UPGRADE         Hook_Event = 6
    32  	Hook_PRE_ROLLBACK         Hook_Event = 7
    33  	Hook_POST_ROLLBACK        Hook_Event = 8
    34  	Hook_RELEASE_TEST_SUCCESS Hook_Event = 9
    35  	Hook_RELEASE_TEST_FAILURE Hook_Event = 10
    36  	Hook_CRD_INSTALL          Hook_Event = 11
    37  )
    38  
    39  var Hook_Event_name = map[int32]string{
    40  	0:  "UNKNOWN",
    41  	1:  "PRE_INSTALL",
    42  	2:  "POST_INSTALL",
    43  	3:  "PRE_DELETE",
    44  	4:  "POST_DELETE",
    45  	5:  "PRE_UPGRADE",
    46  	6:  "POST_UPGRADE",
    47  	7:  "PRE_ROLLBACK",
    48  	8:  "POST_ROLLBACK",
    49  	9:  "RELEASE_TEST_SUCCESS",
    50  	10: "RELEASE_TEST_FAILURE",
    51  	11: "CRD_INSTALL",
    52  }
    53  var Hook_Event_value = map[string]int32{
    54  	"UNKNOWN":              0,
    55  	"PRE_INSTALL":          1,
    56  	"POST_INSTALL":         2,
    57  	"PRE_DELETE":           3,
    58  	"POST_DELETE":          4,
    59  	"PRE_UPGRADE":          5,
    60  	"POST_UPGRADE":         6,
    61  	"PRE_ROLLBACK":         7,
    62  	"POST_ROLLBACK":        8,
    63  	"RELEASE_TEST_SUCCESS": 9,
    64  	"RELEASE_TEST_FAILURE": 10,
    65  	"CRD_INSTALL":          11,
    66  }
    67  
    68  func (x Hook_Event) String() string {
    69  	return proto.EnumName(Hook_Event_name, int32(x))
    70  }
    71  func (Hook_Event) EnumDescriptor() ([]byte, []int) {
    72  	return fileDescriptor_hook_2f46a75c3171b448, []int{0, 0}
    73  }
    74  
    75  type Hook_DeletePolicy int32
    76  
    77  const (
    78  	Hook_SUCCEEDED            Hook_DeletePolicy = 0
    79  	Hook_FAILED               Hook_DeletePolicy = 1
    80  	Hook_BEFORE_HOOK_CREATION Hook_DeletePolicy = 2
    81  )
    82  
    83  var Hook_DeletePolicy_name = map[int32]string{
    84  	0: "SUCCEEDED",
    85  	1: "FAILED",
    86  	2: "BEFORE_HOOK_CREATION",
    87  }
    88  var Hook_DeletePolicy_value = map[string]int32{
    89  	"SUCCEEDED":            0,
    90  	"FAILED":               1,
    91  	"BEFORE_HOOK_CREATION": 2,
    92  }
    93  
    94  func (x Hook_DeletePolicy) String() string {
    95  	return proto.EnumName(Hook_DeletePolicy_name, int32(x))
    96  }
    97  func (Hook_DeletePolicy) EnumDescriptor() ([]byte, []int) {
    98  	return fileDescriptor_hook_2f46a75c3171b448, []int{0, 1}
    99  }
   100  
   101  // Hook defines a hook object.
   102  type Hook struct {
   103  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   104  	// Kind is the Kubernetes kind.
   105  	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
   106  	// Path is the chart-relative path to the template.
   107  	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
   108  	// Manifest is the manifest contents.
   109  	Manifest string `protobuf:"bytes,4,opt,name=manifest,proto3" json:"manifest,omitempty"`
   110  	// Events are the events that this hook fires on.
   111  	Events []Hook_Event `protobuf:"varint,5,rep,packed,name=events,proto3,enum=hapi.release.Hook_Event" json:"events,omitempty"`
   112  	// LastRun indicates the date/time this was last run.
   113  	LastRun *timestamp.Timestamp `protobuf:"bytes,6,opt,name=last_run,json=lastRun,proto3" json:"last_run,omitempty"`
   114  	// Weight indicates the sort order for execution among similar Hook type
   115  	Weight int32 `protobuf:"varint,7,opt,name=weight,proto3" json:"weight,omitempty"`
   116  	// DeletePolicies are the policies that indicate when to delete the hook
   117  	DeletePolicies []Hook_DeletePolicy `protobuf:"varint,8,rep,packed,name=delete_policies,json=deletePolicies,proto3,enum=hapi.release.Hook_DeletePolicy" json:"delete_policies,omitempty"`
   118  	// DeleteTimeout indicates how long to wait for a resource to be deleted before timing out
   119  	DeleteTimeout        int64    `protobuf:"varint,9,opt,name=delete_timeout,json=deleteTimeout,proto3" json:"delete_timeout,omitempty"`
   120  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   121  	XXX_unrecognized     []byte   `json:"-"`
   122  	XXX_sizecache        int32    `json:"-"`
   123  }
   124  
   125  func (m *Hook) Reset()         { *m = Hook{} }
   126  func (m *Hook) String() string { return proto.CompactTextString(m) }
   127  func (*Hook) ProtoMessage()    {}
   128  func (*Hook) Descriptor() ([]byte, []int) {
   129  	return fileDescriptor_hook_2f46a75c3171b448, []int{0}
   130  }
   131  func (m *Hook) XXX_Unmarshal(b []byte) error {
   132  	return xxx_messageInfo_Hook.Unmarshal(m, b)
   133  }
   134  func (m *Hook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   135  	return xxx_messageInfo_Hook.Marshal(b, m, deterministic)
   136  }
   137  func (dst *Hook) XXX_Merge(src proto.Message) {
   138  	xxx_messageInfo_Hook.Merge(dst, src)
   139  }
   140  func (m *Hook) XXX_Size() int {
   141  	return xxx_messageInfo_Hook.Size(m)
   142  }
   143  func (m *Hook) XXX_DiscardUnknown() {
   144  	xxx_messageInfo_Hook.DiscardUnknown(m)
   145  }
   146  
   147  var xxx_messageInfo_Hook proto.InternalMessageInfo
   148  
   149  func (m *Hook) GetName() string {
   150  	if m != nil {
   151  		return m.Name
   152  	}
   153  	return ""
   154  }
   155  
   156  func (m *Hook) GetKind() string {
   157  	if m != nil {
   158  		return m.Kind
   159  	}
   160  	return ""
   161  }
   162  
   163  func (m *Hook) GetPath() string {
   164  	if m != nil {
   165  		return m.Path
   166  	}
   167  	return ""
   168  }
   169  
   170  func (m *Hook) GetManifest() string {
   171  	if m != nil {
   172  		return m.Manifest
   173  	}
   174  	return ""
   175  }
   176  
   177  func (m *Hook) GetEvents() []Hook_Event {
   178  	if m != nil {
   179  		return m.Events
   180  	}
   181  	return nil
   182  }
   183  
   184  func (m *Hook) GetLastRun() *timestamp.Timestamp {
   185  	if m != nil {
   186  		return m.LastRun
   187  	}
   188  	return nil
   189  }
   190  
   191  func (m *Hook) GetWeight() int32 {
   192  	if m != nil {
   193  		return m.Weight
   194  	}
   195  	return 0
   196  }
   197  
   198  func (m *Hook) GetDeletePolicies() []Hook_DeletePolicy {
   199  	if m != nil {
   200  		return m.DeletePolicies
   201  	}
   202  	return nil
   203  }
   204  
   205  func (m *Hook) GetDeleteTimeout() int64 {
   206  	if m != nil {
   207  		return m.DeleteTimeout
   208  	}
   209  	return 0
   210  }
   211  
   212  func init() {
   213  	proto.RegisterType((*Hook)(nil), "hapi.release.Hook")
   214  	proto.RegisterEnum("hapi.release.Hook_Event", Hook_Event_name, Hook_Event_value)
   215  	proto.RegisterEnum("hapi.release.Hook_DeletePolicy", Hook_DeletePolicy_name, Hook_DeletePolicy_value)
   216  }
   217  
   218  func init() { proto.RegisterFile("hapi/release/hook.proto", fileDescriptor_hook_2f46a75c3171b448) }
   219  
   220  var fileDescriptor_hook_2f46a75c3171b448 = []byte{
   221  	// 473 bytes of a gzipped FileDescriptorProto
   222  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xdb, 0x8e, 0xda, 0x3c,
   223  	0x10, 0x80, 0x37, 0x1c, 0x02, 0x0c, 0x87, 0xf5, 0x6f, 0xfd, 0x6a, 0x2d, 0x6e, 0x16, 0x21, 0x55,
   224  	0xe2, 0x2a, 0x54, 0x5b, 0xf5, 0x01, 0x42, 0xe2, 0x2d, 0x88, 0x88, 0x20, 0x27, 0xa8, 0x52, 0x6f,
   225  	0xa2, 0x6c, 0xf1, 0x42, 0x44, 0x88, 0x23, 0x62, 0x5a, 0xf5, 0x81, 0xfb, 0x18, 0x95, 0x2a, 0x3b,
   226  	0x21, 0x5d, 0xa9, 0xbd, 0x9b, 0xf9, 0xe6, 0xf3, 0x78, 0xc6, 0x86, 0xb7, 0xc7, 0x38, 0x4f, 0xe6,
   227  	0x17, 0x9e, 0xf2, 0xb8, 0xe0, 0xf3, 0xa3, 0x10, 0x27, 0x2b, 0xbf, 0x08, 0x29, 0xf0, 0x40, 0x15,
   228  	0xac, 0xaa, 0x30, 0x7e, 0x38, 0x08, 0x71, 0x48, 0xf9, 0x5c, 0xd7, 0x9e, 0xaf, 0x2f, 0x73, 0x99,
   229  	0x9c, 0x79, 0x21, 0xe3, 0x73, 0x5e, 0xea, 0xd3, 0x5f, 0x2d, 0x68, 0x2d, 0x85, 0x38, 0x61, 0x0c,
   230  	0xad, 0x2c, 0x3e, 0x73, 0x62, 0x4c, 0x8c, 0x59, 0x8f, 0xe9, 0x58, 0xb1, 0x53, 0x92, 0xed, 0x49,
   231  	0xa3, 0x64, 0x2a, 0x56, 0x2c, 0x8f, 0xe5, 0x91, 0x34, 0x4b, 0xa6, 0x62, 0x3c, 0x86, 0xee, 0x39,
   232  	0xce, 0x92, 0x17, 0x5e, 0x48, 0xd2, 0xd2, 0xbc, 0xce, 0xf1, 0x7b, 0x30, 0xf9, 0x37, 0x9e, 0xc9,
   233  	0x82, 0xb4, 0x27, 0xcd, 0xd9, 0xe8, 0x91, 0x58, 0xaf, 0x07, 0xb4, 0xd4, 0xdd, 0x16, 0x55, 0x02,
   234  	0xab, 0x3c, 0xfc, 0x11, 0xba, 0x69, 0x5c, 0xc8, 0xe8, 0x72, 0xcd, 0x88, 0x39, 0x31, 0x66, 0xfd,
   235  	0xc7, 0xb1, 0x55, 0xae, 0x61, 0xdd, 0xd6, 0xb0, 0xc2, 0xdb, 0x1a, 0xac, 0xa3, 0x5c, 0x76, 0xcd,
   236  	0xf0, 0x1b, 0x30, 0xbf, 0xf3, 0xe4, 0x70, 0x94, 0xa4, 0x33, 0x31, 0x66, 0x6d, 0x56, 0x65, 0x78,
   237  	0x09, 0xf7, 0x7b, 0x9e, 0x72, 0xc9, 0xa3, 0x5c, 0xa4, 0xc9, 0xd7, 0x84, 0x17, 0xa4, 0xab, 0x27,
   238  	0x79, 0xf8, 0xc7, 0x24, 0xae, 0x36, 0xb7, 0x4a, 0xfc, 0xc1, 0x46, 0xfb, 0x3f, 0x59, 0xc2, 0x0b,
   239  	0xfc, 0x0e, 0x2a, 0x12, 0xa9, 0x57, 0x14, 0x57, 0x49, 0x7a, 0x13, 0x63, 0xd6, 0x64, 0xc3, 0x92,
   240  	0x86, 0x25, 0x9c, 0xfe, 0x34, 0xa0, 0xad, 0x37, 0xc2, 0x7d, 0xe8, 0xec, 0x36, 0xeb, 0x8d, 0xff,
   241  	0x79, 0x83, 0xee, 0xf0, 0x3d, 0xf4, 0xb7, 0x8c, 0x46, 0xab, 0x4d, 0x10, 0xda, 0x9e, 0x87, 0x0c,
   242  	0x8c, 0x60, 0xb0, 0xf5, 0x83, 0xb0, 0x26, 0x0d, 0x3c, 0x02, 0x50, 0x8a, 0x4b, 0x3d, 0x1a, 0x52,
   243  	0xd4, 0xd4, 0x47, 0x94, 0x51, 0x81, 0xd6, 0xad, 0xc7, 0x6e, 0xfb, 0x89, 0xd9, 0x2e, 0x45, 0xed,
   244  	0xba, 0xc7, 0x8d, 0x98, 0x9a, 0x30, 0x1a, 0x31, 0xdf, 0xf3, 0x16, 0xb6, 0xb3, 0x46, 0x1d, 0xfc,
   245  	0x1f, 0x0c, 0xb5, 0x53, 0xa3, 0x2e, 0x26, 0xf0, 0x3f, 0xa3, 0x1e, 0xb5, 0x03, 0x1a, 0x85, 0x34,
   246  	0x08, 0xa3, 0x60, 0xe7, 0x38, 0x34, 0x08, 0x50, 0xef, 0xaf, 0xca, 0x93, 0xbd, 0xf2, 0x76, 0x8c,
   247  	0x22, 0x50, 0x77, 0x3b, 0xcc, 0xad, 0xa7, 0xed, 0x4f, 0x1d, 0x18, 0xbc, 0x7e, 0x2e, 0x3c, 0x84,
   248  	0x9e, 0xee, 0x43, 0x5d, 0xea, 0xa2, 0x3b, 0x0c, 0x60, 0xaa, 0xc3, 0xd4, 0x45, 0x86, 0xea, 0xba,
   249  	0xa0, 0x4f, 0x3e, 0xa3, 0xd1, 0xd2, 0xf7, 0xd7, 0x91, 0xc3, 0xa8, 0x1d, 0xae, 0xfc, 0x0d, 0x6a,
   250  	0x2c, 0x7a, 0x5f, 0x3a, 0xd5, 0x07, 0x3c, 0x9b, 0xfa, 0x77, 0x3f, 0xfc, 0x0e, 0x00, 0x00, 0xff,
   251  	0xff, 0xce, 0x84, 0xd9, 0x98, 0xdb, 0x02, 0x00, 0x00,
   252  }