github.com/y-taka-23/helm@v2.8.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  /*
     5  Package release is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	hapi/release/hook.proto
     9  
    10  It has these top-level messages:
    11  	Hook
    12  */
    13  package release
    14  
    15  import proto "github.com/golang/protobuf/proto"
    16  import fmt "fmt"
    17  import math "math"
    18  import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var _ = proto.Marshal
    22  var _ = fmt.Errorf
    23  var _ = math.Inf
    24  
    25  // This is a compile-time assertion to ensure that this generated file
    26  // is compatible with the proto package it is being compiled against.
    27  // A compilation error at this line likely means your copy of the
    28  // proto package needs to be updated.
    29  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    30  
    31  type Hook_Event int32
    32  
    33  const (
    34  	Hook_UNKNOWN              Hook_Event = 0
    35  	Hook_PRE_INSTALL          Hook_Event = 1
    36  	Hook_POST_INSTALL         Hook_Event = 2
    37  	Hook_PRE_DELETE           Hook_Event = 3
    38  	Hook_POST_DELETE          Hook_Event = 4
    39  	Hook_PRE_UPGRADE          Hook_Event = 5
    40  	Hook_POST_UPGRADE         Hook_Event = 6
    41  	Hook_PRE_ROLLBACK         Hook_Event = 7
    42  	Hook_POST_ROLLBACK        Hook_Event = 8
    43  	Hook_RELEASE_TEST_SUCCESS Hook_Event = 9
    44  	Hook_RELEASE_TEST_FAILURE Hook_Event = 10
    45  )
    46  
    47  var Hook_Event_name = map[int32]string{
    48  	0:  "UNKNOWN",
    49  	1:  "PRE_INSTALL",
    50  	2:  "POST_INSTALL",
    51  	3:  "PRE_DELETE",
    52  	4:  "POST_DELETE",
    53  	5:  "PRE_UPGRADE",
    54  	6:  "POST_UPGRADE",
    55  	7:  "PRE_ROLLBACK",
    56  	8:  "POST_ROLLBACK",
    57  	9:  "RELEASE_TEST_SUCCESS",
    58  	10: "RELEASE_TEST_FAILURE",
    59  }
    60  var Hook_Event_value = map[string]int32{
    61  	"UNKNOWN":              0,
    62  	"PRE_INSTALL":          1,
    63  	"POST_INSTALL":         2,
    64  	"PRE_DELETE":           3,
    65  	"POST_DELETE":          4,
    66  	"PRE_UPGRADE":          5,
    67  	"POST_UPGRADE":         6,
    68  	"PRE_ROLLBACK":         7,
    69  	"POST_ROLLBACK":        8,
    70  	"RELEASE_TEST_SUCCESS": 9,
    71  	"RELEASE_TEST_FAILURE": 10,
    72  }
    73  
    74  func (x Hook_Event) String() string {
    75  	return proto.EnumName(Hook_Event_name, int32(x))
    76  }
    77  func (Hook_Event) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
    78  
    79  type Hook_DeletePolicy int32
    80  
    81  const (
    82  	Hook_SUCCEEDED Hook_DeletePolicy = 0
    83  	Hook_FAILED    Hook_DeletePolicy = 1
    84  )
    85  
    86  var Hook_DeletePolicy_name = map[int32]string{
    87  	0: "SUCCEEDED",
    88  	1: "FAILED",
    89  }
    90  var Hook_DeletePolicy_value = map[string]int32{
    91  	"SUCCEEDED": 0,
    92  	"FAILED":    1,
    93  }
    94  
    95  func (x Hook_DeletePolicy) String() string {
    96  	return proto.EnumName(Hook_DeletePolicy_name, int32(x))
    97  }
    98  func (Hook_DeletePolicy) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
    99  
   100  // Hook defines a hook object.
   101  type Hook struct {
   102  	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
   103  	// Kind is the Kubernetes kind.
   104  	Kind string `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"`
   105  	// Path is the chart-relative path to the template.
   106  	Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
   107  	// Manifest is the manifest contents.
   108  	Manifest string `protobuf:"bytes,4,opt,name=manifest" json:"manifest,omitempty"`
   109  	// Events are the events that this hook fires on.
   110  	Events []Hook_Event `protobuf:"varint,5,rep,packed,name=events,enum=hapi.release.Hook_Event" json:"events,omitempty"`
   111  	// LastRun indicates the date/time this was last run.
   112  	LastRun *google_protobuf.Timestamp `protobuf:"bytes,6,opt,name=last_run,json=lastRun" json:"last_run,omitempty"`
   113  	// Weight indicates the sort order for execution among similar Hook type
   114  	Weight int32 `protobuf:"varint,7,opt,name=weight" json:"weight,omitempty"`
   115  	// DeletePolicies are the policies that indicate when to delete the hook
   116  	DeletePolicies []Hook_DeletePolicy `protobuf:"varint,8,rep,packed,name=delete_policies,json=deletePolicies,enum=hapi.release.Hook_DeletePolicy" json:"delete_policies,omitempty"`
   117  }
   118  
   119  func (m *Hook) Reset()                    { *m = Hook{} }
   120  func (m *Hook) String() string            { return proto.CompactTextString(m) }
   121  func (*Hook) ProtoMessage()               {}
   122  func (*Hook) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
   123  
   124  func (m *Hook) GetName() string {
   125  	if m != nil {
   126  		return m.Name
   127  	}
   128  	return ""
   129  }
   130  
   131  func (m *Hook) GetKind() string {
   132  	if m != nil {
   133  		return m.Kind
   134  	}
   135  	return ""
   136  }
   137  
   138  func (m *Hook) GetPath() string {
   139  	if m != nil {
   140  		return m.Path
   141  	}
   142  	return ""
   143  }
   144  
   145  func (m *Hook) GetManifest() string {
   146  	if m != nil {
   147  		return m.Manifest
   148  	}
   149  	return ""
   150  }
   151  
   152  func (m *Hook) GetEvents() []Hook_Event {
   153  	if m != nil {
   154  		return m.Events
   155  	}
   156  	return nil
   157  }
   158  
   159  func (m *Hook) GetLastRun() *google_protobuf.Timestamp {
   160  	if m != nil {
   161  		return m.LastRun
   162  	}
   163  	return nil
   164  }
   165  
   166  func (m *Hook) GetWeight() int32 {
   167  	if m != nil {
   168  		return m.Weight
   169  	}
   170  	return 0
   171  }
   172  
   173  func (m *Hook) GetDeletePolicies() []Hook_DeletePolicy {
   174  	if m != nil {
   175  		return m.DeletePolicies
   176  	}
   177  	return nil
   178  }
   179  
   180  func init() {
   181  	proto.RegisterType((*Hook)(nil), "hapi.release.Hook")
   182  	proto.RegisterEnum("hapi.release.Hook_Event", Hook_Event_name, Hook_Event_value)
   183  	proto.RegisterEnum("hapi.release.Hook_DeletePolicy", Hook_DeletePolicy_name, Hook_DeletePolicy_value)
   184  }
   185  
   186  func init() { proto.RegisterFile("hapi/release/hook.proto", fileDescriptor0) }
   187  
   188  var fileDescriptor0 = []byte{
   189  	// 428 bytes of a gzipped FileDescriptorProto
   190  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xd1, 0x6e, 0xda, 0x30,
   191  	0x14, 0x86, 0x9b, 0x12, 0x12, 0x38, 0x50, 0xea, 0x59, 0xd3, 0x66, 0x71, 0x53, 0xc4, 0x15, 0xbb,
   192  	0x09, 0x53, 0xa7, 0x3d, 0x40, 0x4a, 0xce, 0xd6, 0xaa, 0x11, 0x20, 0x27, 0x68, 0xd2, 0x6e, 0xa2,
   193  	0x74, 0xb8, 0x10, 0x11, 0xe2, 0x88, 0x98, 0x4d, 0x7b, 0xa6, 0xbd, 0xce, 0x1e, 0x68, 0xb2, 0x09,
   194  	0x59, 0xa5, 0xed, 0xee, 0x9c, 0xef, 0x7c, 0x76, 0xce, 0x1f, 0xc3, 0xdb, 0x6d, 0x5a, 0x66, 0xd3,
   195  	0x83, 0xc8, 0x45, 0x5a, 0x89, 0xe9, 0x56, 0xca, 0x9d, 0x57, 0x1e, 0xa4, 0x92, 0xb4, 0xaf, 0x07,
   196  	0x5e, 0x3d, 0x18, 0xde, 0x6c, 0xa4, 0xdc, 0xe4, 0x62, 0x6a, 0x66, 0x4f, 0xc7, 0xe7, 0xa9, 0xca,
   197  	0xf6, 0xa2, 0x52, 0xe9, 0xbe, 0x3c, 0xe9, 0xe3, 0x5f, 0x36, 0xd8, 0xf7, 0x52, 0xee, 0x28, 0x05,
   198  	0xbb, 0x48, 0xf7, 0x82, 0x59, 0x23, 0x6b, 0xd2, 0xe5, 0xa6, 0xd6, 0x6c, 0x97, 0x15, 0x6b, 0x76,
   199  	0x79, 0x62, 0xba, 0xd6, 0xac, 0x4c, 0xd5, 0x96, 0xb5, 0x4e, 0x4c, 0xd7, 0x74, 0x08, 0x9d, 0x7d,
   200  	0x5a, 0x64, 0xcf, 0xa2, 0x52, 0xcc, 0x36, 0xbc, 0xe9, 0xe9, 0x7b, 0x70, 0xc4, 0x77, 0x51, 0xa8,
   201  	0x8a, 0xb5, 0x47, 0xad, 0xc9, 0xe0, 0x96, 0x79, 0x2f, 0x17, 0xf4, 0xf4, 0xb7, 0x3d, 0xd4, 0x02,
   202  	0xaf, 0x3d, 0xfa, 0x11, 0x3a, 0x79, 0x5a, 0xa9, 0xe4, 0x70, 0x2c, 0x98, 0x33, 0xb2, 0x26, 0xbd,
   203  	0xdb, 0xa1, 0x77, 0x8a, 0xe1, 0x9d, 0x63, 0x78, 0xf1, 0x39, 0x06, 0x77, 0xb5, 0xcb, 0x8f, 0x05,
   204  	0x7d, 0x03, 0xce, 0x0f, 0x91, 0x6d, 0xb6, 0x8a, 0xb9, 0x23, 0x6b, 0xd2, 0xe6, 0x75, 0x47, 0xef,
   205  	0xe1, 0x7a, 0x2d, 0x72, 0xa1, 0x44, 0x52, 0xca, 0x3c, 0xfb, 0x96, 0x89, 0x8a, 0x75, 0xcc, 0x26,
   206  	0x37, 0xff, 0xd9, 0x24, 0x30, 0xe6, 0x52, 0x8b, 0x3f, 0xf9, 0x60, 0xfd, 0xb7, 0xcb, 0x44, 0x35,
   207  	0xfe, 0x6d, 0x41, 0xdb, 0xac, 0x4a, 0x7b, 0xe0, 0xae, 0xe6, 0x8f, 0xf3, 0xc5, 0x97, 0x39, 0xb9,
   208  	0xa0, 0xd7, 0xd0, 0x5b, 0x72, 0x4c, 0x1e, 0xe6, 0x51, 0xec, 0x87, 0x21, 0xb1, 0x28, 0x81, 0xfe,
   209  	0x72, 0x11, 0xc5, 0x0d, 0xb9, 0xa4, 0x03, 0x00, 0xad, 0x04, 0x18, 0x62, 0x8c, 0xa4, 0x65, 0x8e,
   210  	0x68, 0xa3, 0x06, 0xf6, 0xf9, 0x8e, 0xd5, 0xf2, 0x33, 0xf7, 0x03, 0x24, 0xed, 0xe6, 0x8e, 0x33,
   211  	0x71, 0x0c, 0xe1, 0x98, 0xf0, 0x45, 0x18, 0xde, 0xf9, 0xb3, 0x47, 0xe2, 0xd2, 0x57, 0x70, 0x65,
   212  	0x9c, 0x06, 0x75, 0x28, 0x83, 0xd7, 0x1c, 0x43, 0xf4, 0x23, 0x4c, 0x62, 0x8c, 0xe2, 0x24, 0x5a,
   213  	0xcd, 0x66, 0x18, 0x45, 0xa4, 0xfb, 0xcf, 0xe4, 0x93, 0xff, 0x10, 0xae, 0x38, 0x12, 0x18, 0xbf,
   214  	0x83, 0xfe, 0xcb, 0xd8, 0xf4, 0x0a, 0xba, 0xe6, 0x18, 0x06, 0x18, 0x90, 0x0b, 0x0a, 0xe0, 0x68,
   215  	0x17, 0x03, 0x62, 0xdd, 0x75, 0xbf, 0xba, 0xf5, 0xef, 0x7a, 0x72, 0xcc, 0x5b, 0x7c, 0xf8, 0x13,
   216  	0x00, 0x00, 0xff, 0xff, 0xb9, 0x8a, 0xe1, 0xaf, 0x89, 0x02, 0x00, 0x00,
   217  }