github.com/valdemarpavesi/helm@v2.9.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  type Hook_DeletePolicy int32
    90  
    91  const (
    92  	Hook_SUCCEEDED            Hook_DeletePolicy = 0
    93  	Hook_FAILED               Hook_DeletePolicy = 1
    94  	Hook_BEFORE_HOOK_CREATION Hook_DeletePolicy = 2
    95  )
    96  
    97  var Hook_DeletePolicy_name = map[int32]string{
    98  	0: "SUCCEEDED",
    99  	1: "FAILED",
   100  	2: "BEFORE_HOOK_CREATION",
   101  }
   102  var Hook_DeletePolicy_value = map[string]int32{
   103  	"SUCCEEDED":            0,
   104  	"FAILED":               1,
   105  	"BEFORE_HOOK_CREATION": 2,
   106  }
   107  
   108  func (x Hook_DeletePolicy) String() string {
   109  	return proto.EnumName(Hook_DeletePolicy_name, int32(x))
   110  }
   111  func (Hook_DeletePolicy) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
   112  
   113  // Hook defines a hook object.
   114  type Hook struct {
   115  	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
   116  	// Kind is the Kubernetes kind.
   117  	Kind string `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"`
   118  	// Path is the chart-relative path to the template.
   119  	Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
   120  	// Manifest is the manifest contents.
   121  	Manifest string `protobuf:"bytes,4,opt,name=manifest" json:"manifest,omitempty"`
   122  	// Events are the events that this hook fires on.
   123  	Events []Hook_Event `protobuf:"varint,5,rep,packed,name=events,enum=hapi.release.Hook_Event" json:"events,omitempty"`
   124  	// LastRun indicates the date/time this was last run.
   125  	LastRun *google_protobuf.Timestamp `protobuf:"bytes,6,opt,name=last_run,json=lastRun" json:"last_run,omitempty"`
   126  	// Weight indicates the sort order for execution among similar Hook type
   127  	Weight int32 `protobuf:"varint,7,opt,name=weight" json:"weight,omitempty"`
   128  	// DeletePolicies are the policies that indicate when to delete the hook
   129  	DeletePolicies []Hook_DeletePolicy `protobuf:"varint,8,rep,packed,name=delete_policies,json=deletePolicies,enum=hapi.release.Hook_DeletePolicy" json:"delete_policies,omitempty"`
   130  }
   131  
   132  func (m *Hook) Reset()                    { *m = Hook{} }
   133  func (m *Hook) String() string            { return proto.CompactTextString(m) }
   134  func (*Hook) ProtoMessage()               {}
   135  func (*Hook) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
   136  
   137  func (m *Hook) GetName() string {
   138  	if m != nil {
   139  		return m.Name
   140  	}
   141  	return ""
   142  }
   143  
   144  func (m *Hook) GetKind() string {
   145  	if m != nil {
   146  		return m.Kind
   147  	}
   148  	return ""
   149  }
   150  
   151  func (m *Hook) GetPath() string {
   152  	if m != nil {
   153  		return m.Path
   154  	}
   155  	return ""
   156  }
   157  
   158  func (m *Hook) GetManifest() string {
   159  	if m != nil {
   160  		return m.Manifest
   161  	}
   162  	return ""
   163  }
   164  
   165  func (m *Hook) GetEvents() []Hook_Event {
   166  	if m != nil {
   167  		return m.Events
   168  	}
   169  	return nil
   170  }
   171  
   172  func (m *Hook) GetLastRun() *google_protobuf.Timestamp {
   173  	if m != nil {
   174  		return m.LastRun
   175  	}
   176  	return nil
   177  }
   178  
   179  func (m *Hook) GetWeight() int32 {
   180  	if m != nil {
   181  		return m.Weight
   182  	}
   183  	return 0
   184  }
   185  
   186  func (m *Hook) GetDeletePolicies() []Hook_DeletePolicy {
   187  	if m != nil {
   188  		return m.DeletePolicies
   189  	}
   190  	return nil
   191  }
   192  
   193  func init() {
   194  	proto.RegisterType((*Hook)(nil), "hapi.release.Hook")
   195  	proto.RegisterEnum("hapi.release.Hook_Event", Hook_Event_name, Hook_Event_value)
   196  	proto.RegisterEnum("hapi.release.Hook_DeletePolicy", Hook_DeletePolicy_name, Hook_DeletePolicy_value)
   197  }
   198  
   199  func init() { proto.RegisterFile("hapi/release/hook.proto", fileDescriptor0) }
   200  
   201  var fileDescriptor0 = []byte{
   202  	// 445 bytes of a gzipped FileDescriptorProto
   203  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x51, 0x8f, 0x9a, 0x40,
   204  	0x10, 0x80, 0x8f, 0x13, 0x41, 0x47, 0xcf, 0xdb, 0x6e, 0x9a, 0x76, 0xe3, 0xcb, 0x19, 0x9f, 0x7c,
   205  	0xc2, 0xe6, 0x9a, 0xfe, 0x00, 0x84, 0xb9, 0x6a, 0x24, 0x60, 0x16, 0x4c, 0x93, 0xbe, 0x10, 0xae,
   206  	0xee, 0x29, 0x11, 0x81, 0x08, 0xb6, 0xe9, 0x0f, 0xec, 0x3f, 0xe8, 0x0f, 0x6a, 0x76, 0x45, 0x7b,
   207  	0x49, 0xfb, 0x36, 0xf3, 0xcd, 0x37, 0xc3, 0x0c, 0x0b, 0xef, 0x77, 0x49, 0x99, 0x4e, 0x8f, 0x22,
   208  	0x13, 0x49, 0x25, 0xa6, 0xbb, 0xa2, 0xd8, 0x5b, 0xe5, 0xb1, 0xa8, 0x0b, 0xda, 0x97, 0x05, 0xab,
   209  	0x29, 0x0c, 0x1f, 0xb6, 0x45, 0xb1, 0xcd, 0xc4, 0x54, 0xd5, 0x9e, 0x4f, 0x2f, 0xd3, 0x3a, 0x3d,
   210  	0x88, 0xaa, 0x4e, 0x0e, 0xe5, 0x59, 0x1f, 0xff, 0xd2, 0x41, 0x9f, 0x17, 0xc5, 0x9e, 0x52, 0xd0,
   211  	0xf3, 0xe4, 0x20, 0x98, 0x36, 0xd2, 0x26, 0x5d, 0xae, 0x62, 0xc9, 0xf6, 0x69, 0xbe, 0x61, 0xb7,
   212  	0x67, 0x26, 0x63, 0xc9, 0xca, 0xa4, 0xde, 0xb1, 0xd6, 0x99, 0xc9, 0x98, 0x0e, 0xa1, 0x73, 0x48,
   213  	0xf2, 0xf4, 0x45, 0x54, 0x35, 0xd3, 0x15, 0xbf, 0xe6, 0xf4, 0x03, 0x18, 0xe2, 0xbb, 0xc8, 0xeb,
   214  	0x8a, 0xb5, 0x47, 0xad, 0xc9, 0xe0, 0x91, 0x59, 0xaf, 0x17, 0xb4, 0xe4, 0xb7, 0x2d, 0x94, 0x02,
   215  	0x6f, 0x3c, 0xfa, 0x09, 0x3a, 0x59, 0x52, 0xd5, 0xf1, 0xf1, 0x94, 0x33, 0x63, 0xa4, 0x4d, 0x7a,
   216  	0x8f, 0x43, 0xeb, 0x7c, 0x86, 0x75, 0x39, 0xc3, 0x8a, 0x2e, 0x67, 0x70, 0x53, 0xba, 0xfc, 0x94,
   217  	0xd3, 0x77, 0x60, 0xfc, 0x10, 0xe9, 0x76, 0x57, 0x33, 0x73, 0xa4, 0x4d, 0xda, 0xbc, 0xc9, 0xe8,
   218  	0x1c, 0xee, 0x37, 0x22, 0x13, 0xb5, 0x88, 0xcb, 0x22, 0x4b, 0xbf, 0xa5, 0xa2, 0x62, 0x1d, 0xb5,
   219  	0xc9, 0xc3, 0x7f, 0x36, 0x71, 0x95, 0xb9, 0x92, 0xe2, 0x4f, 0x3e, 0xd8, 0xfc, 0xcd, 0x52, 0x51,
   220  	0x8d, 0x7f, 0x6b, 0xd0, 0x56, 0xab, 0xd2, 0x1e, 0x98, 0x6b, 0x7f, 0xe9, 0x07, 0x5f, 0x7c, 0x72,
   221  	0x43, 0xef, 0xa1, 0xb7, 0xe2, 0x18, 0x2f, 0xfc, 0x30, 0xb2, 0x3d, 0x8f, 0x68, 0x94, 0x40, 0x7f,
   222  	0x15, 0x84, 0xd1, 0x95, 0xdc, 0xd2, 0x01, 0x80, 0x54, 0x5c, 0xf4, 0x30, 0x42, 0xd2, 0x52, 0x2d,
   223  	0xd2, 0x68, 0x80, 0x7e, 0x99, 0xb1, 0x5e, 0x7d, 0xe6, 0xb6, 0x8b, 0xa4, 0x7d, 0x9d, 0x71, 0x21,
   224  	0x86, 0x22, 0x1c, 0x63, 0x1e, 0x78, 0xde, 0xcc, 0x76, 0x96, 0xc4, 0xa4, 0x6f, 0xe0, 0x4e, 0x39,
   225  	0x57, 0xd4, 0xa1, 0x0c, 0xde, 0x72, 0xf4, 0xd0, 0x0e, 0x31, 0x8e, 0x30, 0x8c, 0xe2, 0x70, 0xed,
   226  	0x38, 0x18, 0x86, 0xa4, 0xfb, 0x4f, 0xe5, 0xc9, 0x5e, 0x78, 0x6b, 0x8e, 0x04, 0xc6, 0x0e, 0xf4,
   227  	0x5f, 0x9f, 0x4d, 0xef, 0xa0, 0xab, 0xda, 0xd0, 0x45, 0x97, 0xdc, 0x50, 0x00, 0x43, 0xba, 0xe8,
   228  	0x12, 0x4d, 0x0e, 0x99, 0xe1, 0x53, 0xc0, 0x31, 0x9e, 0x07, 0xc1, 0x32, 0x76, 0x38, 0xda, 0xd1,
   229  	0x22, 0xf0, 0xc9, 0xed, 0xac, 0xfb, 0xd5, 0x6c, 0x7e, 0xe4, 0xb3, 0xa1, 0x5e, 0xe9, 0xe3, 0x9f,
   230  	0x00, 0x00, 0x00, 0xff, 0xff, 0x13, 0x64, 0x75, 0x6c, 0xa3, 0x02, 0x00, 0x00,
   231  }