github.com/blixtra/rkt@v0.8.1-0.20160204105720-ab0d1add1a43/api/v1alpha/api.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: api.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package v1alpha is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	api.proto
    10  
    11  It has these top-level messages:
    12  	ImageFormat
    13  	Image
    14  	Network
    15  	App
    16  	Pod
    17  	KeyValue
    18  	PodFilter
    19  	ImageFilter
    20  	Info
    21  	Event
    22  	EventFilter
    23  	GetInfoRequest
    24  	GetInfoResponse
    25  	ListPodsRequest
    26  	ListPodsResponse
    27  	InspectPodRequest
    28  	InspectPodResponse
    29  	ListImagesRequest
    30  	ListImagesResponse
    31  	InspectImageRequest
    32  	InspectImageResponse
    33  	ListenEventsRequest
    34  	ListenEventsResponse
    35  	GetLogsRequest
    36  	GetLogsResponse
    37  */
    38  package v1alpha
    39  
    40  import proto "github.com/golang/protobuf/proto"
    41  import fmt "fmt"
    42  import math "math"
    43  
    44  import (
    45  	context "golang.org/x/net/context"
    46  	grpc "google.golang.org/grpc"
    47  )
    48  
    49  // Reference imports to suppress errors if they are not otherwise used.
    50  var _ = proto.Marshal
    51  var _ = fmt.Errorf
    52  var _ = math.Inf
    53  
    54  // This is a compile-time assertion to ensure that this generated file
    55  // is compatible with the proto package it is being compiled against.
    56  const _ = proto.ProtoPackageIsVersion1
    57  
    58  // ImageType defines the supported image type.
    59  type ImageType int32
    60  
    61  const (
    62  	ImageType_IMAGE_TYPE_UNDEFINED ImageType = 0
    63  	ImageType_IMAGE_TYPE_APPC      ImageType = 1
    64  	ImageType_IMAGE_TYPE_DOCKER    ImageType = 2
    65  	ImageType_IMAGE_TYPE_OCI       ImageType = 3
    66  )
    67  
    68  var ImageType_name = map[int32]string{
    69  	0: "IMAGE_TYPE_UNDEFINED",
    70  	1: "IMAGE_TYPE_APPC",
    71  	2: "IMAGE_TYPE_DOCKER",
    72  	3: "IMAGE_TYPE_OCI",
    73  }
    74  var ImageType_value = map[string]int32{
    75  	"IMAGE_TYPE_UNDEFINED": 0,
    76  	"IMAGE_TYPE_APPC":      1,
    77  	"IMAGE_TYPE_DOCKER":    2,
    78  	"IMAGE_TYPE_OCI":       3,
    79  }
    80  
    81  func (x ImageType) String() string {
    82  	return proto.EnumName(ImageType_name, int32(x))
    83  }
    84  func (ImageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    85  
    86  // AppState defines the possible states of the app.
    87  type AppState int32
    88  
    89  const (
    90  	AppState_APP_STATE_UNDEFINED AppState = 0
    91  	AppState_APP_STATE_RUNNING   AppState = 1
    92  	AppState_APP_STATE_EXITED    AppState = 2
    93  )
    94  
    95  var AppState_name = map[int32]string{
    96  	0: "APP_STATE_UNDEFINED",
    97  	1: "APP_STATE_RUNNING",
    98  	2: "APP_STATE_EXITED",
    99  }
   100  var AppState_value = map[string]int32{
   101  	"APP_STATE_UNDEFINED": 0,
   102  	"APP_STATE_RUNNING":   1,
   103  	"APP_STATE_EXITED":    2,
   104  }
   105  
   106  func (x AppState) String() string {
   107  	return proto.EnumName(AppState_name, int32(x))
   108  }
   109  func (AppState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
   110  
   111  // PodState defines the possible states of the pod.
   112  // See https://github.com/coreos/rkt/blob/master/Documentation/devel/pod-lifecycle.md for a detailed
   113  // explanation of each state.
   114  type PodState int32
   115  
   116  const (
   117  	PodState_POD_STATE_UNDEFINED PodState = 0
   118  	// States before the pod is running.
   119  	PodState_POD_STATE_EMBRYO    PodState = 1
   120  	PodState_POD_STATE_PREPARING PodState = 2
   121  	PodState_POD_STATE_PREPARED  PodState = 3
   122  	// State that indicates the pod is running.
   123  	PodState_POD_STATE_RUNNING PodState = 4
   124  	// States that indicates the pod is exited, and will never run.
   125  	PodState_POD_STATE_ABORTED_PREPARE PodState = 5
   126  	PodState_POD_STATE_EXITED          PodState = 6
   127  	PodState_POD_STATE_DELETING        PodState = 7
   128  	PodState_POD_STATE_GARBAGE         PodState = 8
   129  )
   130  
   131  var PodState_name = map[int32]string{
   132  	0: "POD_STATE_UNDEFINED",
   133  	1: "POD_STATE_EMBRYO",
   134  	2: "POD_STATE_PREPARING",
   135  	3: "POD_STATE_PREPARED",
   136  	4: "POD_STATE_RUNNING",
   137  	5: "POD_STATE_ABORTED_PREPARE",
   138  	6: "POD_STATE_EXITED",
   139  	7: "POD_STATE_DELETING",
   140  	8: "POD_STATE_GARBAGE",
   141  }
   142  var PodState_value = map[string]int32{
   143  	"POD_STATE_UNDEFINED":       0,
   144  	"POD_STATE_EMBRYO":          1,
   145  	"POD_STATE_PREPARING":       2,
   146  	"POD_STATE_PREPARED":        3,
   147  	"POD_STATE_RUNNING":         4,
   148  	"POD_STATE_ABORTED_PREPARE": 5,
   149  	"POD_STATE_EXITED":          6,
   150  	"POD_STATE_DELETING":        7,
   151  	"POD_STATE_GARBAGE":         8,
   152  }
   153  
   154  func (x PodState) String() string {
   155  	return proto.EnumName(PodState_name, int32(x))
   156  }
   157  func (PodState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
   158  
   159  // EventType defines the type of the events that will be received via ListenEvents().
   160  type EventType int32
   161  
   162  const (
   163  	EventType_EVENT_TYPE_UNDEFINED EventType = 0
   164  	// Pod events.
   165  	EventType_EVENT_TYPE_POD_PREPARED          EventType = 1
   166  	EventType_EVENT_TYPE_POD_PREPARE_ABORTED   EventType = 2
   167  	EventType_EVENT_TYPE_POD_STARTED           EventType = 3
   168  	EventType_EVENT_TYPE_POD_EXITED            EventType = 4
   169  	EventType_EVENT_TYPE_POD_GARBAGE_COLLECTED EventType = 5
   170  	// App events.
   171  	EventType_EVENT_TYPE_APP_STARTED EventType = 6
   172  	EventType_EVENT_TYPE_APP_EXITED  EventType = 7
   173  	// Image events.
   174  	EventType_EVENT_TYPE_IMAGE_IMPORTED EventType = 8
   175  	EventType_EVENT_TYPE_IMAGE_REMOVED  EventType = 9
   176  )
   177  
   178  var EventType_name = map[int32]string{
   179  	0: "EVENT_TYPE_UNDEFINED",
   180  	1: "EVENT_TYPE_POD_PREPARED",
   181  	2: "EVENT_TYPE_POD_PREPARE_ABORTED",
   182  	3: "EVENT_TYPE_POD_STARTED",
   183  	4: "EVENT_TYPE_POD_EXITED",
   184  	5: "EVENT_TYPE_POD_GARBAGE_COLLECTED",
   185  	6: "EVENT_TYPE_APP_STARTED",
   186  	7: "EVENT_TYPE_APP_EXITED",
   187  	8: "EVENT_TYPE_IMAGE_IMPORTED",
   188  	9: "EVENT_TYPE_IMAGE_REMOVED",
   189  }
   190  var EventType_value = map[string]int32{
   191  	"EVENT_TYPE_UNDEFINED":             0,
   192  	"EVENT_TYPE_POD_PREPARED":          1,
   193  	"EVENT_TYPE_POD_PREPARE_ABORTED":   2,
   194  	"EVENT_TYPE_POD_STARTED":           3,
   195  	"EVENT_TYPE_POD_EXITED":            4,
   196  	"EVENT_TYPE_POD_GARBAGE_COLLECTED": 5,
   197  	"EVENT_TYPE_APP_STARTED":           6,
   198  	"EVENT_TYPE_APP_EXITED":            7,
   199  	"EVENT_TYPE_IMAGE_IMPORTED":        8,
   200  	"EVENT_TYPE_IMAGE_REMOVED":         9,
   201  }
   202  
   203  func (x EventType) String() string {
   204  	return proto.EnumName(EventType_name, int32(x))
   205  }
   206  func (EventType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
   207  
   208  // ImageFormat defines the format of the image.
   209  type ImageFormat struct {
   210  	// Type of the image, required.
   211  	Type ImageType `protobuf:"varint,1,opt,name=type,enum=v1alpha.ImageType" json:"type,omitempty"`
   212  	// Version of the image format, required.
   213  	Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
   214  }
   215  
   216  func (m *ImageFormat) Reset()                    { *m = ImageFormat{} }
   217  func (m *ImageFormat) String() string            { return proto.CompactTextString(m) }
   218  func (*ImageFormat) ProtoMessage()               {}
   219  func (*ImageFormat) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
   220  
   221  // Image describes the image's information.
   222  type Image struct {
   223  	// Base format of the image, required. This indicates the original format
   224  	// for the image as nowadays all the image formats will be transformed to
   225  	// ACI.
   226  	BaseFormat *ImageFormat `protobuf:"bytes,1,opt,name=base_format" json:"base_format,omitempty"`
   227  	// ID of the image, a string that can be used to uniquely identify the image,
   228  	// e.g. sha512 hash of the ACIs, required.
   229  	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
   230  	// Name of the image in the image manifest, e.g. 'coreos.com/etcd', optional.
   231  	Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
   232  	// Version of the image, e.g. 'latest', '2.0.10', optional.
   233  	Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"`
   234  	// Timestamp of when the image is imported, it is the seconds since epoch, optional.
   235  	ImportTimestamp int64 `protobuf:"varint,5,opt,name=import_timestamp" json:"import_timestamp,omitempty"`
   236  	// JSON-encoded byte array that represents the image manifest, optional.
   237  	Manifest []byte `protobuf:"bytes,6,opt,name=manifest,proto3" json:"manifest,omitempty"`
   238  	// Size is the size in bytes of this image in the store.
   239  	Size int64 `protobuf:"varint,7,opt,name=size" json:"size,omitempty"`
   240  	// Annotations on this image.
   241  	Annotations []*KeyValue `protobuf:"bytes,8,rep,name=annotations" json:"annotations,omitempty"`
   242  }
   243  
   244  func (m *Image) Reset()                    { *m = Image{} }
   245  func (m *Image) String() string            { return proto.CompactTextString(m) }
   246  func (*Image) ProtoMessage()               {}
   247  func (*Image) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
   248  
   249  func (m *Image) GetBaseFormat() *ImageFormat {
   250  	if m != nil {
   251  		return m.BaseFormat
   252  	}
   253  	return nil
   254  }
   255  
   256  func (m *Image) GetAnnotations() []*KeyValue {
   257  	if m != nil {
   258  		return m.Annotations
   259  	}
   260  	return nil
   261  }
   262  
   263  // Network describes the network information of a pod.
   264  type Network struct {
   265  	// Name of the network that a pod belongs to, required.
   266  	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
   267  	// Pod's IPv4 address within the network, optional if IPv6 address is given.
   268  	Ipv4 string `protobuf:"bytes,2,opt,name=ipv4" json:"ipv4,omitempty"`
   269  	// Pod's IPv6 address within the network, optional if IPv4 address is given.
   270  	Ipv6 string `protobuf:"bytes,3,opt,name=ipv6" json:"ipv6,omitempty"`
   271  }
   272  
   273  func (m *Network) Reset()                    { *m = Network{} }
   274  func (m *Network) String() string            { return proto.CompactTextString(m) }
   275  func (*Network) ProtoMessage()               {}
   276  func (*Network) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
   277  
   278  // App describes the information of an app that's running in a pod.
   279  type App struct {
   280  	// Name of the app, required.
   281  	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
   282  	// Image used by the app, required. However, this may only contain the image id
   283  	// if it is returned by ListPods().
   284  	Image *Image `protobuf:"bytes,2,opt,name=image" json:"image,omitempty"`
   285  	// State of the app. optional, non-empty only if it's returned by InspectPod().
   286  	State AppState `protobuf:"varint,3,opt,name=state,enum=v1alpha.AppState" json:"state,omitempty"`
   287  	// Exit code of the app. optional, only valid if it's returned by InspectPod() and
   288  	// the app has already exited.
   289  	ExitCode int32 `protobuf:"zigzag32,4,opt,name=exit_code" json:"exit_code,omitempty"`
   290  	// Annotations for this app.
   291  	Annotations []*KeyValue `protobuf:"bytes,5,rep,name=annotations" json:"annotations,omitempty"`
   292  }
   293  
   294  func (m *App) Reset()                    { *m = App{} }
   295  func (m *App) String() string            { return proto.CompactTextString(m) }
   296  func (*App) ProtoMessage()               {}
   297  func (*App) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
   298  
   299  func (m *App) GetImage() *Image {
   300  	if m != nil {
   301  		return m.Image
   302  	}
   303  	return nil
   304  }
   305  
   306  func (m *App) GetAnnotations() []*KeyValue {
   307  	if m != nil {
   308  		return m.Annotations
   309  	}
   310  	return nil
   311  }
   312  
   313  // Pod describes a pod's information.
   314  // If a pod is in Embryo, Preparing, AbortedPrepare state,
   315  // only id and state will be returned.
   316  //
   317  // If a pod is in other states, the pod manifest and
   318  // apps will be returned when 'detailed' is true in the request.
   319  //
   320  // A valid pid of the stage1 process of the pod will be returned
   321  // if the pod is Running has run once.
   322  //
   323  // Networks are only returned when a pod is in Running.
   324  type Pod struct {
   325  	// ID of the pod, in the form of a UUID.
   326  	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
   327  	// PID of the stage1 process of the pod.
   328  	Pid int32 `protobuf:"zigzag32,2,opt,name=pid" json:"pid,omitempty"`
   329  	// State of the pod.
   330  	State PodState `protobuf:"varint,3,opt,name=state,enum=v1alpha.PodState" json:"state,omitempty"`
   331  	// List of apps in the pod.
   332  	Apps []*App `protobuf:"bytes,4,rep,name=apps" json:"apps,omitempty"`
   333  	// Network information of the pod.
   334  	// Note that a pod can be in multiple networks.
   335  	Networks []*Network `protobuf:"bytes,5,rep,name=networks" json:"networks,omitempty"`
   336  	// JSON-encoded byte array that represents the pod manifest of the pod.
   337  	Manifest []byte `protobuf:"bytes,6,opt,name=manifest,proto3" json:"manifest,omitempty"`
   338  	// Annotations on this pod.
   339  	Annotations []*KeyValue `protobuf:"bytes,7,rep,name=annotations" json:"annotations,omitempty"`
   340  }
   341  
   342  func (m *Pod) Reset()                    { *m = Pod{} }
   343  func (m *Pod) String() string            { return proto.CompactTextString(m) }
   344  func (*Pod) ProtoMessage()               {}
   345  func (*Pod) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
   346  
   347  func (m *Pod) GetApps() []*App {
   348  	if m != nil {
   349  		return m.Apps
   350  	}
   351  	return nil
   352  }
   353  
   354  func (m *Pod) GetNetworks() []*Network {
   355  	if m != nil {
   356  		return m.Networks
   357  	}
   358  	return nil
   359  }
   360  
   361  func (m *Pod) GetAnnotations() []*KeyValue {
   362  	if m != nil {
   363  		return m.Annotations
   364  	}
   365  	return nil
   366  }
   367  
   368  type KeyValue struct {
   369  	// Key part of the key-value pair.
   370  	Key string `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
   371  	// Value part of the key-value pair.
   372  	Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
   373  }
   374  
   375  func (m *KeyValue) Reset()                    { *m = KeyValue{} }
   376  func (m *KeyValue) String() string            { return proto.CompactTextString(m) }
   377  func (*KeyValue) ProtoMessage()               {}
   378  func (*KeyValue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
   379  
   380  // PodFilter defines the condition that the returned pods need to satisfy in ListPods().
   381  // The conditions are combined by 'AND', and different filters are combined by 'OR'.
   382  type PodFilter struct {
   383  	// If not empty, the pods that have any of the ids will be returned.
   384  	Ids []string `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"`
   385  	// If not empty, the pods that have any of the states will be returned.
   386  	States []PodState `protobuf:"varint,2,rep,name=states,enum=v1alpha.PodState" json:"states,omitempty"`
   387  	// If not empty, the pods that all of the apps will be returned.
   388  	AppNames []string `protobuf:"bytes,3,rep,name=app_names" json:"app_names,omitempty"`
   389  	// If not empty, the pods that have all of the images(in the apps) will be returned
   390  	ImageIds []string `protobuf:"bytes,4,rep,name=image_ids" json:"image_ids,omitempty"`
   391  	// If not empty, the pods that are in all of the networks will be returned.
   392  	NetworkNames []string `protobuf:"bytes,5,rep,name=network_names" json:"network_names,omitempty"`
   393  	// If not empty, the pods that have all of the annotations will be returned.
   394  	Annotations []*KeyValue `protobuf:"bytes,6,rep,name=annotations" json:"annotations,omitempty"`
   395  }
   396  
   397  func (m *PodFilter) Reset()                    { *m = PodFilter{} }
   398  func (m *PodFilter) String() string            { return proto.CompactTextString(m) }
   399  func (*PodFilter) ProtoMessage()               {}
   400  func (*PodFilter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
   401  
   402  func (m *PodFilter) GetAnnotations() []*KeyValue {
   403  	if m != nil {
   404  		return m.Annotations
   405  	}
   406  	return nil
   407  }
   408  
   409  // ImageFilter defines the condition that the returned images need to satisfy in ListImages().
   410  // The conditions are combined by 'AND', and different filters are combined by 'OR'.
   411  type ImageFilter struct {
   412  	// If not empty, the images that have any of the ids will be returned.
   413  	Ids []string `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"`
   414  	// if not empty, the images that have any of the prefixes in the name will be returned.
   415  	Prefixes []string `protobuf:"bytes,2,rep,name=prefixes" json:"prefixes,omitempty"`
   416  	// If not empty, the images that have any of the base names will be returned.
   417  	// For example, both 'coreos.com/etcd' and 'k8s.io/etcd' will be returned if 'etcd' is included,
   418  	// however 'k8s.io/etcd-backup' will not be returned.
   419  	BaseNames []string `protobuf:"bytes,3,rep,name=base_names" json:"base_names,omitempty"`
   420  	// If not empty, the images that have any of the keywords in the name will be returned.
   421  	// For example, both 'kubernetes-etcd', 'etcd:latest' will be returned if 'etcd' is included,
   422  	Keywords []string `protobuf:"bytes,4,rep,name=keywords" json:"keywords,omitempty"`
   423  	// If not empty, the images that have all of the labels will be returned.
   424  	Labels []*KeyValue `protobuf:"bytes,5,rep,name=labels" json:"labels,omitempty"`
   425  	// If set, the images that are imported after this timestamp will be returned.
   426  	ImportedAfter int64 `protobuf:"varint,6,opt,name=imported_after" json:"imported_after,omitempty"`
   427  	// If set, the images that are imported before this timestamp will be returned.
   428  	ImportedBefore int64 `protobuf:"varint,7,opt,name=imported_before" json:"imported_before,omitempty"`
   429  	// If not empty, the images that have all of the annotations will be returned.
   430  	Annotations []*KeyValue `protobuf:"bytes,8,rep,name=annotations" json:"annotations,omitempty"`
   431  	// If not empty, the images that have any of the exact full names will be returned.
   432  	FullNames []string `protobuf:"bytes,9,rep,name=full_names" json:"full_names,omitempty"`
   433  }
   434  
   435  func (m *ImageFilter) Reset()                    { *m = ImageFilter{} }
   436  func (m *ImageFilter) String() string            { return proto.CompactTextString(m) }
   437  func (*ImageFilter) ProtoMessage()               {}
   438  func (*ImageFilter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
   439  
   440  func (m *ImageFilter) GetLabels() []*KeyValue {
   441  	if m != nil {
   442  		return m.Labels
   443  	}
   444  	return nil
   445  }
   446  
   447  func (m *ImageFilter) GetAnnotations() []*KeyValue {
   448  	if m != nil {
   449  		return m.Annotations
   450  	}
   451  	return nil
   452  }
   453  
   454  // Info describes the information of rkt on the machine.
   455  type Info struct {
   456  	// Version of rkt, required, in the form of Semantic Versioning 2.0.0 (http://semver.org/).
   457  	RktVersion string `protobuf:"bytes,1,opt,name=rkt_version" json:"rkt_version,omitempty"`
   458  	// Version of appc, required, in the form of Semantic Versioning 2.0.0 (http://semver.org/).
   459  	AppcVersion string `protobuf:"bytes,2,opt,name=appc_version" json:"appc_version,omitempty"`
   460  	// Latest version of the api that's supported by the service, required, in the form of Semantic Versioning 2.0.0 (http://semver.org/).
   461  	ApiVersion string `protobuf:"bytes,3,opt,name=api_version" json:"api_version,omitempty"`
   462  }
   463  
   464  func (m *Info) Reset()                    { *m = Info{} }
   465  func (m *Info) String() string            { return proto.CompactTextString(m) }
   466  func (*Info) ProtoMessage()               {}
   467  func (*Info) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
   468  
   469  // Event describes the events that will be received via ListenEvents().
   470  type Event struct {
   471  	// Type of the event, required.
   472  	Type EventType `protobuf:"varint,1,opt,name=type,enum=v1alpha.EventType" json:"type,omitempty"`
   473  	// ID of the subject that causes the event, required.
   474  	// If the event is a pod or app event, the id is the pod's uuid.
   475  	// If the event is an image event, the id is the image's id.
   476  	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
   477  	// Name of the subject that causes the event, required.
   478  	// If the event is a pod event, the name is the pod's name.
   479  	// If the event is an app event, the name is the app's name.
   480  	// If the event is an image event, the name is the image's name.
   481  	From string `protobuf:"bytes,3,opt,name=from" json:"from,omitempty"`
   482  	// Timestamp of when the event happens, it is the seconds since epoch, required.
   483  	Time int64 `protobuf:"varint,4,opt,name=time" json:"time,omitempty"`
   484  	// Data of the event, in the form of key-value pairs, optional.
   485  	Data []*KeyValue `protobuf:"bytes,5,rep,name=data" json:"data,omitempty"`
   486  }
   487  
   488  func (m *Event) Reset()                    { *m = Event{} }
   489  func (m *Event) String() string            { return proto.CompactTextString(m) }
   490  func (*Event) ProtoMessage()               {}
   491  func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
   492  
   493  func (m *Event) GetData() []*KeyValue {
   494  	if m != nil {
   495  		return m.Data
   496  	}
   497  	return nil
   498  }
   499  
   500  // EventFilter defines the condition that the returned events needs to satisfy in ListImages().
   501  // The condition are combined by 'AND'.
   502  type EventFilter struct {
   503  	// If not empty, then only returns the events that have the listed types.
   504  	Types []EventType `protobuf:"varint,1,rep,name=types,enum=v1alpha.EventType" json:"types,omitempty"`
   505  	// If not empty, then only returns the events whose 'id' is included in the listed ids.
   506  	Ids []string `protobuf:"bytes,2,rep,name=ids" json:"ids,omitempty"`
   507  	// If not empty, then only returns the events whose 'from' is included in the listed names.
   508  	Names []string `protobuf:"bytes,3,rep,name=names" json:"names,omitempty"`
   509  	// If set, then only returns the events after this timestamp.
   510  	// If the server starts after since_time, then only the events happened after the start of the server will be returned.
   511  	// If since_time is a future timestamp, then no events will be returned until that time.
   512  	SinceTime int64 `protobuf:"varint,4,opt,name=since_time" json:"since_time,omitempty"`
   513  	// If set, then only returns the events before this timestamp.
   514  	// If it is a future timestamp, then the event stream will be closed at that moment.
   515  	UntilTime int64 `protobuf:"varint,5,opt,name=until_time" json:"until_time,omitempty"`
   516  }
   517  
   518  func (m *EventFilter) Reset()                    { *m = EventFilter{} }
   519  func (m *EventFilter) String() string            { return proto.CompactTextString(m) }
   520  func (*EventFilter) ProtoMessage()               {}
   521  func (*EventFilter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
   522  
   523  // Request for GetInfo().
   524  type GetInfoRequest struct {
   525  }
   526  
   527  func (m *GetInfoRequest) Reset()                    { *m = GetInfoRequest{} }
   528  func (m *GetInfoRequest) String() string            { return proto.CompactTextString(m) }
   529  func (*GetInfoRequest) ProtoMessage()               {}
   530  func (*GetInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
   531  
   532  // Response for GetInfo().
   533  type GetInfoResponse struct {
   534  	Info *Info `protobuf:"bytes,1,opt,name=info" json:"info,omitempty"`
   535  }
   536  
   537  func (m *GetInfoResponse) Reset()                    { *m = GetInfoResponse{} }
   538  func (m *GetInfoResponse) String() string            { return proto.CompactTextString(m) }
   539  func (*GetInfoResponse) ProtoMessage()               {}
   540  func (*GetInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
   541  
   542  func (m *GetInfoResponse) GetInfo() *Info {
   543  	if m != nil {
   544  		return m.Info
   545  	}
   546  	return nil
   547  }
   548  
   549  // Request for ListPods().
   550  type ListPodsRequest struct {
   551  	Filters []*PodFilter `protobuf:"bytes,1,rep,name=filters" json:"filters,omitempty"`
   552  	Detail  bool         `protobuf:"varint,2,opt,name=detail" json:"detail,omitempty"`
   553  }
   554  
   555  func (m *ListPodsRequest) Reset()                    { *m = ListPodsRequest{} }
   556  func (m *ListPodsRequest) String() string            { return proto.CompactTextString(m) }
   557  func (*ListPodsRequest) ProtoMessage()               {}
   558  func (*ListPodsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
   559  
   560  func (m *ListPodsRequest) GetFilters() []*PodFilter {
   561  	if m != nil {
   562  		return m.Filters
   563  	}
   564  	return nil
   565  }
   566  
   567  // Response for ListPods().
   568  type ListPodsResponse struct {
   569  	Pods []*Pod `protobuf:"bytes,1,rep,name=pods" json:"pods,omitempty"`
   570  }
   571  
   572  func (m *ListPodsResponse) Reset()                    { *m = ListPodsResponse{} }
   573  func (m *ListPodsResponse) String() string            { return proto.CompactTextString(m) }
   574  func (*ListPodsResponse) ProtoMessage()               {}
   575  func (*ListPodsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
   576  
   577  func (m *ListPodsResponse) GetPods() []*Pod {
   578  	if m != nil {
   579  		return m.Pods
   580  	}
   581  	return nil
   582  }
   583  
   584  // Request for InspectPod().
   585  type InspectPodRequest struct {
   586  	// ID of the pod which we are querying status for, required.
   587  	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
   588  }
   589  
   590  func (m *InspectPodRequest) Reset()                    { *m = InspectPodRequest{} }
   591  func (m *InspectPodRequest) String() string            { return proto.CompactTextString(m) }
   592  func (*InspectPodRequest) ProtoMessage()               {}
   593  func (*InspectPodRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
   594  
   595  // Response for InspectPod().
   596  type InspectPodResponse struct {
   597  	Pod *Pod `protobuf:"bytes,1,opt,name=pod" json:"pod,omitempty"`
   598  }
   599  
   600  func (m *InspectPodResponse) Reset()                    { *m = InspectPodResponse{} }
   601  func (m *InspectPodResponse) String() string            { return proto.CompactTextString(m) }
   602  func (*InspectPodResponse) ProtoMessage()               {}
   603  func (*InspectPodResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
   604  
   605  func (m *InspectPodResponse) GetPod() *Pod {
   606  	if m != nil {
   607  		return m.Pod
   608  	}
   609  	return nil
   610  }
   611  
   612  // Request for ListImages().
   613  type ListImagesRequest struct {
   614  	Filters []*ImageFilter `protobuf:"bytes,1,rep,name=filters" json:"filters,omitempty"`
   615  	Detail  bool           `protobuf:"varint,2,opt,name=detail" json:"detail,omitempty"`
   616  }
   617  
   618  func (m *ListImagesRequest) Reset()                    { *m = ListImagesRequest{} }
   619  func (m *ListImagesRequest) String() string            { return proto.CompactTextString(m) }
   620  func (*ListImagesRequest) ProtoMessage()               {}
   621  func (*ListImagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
   622  
   623  func (m *ListImagesRequest) GetFilters() []*ImageFilter {
   624  	if m != nil {
   625  		return m.Filters
   626  	}
   627  	return nil
   628  }
   629  
   630  // Response for ListImages().
   631  type ListImagesResponse struct {
   632  	Images []*Image `protobuf:"bytes,1,rep,name=images" json:"images,omitempty"`
   633  }
   634  
   635  func (m *ListImagesResponse) Reset()                    { *m = ListImagesResponse{} }
   636  func (m *ListImagesResponse) String() string            { return proto.CompactTextString(m) }
   637  func (*ListImagesResponse) ProtoMessage()               {}
   638  func (*ListImagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
   639  
   640  func (m *ListImagesResponse) GetImages() []*Image {
   641  	if m != nil {
   642  		return m.Images
   643  	}
   644  	return nil
   645  }
   646  
   647  // Request for InspectImage().
   648  type InspectImageRequest struct {
   649  	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
   650  }
   651  
   652  func (m *InspectImageRequest) Reset()                    { *m = InspectImageRequest{} }
   653  func (m *InspectImageRequest) String() string            { return proto.CompactTextString(m) }
   654  func (*InspectImageRequest) ProtoMessage()               {}
   655  func (*InspectImageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
   656  
   657  // Response for InspectImage().
   658  type InspectImageResponse struct {
   659  	Image *Image `protobuf:"bytes,1,opt,name=image" json:"image,omitempty"`
   660  }
   661  
   662  func (m *InspectImageResponse) Reset()                    { *m = InspectImageResponse{} }
   663  func (m *InspectImageResponse) String() string            { return proto.CompactTextString(m) }
   664  func (*InspectImageResponse) ProtoMessage()               {}
   665  func (*InspectImageResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
   666  
   667  func (m *InspectImageResponse) GetImage() *Image {
   668  	if m != nil {
   669  		return m.Image
   670  	}
   671  	return nil
   672  }
   673  
   674  // Request for ListenEvents().
   675  type ListenEventsRequest struct {
   676  	Filter *EventFilter `protobuf:"bytes,1,opt,name=filter" json:"filter,omitempty"`
   677  }
   678  
   679  func (m *ListenEventsRequest) Reset()                    { *m = ListenEventsRequest{} }
   680  func (m *ListenEventsRequest) String() string            { return proto.CompactTextString(m) }
   681  func (*ListenEventsRequest) ProtoMessage()               {}
   682  func (*ListenEventsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
   683  
   684  func (m *ListenEventsRequest) GetFilter() *EventFilter {
   685  	if m != nil {
   686  		return m.Filter
   687  	}
   688  	return nil
   689  }
   690  
   691  // Response for ListenEvents().
   692  type ListenEventsResponse struct {
   693  	// Aggregate multiple events to reduce round trips, optional as the response can contain no events.
   694  	Events []*Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"`
   695  }
   696  
   697  func (m *ListenEventsResponse) Reset()                    { *m = ListenEventsResponse{} }
   698  func (m *ListenEventsResponse) String() string            { return proto.CompactTextString(m) }
   699  func (*ListenEventsResponse) ProtoMessage()               {}
   700  func (*ListenEventsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
   701  
   702  func (m *ListenEventsResponse) GetEvents() []*Event {
   703  	if m != nil {
   704  		return m.Events
   705  	}
   706  	return nil
   707  }
   708  
   709  // Request for GetLogs().
   710  type GetLogsRequest struct {
   711  	// ID of the pod which we will get logs from, required.
   712  	PodId string `protobuf:"bytes,1,opt,name=pod_id" json:"pod_id,omitempty"`
   713  	// Name of the app within the pod which we will get logs
   714  	// from, optional. If not set, then the logs of all the
   715  	// apps within the pod will be returned.
   716  	AppName string `protobuf:"bytes,2,opt,name=app_name" json:"app_name,omitempty"`
   717  	// Number of most recent lines to return, optional.
   718  	Lines int32 `protobuf:"varint,3,opt,name=lines" json:"lines,omitempty"`
   719  	// If true, then a response stream will not be closed,
   720  	// and new log response will be sent via the stream, default is false.
   721  	Follow bool `protobuf:"varint,4,opt,name=follow" json:"follow,omitempty"`
   722  	// If set, then only the logs after the timestamp will
   723  	// be returned, optional.
   724  	SinceTime int64 `protobuf:"varint,5,opt,name=since_time" json:"since_time,omitempty"`
   725  	// If set, then only the logs before the timestamp will
   726  	// be returned, optional.
   727  	UntilTime int64 `protobuf:"varint,6,opt,name=until_time" json:"until_time,omitempty"`
   728  }
   729  
   730  func (m *GetLogsRequest) Reset()                    { *m = GetLogsRequest{} }
   731  func (m *GetLogsRequest) String() string            { return proto.CompactTextString(m) }
   732  func (*GetLogsRequest) ProtoMessage()               {}
   733  func (*GetLogsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
   734  
   735  // Response for GetLogs().
   736  type GetLogsResponse struct {
   737  	// List of the log lines that returned, optional as the response can contain no logs.
   738  	Lines []string `protobuf:"bytes,1,rep,name=lines" json:"lines,omitempty"`
   739  }
   740  
   741  func (m *GetLogsResponse) Reset()                    { *m = GetLogsResponse{} }
   742  func (m *GetLogsResponse) String() string            { return proto.CompactTextString(m) }
   743  func (*GetLogsResponse) ProtoMessage()               {}
   744  func (*GetLogsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
   745  
   746  func init() {
   747  	proto.RegisterType((*ImageFormat)(nil), "v1alpha.ImageFormat")
   748  	proto.RegisterType((*Image)(nil), "v1alpha.Image")
   749  	proto.RegisterType((*Network)(nil), "v1alpha.Network")
   750  	proto.RegisterType((*App)(nil), "v1alpha.App")
   751  	proto.RegisterType((*Pod)(nil), "v1alpha.Pod")
   752  	proto.RegisterType((*KeyValue)(nil), "v1alpha.KeyValue")
   753  	proto.RegisterType((*PodFilter)(nil), "v1alpha.PodFilter")
   754  	proto.RegisterType((*ImageFilter)(nil), "v1alpha.ImageFilter")
   755  	proto.RegisterType((*Info)(nil), "v1alpha.Info")
   756  	proto.RegisterType((*Event)(nil), "v1alpha.Event")
   757  	proto.RegisterType((*EventFilter)(nil), "v1alpha.EventFilter")
   758  	proto.RegisterType((*GetInfoRequest)(nil), "v1alpha.GetInfoRequest")
   759  	proto.RegisterType((*GetInfoResponse)(nil), "v1alpha.GetInfoResponse")
   760  	proto.RegisterType((*ListPodsRequest)(nil), "v1alpha.ListPodsRequest")
   761  	proto.RegisterType((*ListPodsResponse)(nil), "v1alpha.ListPodsResponse")
   762  	proto.RegisterType((*InspectPodRequest)(nil), "v1alpha.InspectPodRequest")
   763  	proto.RegisterType((*InspectPodResponse)(nil), "v1alpha.InspectPodResponse")
   764  	proto.RegisterType((*ListImagesRequest)(nil), "v1alpha.ListImagesRequest")
   765  	proto.RegisterType((*ListImagesResponse)(nil), "v1alpha.ListImagesResponse")
   766  	proto.RegisterType((*InspectImageRequest)(nil), "v1alpha.InspectImageRequest")
   767  	proto.RegisterType((*InspectImageResponse)(nil), "v1alpha.InspectImageResponse")
   768  	proto.RegisterType((*ListenEventsRequest)(nil), "v1alpha.ListenEventsRequest")
   769  	proto.RegisterType((*ListenEventsResponse)(nil), "v1alpha.ListenEventsResponse")
   770  	proto.RegisterType((*GetLogsRequest)(nil), "v1alpha.GetLogsRequest")
   771  	proto.RegisterType((*GetLogsResponse)(nil), "v1alpha.GetLogsResponse")
   772  	proto.RegisterEnum("v1alpha.ImageType", ImageType_name, ImageType_value)
   773  	proto.RegisterEnum("v1alpha.AppState", AppState_name, AppState_value)
   774  	proto.RegisterEnum("v1alpha.PodState", PodState_name, PodState_value)
   775  	proto.RegisterEnum("v1alpha.EventType", EventType_name, EventType_value)
   776  }
   777  
   778  // Reference imports to suppress errors if they are not otherwise used.
   779  var _ context.Context
   780  var _ grpc.ClientConn
   781  
   782  // Client API for PublicAPI service
   783  
   784  type PublicAPIClient interface {
   785  	// GetInfo gets the rkt's information on the machine.
   786  	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
   787  	// ListPods lists rkt pods on the machine.
   788  	ListPods(ctx context.Context, in *ListPodsRequest, opts ...grpc.CallOption) (*ListPodsResponse, error)
   789  	// InspectPod gets detailed pod information of the specified pod.
   790  	InspectPod(ctx context.Context, in *InspectPodRequest, opts ...grpc.CallOption) (*InspectPodResponse, error)
   791  	// ListImages lists the images on the machine.
   792  	ListImages(ctx context.Context, in *ListImagesRequest, opts ...grpc.CallOption) (*ListImagesResponse, error)
   793  	// InspectImage gets the detailed image information of the specified image.
   794  	InspectImage(ctx context.Context, in *InspectImageRequest, opts ...grpc.CallOption) (*InspectImageResponse, error)
   795  	// ListenEvents listens for the events, it will return a response stream
   796  	// that will contain event objects.
   797  	ListenEvents(ctx context.Context, in *ListenEventsRequest, opts ...grpc.CallOption) (PublicAPI_ListenEventsClient, error)
   798  	// GetLogs gets the logs for a pod, if the app is also specified, then only the logs
   799  	// of the app will be returned.
   800  	//
   801  	// If 'follow' in the 'GetLogsRequest' is set to 'true', then the response stream
   802  	// will not be closed after the first response, the future logs will be sent via
   803  	// the stream.
   804  	GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (PublicAPI_GetLogsClient, error)
   805  }
   806  
   807  type publicAPIClient struct {
   808  	cc *grpc.ClientConn
   809  }
   810  
   811  func NewPublicAPIClient(cc *grpc.ClientConn) PublicAPIClient {
   812  	return &publicAPIClient{cc}
   813  }
   814  
   815  func (c *publicAPIClient) GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error) {
   816  	out := new(GetInfoResponse)
   817  	err := grpc.Invoke(ctx, "/v1alpha.PublicAPI/GetInfo", in, out, c.cc, opts...)
   818  	if err != nil {
   819  		return nil, err
   820  	}
   821  	return out, nil
   822  }
   823  
   824  func (c *publicAPIClient) ListPods(ctx context.Context, in *ListPodsRequest, opts ...grpc.CallOption) (*ListPodsResponse, error) {
   825  	out := new(ListPodsResponse)
   826  	err := grpc.Invoke(ctx, "/v1alpha.PublicAPI/ListPods", in, out, c.cc, opts...)
   827  	if err != nil {
   828  		return nil, err
   829  	}
   830  	return out, nil
   831  }
   832  
   833  func (c *publicAPIClient) InspectPod(ctx context.Context, in *InspectPodRequest, opts ...grpc.CallOption) (*InspectPodResponse, error) {
   834  	out := new(InspectPodResponse)
   835  	err := grpc.Invoke(ctx, "/v1alpha.PublicAPI/InspectPod", in, out, c.cc, opts...)
   836  	if err != nil {
   837  		return nil, err
   838  	}
   839  	return out, nil
   840  }
   841  
   842  func (c *publicAPIClient) ListImages(ctx context.Context, in *ListImagesRequest, opts ...grpc.CallOption) (*ListImagesResponse, error) {
   843  	out := new(ListImagesResponse)
   844  	err := grpc.Invoke(ctx, "/v1alpha.PublicAPI/ListImages", in, out, c.cc, opts...)
   845  	if err != nil {
   846  		return nil, err
   847  	}
   848  	return out, nil
   849  }
   850  
   851  func (c *publicAPIClient) InspectImage(ctx context.Context, in *InspectImageRequest, opts ...grpc.CallOption) (*InspectImageResponse, error) {
   852  	out := new(InspectImageResponse)
   853  	err := grpc.Invoke(ctx, "/v1alpha.PublicAPI/InspectImage", in, out, c.cc, opts...)
   854  	if err != nil {
   855  		return nil, err
   856  	}
   857  	return out, nil
   858  }
   859  
   860  func (c *publicAPIClient) ListenEvents(ctx context.Context, in *ListenEventsRequest, opts ...grpc.CallOption) (PublicAPI_ListenEventsClient, error) {
   861  	stream, err := grpc.NewClientStream(ctx, &_PublicAPI_serviceDesc.Streams[0], c.cc, "/v1alpha.PublicAPI/ListenEvents", opts...)
   862  	if err != nil {
   863  		return nil, err
   864  	}
   865  	x := &publicAPIListenEventsClient{stream}
   866  	if err := x.ClientStream.SendMsg(in); err != nil {
   867  		return nil, err
   868  	}
   869  	if err := x.ClientStream.CloseSend(); err != nil {
   870  		return nil, err
   871  	}
   872  	return x, nil
   873  }
   874  
   875  type PublicAPI_ListenEventsClient interface {
   876  	Recv() (*ListenEventsResponse, error)
   877  	grpc.ClientStream
   878  }
   879  
   880  type publicAPIListenEventsClient struct {
   881  	grpc.ClientStream
   882  }
   883  
   884  func (x *publicAPIListenEventsClient) Recv() (*ListenEventsResponse, error) {
   885  	m := new(ListenEventsResponse)
   886  	if err := x.ClientStream.RecvMsg(m); err != nil {
   887  		return nil, err
   888  	}
   889  	return m, nil
   890  }
   891  
   892  func (c *publicAPIClient) GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (PublicAPI_GetLogsClient, error) {
   893  	stream, err := grpc.NewClientStream(ctx, &_PublicAPI_serviceDesc.Streams[1], c.cc, "/v1alpha.PublicAPI/GetLogs", opts...)
   894  	if err != nil {
   895  		return nil, err
   896  	}
   897  	x := &publicAPIGetLogsClient{stream}
   898  	if err := x.ClientStream.SendMsg(in); err != nil {
   899  		return nil, err
   900  	}
   901  	if err := x.ClientStream.CloseSend(); err != nil {
   902  		return nil, err
   903  	}
   904  	return x, nil
   905  }
   906  
   907  type PublicAPI_GetLogsClient interface {
   908  	Recv() (*GetLogsResponse, error)
   909  	grpc.ClientStream
   910  }
   911  
   912  type publicAPIGetLogsClient struct {
   913  	grpc.ClientStream
   914  }
   915  
   916  func (x *publicAPIGetLogsClient) Recv() (*GetLogsResponse, error) {
   917  	m := new(GetLogsResponse)
   918  	if err := x.ClientStream.RecvMsg(m); err != nil {
   919  		return nil, err
   920  	}
   921  	return m, nil
   922  }
   923  
   924  // Server API for PublicAPI service
   925  
   926  type PublicAPIServer interface {
   927  	// GetInfo gets the rkt's information on the machine.
   928  	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
   929  	// ListPods lists rkt pods on the machine.
   930  	ListPods(context.Context, *ListPodsRequest) (*ListPodsResponse, error)
   931  	// InspectPod gets detailed pod information of the specified pod.
   932  	InspectPod(context.Context, *InspectPodRequest) (*InspectPodResponse, error)
   933  	// ListImages lists the images on the machine.
   934  	ListImages(context.Context, *ListImagesRequest) (*ListImagesResponse, error)
   935  	// InspectImage gets the detailed image information of the specified image.
   936  	InspectImage(context.Context, *InspectImageRequest) (*InspectImageResponse, error)
   937  	// ListenEvents listens for the events, it will return a response stream
   938  	// that will contain event objects.
   939  	ListenEvents(*ListenEventsRequest, PublicAPI_ListenEventsServer) error
   940  	// GetLogs gets the logs for a pod, if the app is also specified, then only the logs
   941  	// of the app will be returned.
   942  	//
   943  	// If 'follow' in the 'GetLogsRequest' is set to 'true', then the response stream
   944  	// will not be closed after the first response, the future logs will be sent via
   945  	// the stream.
   946  	GetLogs(*GetLogsRequest, PublicAPI_GetLogsServer) error
   947  }
   948  
   949  func RegisterPublicAPIServer(s *grpc.Server, srv PublicAPIServer) {
   950  	s.RegisterService(&_PublicAPI_serviceDesc, srv)
   951  }
   952  
   953  func _PublicAPI_GetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
   954  	in := new(GetInfoRequest)
   955  	if err := dec(in); err != nil {
   956  		return nil, err
   957  	}
   958  	out, err := srv.(PublicAPIServer).GetInfo(ctx, in)
   959  	if err != nil {
   960  		return nil, err
   961  	}
   962  	return out, nil
   963  }
   964  
   965  func _PublicAPI_ListPods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
   966  	in := new(ListPodsRequest)
   967  	if err := dec(in); err != nil {
   968  		return nil, err
   969  	}
   970  	out, err := srv.(PublicAPIServer).ListPods(ctx, in)
   971  	if err != nil {
   972  		return nil, err
   973  	}
   974  	return out, nil
   975  }
   976  
   977  func _PublicAPI_InspectPod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
   978  	in := new(InspectPodRequest)
   979  	if err := dec(in); err != nil {
   980  		return nil, err
   981  	}
   982  	out, err := srv.(PublicAPIServer).InspectPod(ctx, in)
   983  	if err != nil {
   984  		return nil, err
   985  	}
   986  	return out, nil
   987  }
   988  
   989  func _PublicAPI_ListImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
   990  	in := new(ListImagesRequest)
   991  	if err := dec(in); err != nil {
   992  		return nil, err
   993  	}
   994  	out, err := srv.(PublicAPIServer).ListImages(ctx, in)
   995  	if err != nil {
   996  		return nil, err
   997  	}
   998  	return out, nil
   999  }
  1000  
  1001  func _PublicAPI_InspectImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
  1002  	in := new(InspectImageRequest)
  1003  	if err := dec(in); err != nil {
  1004  		return nil, err
  1005  	}
  1006  	out, err := srv.(PublicAPIServer).InspectImage(ctx, in)
  1007  	if err != nil {
  1008  		return nil, err
  1009  	}
  1010  	return out, nil
  1011  }
  1012  
  1013  func _PublicAPI_ListenEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
  1014  	m := new(ListenEventsRequest)
  1015  	if err := stream.RecvMsg(m); err != nil {
  1016  		return err
  1017  	}
  1018  	return srv.(PublicAPIServer).ListenEvents(m, &publicAPIListenEventsServer{stream})
  1019  }
  1020  
  1021  type PublicAPI_ListenEventsServer interface {
  1022  	Send(*ListenEventsResponse) error
  1023  	grpc.ServerStream
  1024  }
  1025  
  1026  type publicAPIListenEventsServer struct {
  1027  	grpc.ServerStream
  1028  }
  1029  
  1030  func (x *publicAPIListenEventsServer) Send(m *ListenEventsResponse) error {
  1031  	return x.ServerStream.SendMsg(m)
  1032  }
  1033  
  1034  func _PublicAPI_GetLogs_Handler(srv interface{}, stream grpc.ServerStream) error {
  1035  	m := new(GetLogsRequest)
  1036  	if err := stream.RecvMsg(m); err != nil {
  1037  		return err
  1038  	}
  1039  	return srv.(PublicAPIServer).GetLogs(m, &publicAPIGetLogsServer{stream})
  1040  }
  1041  
  1042  type PublicAPI_GetLogsServer interface {
  1043  	Send(*GetLogsResponse) error
  1044  	grpc.ServerStream
  1045  }
  1046  
  1047  type publicAPIGetLogsServer struct {
  1048  	grpc.ServerStream
  1049  }
  1050  
  1051  func (x *publicAPIGetLogsServer) Send(m *GetLogsResponse) error {
  1052  	return x.ServerStream.SendMsg(m)
  1053  }
  1054  
  1055  var _PublicAPI_serviceDesc = grpc.ServiceDesc{
  1056  	ServiceName: "v1alpha.PublicAPI",
  1057  	HandlerType: (*PublicAPIServer)(nil),
  1058  	Methods: []grpc.MethodDesc{
  1059  		{
  1060  			MethodName: "GetInfo",
  1061  			Handler:    _PublicAPI_GetInfo_Handler,
  1062  		},
  1063  		{
  1064  			MethodName: "ListPods",
  1065  			Handler:    _PublicAPI_ListPods_Handler,
  1066  		},
  1067  		{
  1068  			MethodName: "InspectPod",
  1069  			Handler:    _PublicAPI_InspectPod_Handler,
  1070  		},
  1071  		{
  1072  			MethodName: "ListImages",
  1073  			Handler:    _PublicAPI_ListImages_Handler,
  1074  		},
  1075  		{
  1076  			MethodName: "InspectImage",
  1077  			Handler:    _PublicAPI_InspectImage_Handler,
  1078  		},
  1079  	},
  1080  	Streams: []grpc.StreamDesc{
  1081  		{
  1082  			StreamName:    "ListenEvents",
  1083  			Handler:       _PublicAPI_ListenEvents_Handler,
  1084  			ServerStreams: true,
  1085  		},
  1086  		{
  1087  			StreamName:    "GetLogs",
  1088  			Handler:       _PublicAPI_GetLogs_Handler,
  1089  			ServerStreams: true,
  1090  		},
  1091  	},
  1092  }
  1093  
  1094  var fileDescriptor0 = []byte{
  1095  	// 1318 bytes of a gzipped FileDescriptorProto
  1096  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x57, 0x4d, 0x72, 0xdb, 0x46,
  1097  	0x13, 0x35, 0x08, 0x82, 0x3f, 0x4d, 0x9a, 0x02, 0x47, 0xb2, 0x45, 0xd3, 0x7f, 0x32, 0xbe, 0x2f,
  1098  	0x2e, 0x47, 0x0b, 0x25, 0x91, 0x1d, 0x6f, 0x52, 0x95, 0x32, 0x25, 0x41, 0x2a, 0xc6, 0x12, 0xc9,
  1099  	0xa2, 0x69, 0x55, 0xbc, 0x42, 0x41, 0xe2, 0xd0, 0x41, 0x89, 0x04, 0x10, 0x02, 0x92, 0xad, 0x2c,
  1100  	0x73, 0x81, 0x5c, 0x21, 0xb7, 0x48, 0x55, 0x36, 0xb9, 0x41, 0x6e, 0x91, 0x7b, 0xa4, 0x67, 0x30,
  1101  	0x00, 0x06, 0x20, 0xb8, 0xc8, 0x8e, 0xe8, 0xee, 0x79, 0xfd, 0xba, 0x7b, 0xfa, 0x01, 0x84, 0xba,
  1102  	0xed, 0x3b, 0x7b, 0xfe, 0xd2, 0x0b, 0x3d, 0x52, 0xbd, 0xf9, 0xc6, 0x9e, 0xfb, 0x3f, 0xd9, 0xc6,
  1103  	0x1b, 0x68, 0xf4, 0x17, 0xf6, 0x47, 0x7a, 0xec, 0x2d, 0x17, 0x76, 0x48, 0x76, 0xa0, 0x1c, 0xde,
  1104  	0xfa, 0xb4, 0xa3, 0xec, 0x28, 0x2f, 0x5a, 0xfb, 0x64, 0x4f, 0x84, 0xed, 0xf1, 0x98, 0x09, 0x7a,
  1105  	0xc8, 0x06, 0x54, 0x6f, 0xe8, 0x32, 0x70, 0x3c, 0xb7, 0x53, 0xc2, 0xa0, 0xba, 0xf1, 0x97, 0x02,
  1106  	0x1a, 0x77, 0x93, 0x2f, 0xa1, 0x71, 0x61, 0x07, 0xd4, 0x9a, 0x71, 0x2c, 0x8e, 0xd1, 0xd8, 0xdf,
  1107  	0xca, 0x62, 0x88, 0x3c, 0x00, 0x25, 0x67, 0x1a, 0x01, 0x90, 0x26, 0x94, 0x5d, 0x7b, 0x41, 0x3b,
  1108  	0x2a, 0x7f, 0x92, 0xf0, 0xcb, 0xdc, 0xd0, 0x01, 0xdd, 0x59, 0xf8, 0xde, 0x32, 0xb4, 0x42, 0x67,
  1109  	0x41, 0x83, 0xd0, 0x5e, 0xf8, 0x1d, 0x0d, 0x3d, 0x2a, 0xd1, 0xa1, 0xb6, 0xb0, 0x5d, 0x67, 0x86,
  1110  	0xc6, 0x4e, 0x05, 0x2d, 0x4d, 0x06, 0x15, 0x38, 0xbf, 0xd0, 0x4e, 0x95, 0xfb, 0x9f, 0x43, 0xc3,
  1111  	0x76, 0x5d, 0x2f, 0xb4, 0x43, 0x44, 0x0b, 0x3a, 0xb5, 0x1d, 0x15, 0xf9, 0xb4, 0x13, 0x3e, 0x6f,
  1112  	0xe9, 0xed, 0xb9, 0x3d, 0xbf, 0xa6, 0xc6, 0x4b, 0xa8, 0x0e, 0x68, 0xf8, 0xc9, 0x5b, 0x5e, 0x25,
  1113  	0x5c, 0x94, 0x98, 0x99, 0xe3, 0xdf, 0xbc, 0x4a, 0x79, 0xe2, 0xd3, 0xeb, 0x88, 0xa7, 0xf1, 0x9b,
  1114  	0x02, 0x6a, 0xcf, 0xf7, 0x73, 0x27, 0x1e, 0x83, 0xe6, 0xb0, 0x32, 0xf9, 0x91, 0xc6, 0x7e, 0x2b,
  1115  	0x5b, 0x3c, 0xb6, 0x57, 0xc3, 0x02, 0xc2, 0xa8, 0xd6, 0x96, 0xc4, 0x05, 0x91, 0xde, 0x31, 0x07,
  1116  	0x69, 0x43, 0x9d, 0x7e, 0x76, 0x42, 0xeb, 0xd2, 0x9b, 0x52, 0xde, 0x80, 0x76, 0xbe, 0x0c, 0x6d,
  1117  	0x5d, 0x19, 0x7f, 0x22, 0xa3, 0x91, 0x37, 0x15, 0xbd, 0x8d, 0xf8, 0x34, 0x40, 0xf5, 0x45, 0xa3,
  1118  	0xdb, 0xeb, 0xb3, 0xe3, 0xa9, 0x28, 0x7b, 0x17, 0xca, 0xb6, 0xef, 0x07, 0x98, 0x98, 0xe5, 0x68,
  1119  	0xca, 0xf4, 0x88, 0x01, 0x35, 0x37, 0xea, 0x52, 0xcc, 0x41, 0x4f, 0xfc, 0x71, 0xfb, 0x56, 0x27,
  1120  	0x92, 0x23, 0x5f, 0x5d, 0x47, 0xfe, 0x39, 0xd4, 0xe2, 0xdf, 0x8c, 0x34, 0xfe, 0x16, 0x15, 0xdc,
  1121  	0x05, 0xed, 0x86, 0x59, 0xc5, 0x6d, 0xfb, 0x5d, 0x81, 0x3a, 0xd2, 0x3d, 0x76, 0xe6, 0x21, 0x5d,
  1122  	0xb2, 0x48, 0x67, 0x1a, 0x60, 0xa4, 0x8a, 0x91, 0xcf, 0xa0, 0xc2, 0xcb, 0x0b, 0x30, 0x54, 0x2d,
  1123  	0xae, 0xaf, 0xcd, 0x76, 0xc0, 0xb7, 0xd8, 0xc0, 0x02, 0xec, 0x02, 0x3b, 0x85, 0x26, 0x3e, 0x31,
  1124  	0x8b, 0x01, 0x95, 0xb9, 0xe9, 0x1e, 0xdc, 0x15, 0x95, 0x8a, 0x48, 0x8d, 0x9b, 0x73, 0xa5, 0x54,
  1125  	0xd6, 0x95, 0xf2, 0xb7, 0x12, 0xef, 0x54, 0x01, 0x49, 0xec, 0x90, 0xbf, 0xa4, 0x33, 0xe7, 0xb3,
  1126  	0xa0, 0x59, 0x27, 0x38, 0x2f, 0xbe, 0x35, 0x32, 0x29, 0x8c, 0xba, 0xa2, 0xb7, 0xc8, 0x20, 0xe1,
  1127  	0x84, 0xc5, 0xcd, 0xed, 0x0b, 0x3a, 0x5f, 0x3f, 0x7f, 0x72, 0x1f, 0x5a, 0xd1, 0xa2, 0xd0, 0xa9,
  1128  	0x65, 0xcf, 0x30, 0x33, 0x1f, 0x81, 0x4a, 0xb6, 0x61, 0x23, 0xb1, 0x5f, 0x50, 0x5c, 0xce, 0xff,
  1129  	0xba, 0x1f, 0xc7, 0x50, 0xee, 0xbb, 0x33, 0x8f, 0x6c, 0x42, 0x63, 0x79, 0x15, 0x5a, 0xf1, 0x7a,
  1130  	0x46, 0xf3, 0xd9, 0x82, 0x26, 0xb6, 0xf4, 0xd2, 0xca, 0x88, 0x02, 0x0b, 0x45, 0xb1, 0x49, 0x8c,
  1131  	0xd1, 0xca, 0x2c, 0x41, 0x33, 0x6f, 0xa8, 0xbb, 0x5e, 0x65, 0xb8, 0x97, 0xab, 0x4c, 0x4e, 0x1f,
  1132  	0x66, 0x4b, 0x6f, 0x21, 0xf4, 0x01, 0x9f, 0x98, 0x0e, 0xf0, 0xdd, 0x50, 0xc9, 0x53, 0x28, 0x4f,
  1133  	0xed, 0xd0, 0x5e, 0xbf, 0x14, 0x21, 0x34, 0x38, 0xaa, 0x98, 0xc5, 0x33, 0xd0, 0x58, 0xe6, 0x68,
  1134  	0x1a, 0xc5, 0xa9, 0xc5, 0xb8, 0xa2, 0xe1, 0xe0, 0xed, 0x93, 0xe7, 0x82, 0xbc, 0x02, 0xc7, 0xbd,
  1135  	0xa4, 0x96, 0x44, 0x01, 0x6d, 0xd7, 0x6e, 0xe8, 0xcc, 0x23, 0x1b, 0x57, 0x26, 0x43, 0x87, 0xd6,
  1136  	0x09, 0x0d, 0x59, 0xd3, 0xc6, 0xf4, 0xe7, 0x6b, 0xdc, 0x06, 0x63, 0x0f, 0x36, 0x12, 0x4b, 0xe0,
  1137  	0x63, 0xbb, 0x29, 0x79, 0x88, 0x7a, 0x82, 0xcf, 0x42, 0x27, 0xef, 0xa6, 0x52, 0x81, 0x46, 0xec,
  1138  	0xf9, 0xc6, 0xa9, 0x13, 0x84, 0x78, 0x73, 0x03, 0x01, 0x41, 0xfe, 0x07, 0xd5, 0x19, 0xaf, 0x22,
  1139  	0x62, 0xdf, 0x90, 0xd8, 0xa7, 0x1b, 0xd1, 0x82, 0xca, 0x94, 0x86, 0xb6, 0x33, 0xe7, 0xcd, 0xab,
  1140  	0x61, 0x5e, 0x3d, 0xc5, 0x11, 0x89, 0x71, 0xcb, 0x7d, 0x6f, 0x1a, 0xa3, 0x34, 0x65, 0x14, 0xe3,
  1141  	0x29, 0xb4, 0xfb, 0x6e, 0xe0, 0xd3, 0x4b, 0x76, 0x24, 0xce, 0x2c, 0x29, 0x8a, 0xf1, 0x15, 0x10,
  1142  	0x39, 0x40, 0x40, 0x3e, 0x40, 0x9d, 0xf1, 0xa6, 0xa2, 0x94, 0x2c, 0xe2, 0x0f, 0xd0, 0x66, 0x0c,
  1143  	0xf8, 0x46, 0x24, 0xb5, 0x7c, 0x91, 0xaf, 0x25, 0xff, 0x9a, 0x28, 0xae, 0xe6, 0x15, 0x10, 0x19,
  1144  	0x4b, 0x24, 0x7f, 0x02, 0x15, 0xbe, 0xc2, 0x31, 0x56, 0x4e, 0x75, 0x8d, 0x67, 0xb0, 0x29, 0x28,
  1145  	0xf3, 0xe7, 0xa2, 0xaa, 0xbe, 0x85, 0xad, 0x6c, 0x88, 0x80, 0x4e, 0xf4, 0x5c, 0x29, 0xd2, 0x73,
  1146  	0xe3, 0x3b, 0xd8, 0x64, 0x7c, 0xa8, 0xcb, 0xaf, 0x4f, 0x52, 0xdd, 0xff, 0xa1, 0x12, 0x55, 0xb7,
  1147  	0xf2, 0x0e, 0x94, 0xee, 0xa2, 0xf1, 0x1a, 0xb6, 0xb2, 0x87, 0xd3, 0x72, 0x28, 0xb7, 0xac, 0x94,
  1148  	0xc3, 0x03, 0x8d, 0x5b, 0x7e, 0xb9, 0x4e, 0xbd, 0x8f, 0x49, 0x3e, 0x6c, 0x13, 0x76, 0xdf, 0x4a,
  1149  	0x54, 0x1f, 0xe5, 0x23, 0x96, 0x39, 0xb1, 0x43, 0x78, 0x8f, 0xe7, 0x8e, 0xcb, 0xef, 0xb1, 0xf2,
  1150  	0x42, 0x63, 0x07, 0x66, 0xde, 0x7c, 0xee, 0x7d, 0xe2, 0x77, 0xb8, 0x96, 0xbb, 0xd7, 0x5a, 0xc1,
  1151  	0xbd, 0xe6, 0x52, 0x62, 0xec, 0xf0, 0x5b, 0x1c, 0xa5, 0x16, 0x6c, 0x13, 0x64, 0xae, 0x6f, 0xbb,
  1152  	0x14, 0xea, 0xe9, 0xb7, 0x42, 0x07, 0xbb, 0x7a, 0xd6, 0x3b, 0x31, 0xad, 0xc9, 0x87, 0x91, 0x69,
  1153  	0xbd, 0x1f, 0x1c, 0x99, 0xc7, 0xfd, 0x81, 0x79, 0xa4, 0xdf, 0x41, 0x7d, 0xd8, 0x90, 0x3c, 0xbd,
  1154  	0xd1, 0xe8, 0x50, 0x57, 0x50, 0x77, 0xdb, 0x92, 0xf1, 0x68, 0x78, 0xf8, 0xd6, 0x1c, 0xeb, 0x25,
  1155  	0x24, 0xd2, 0x92, 0xcc, 0xc3, 0xc3, 0xbe, 0xae, 0xee, 0x8e, 0xa0, 0x96, 0xbc, 0x32, 0xb7, 0x61,
  1156  	0x13, 0x01, 0xac, 0x77, 0x93, 0xde, 0x24, 0x9b, 0x04, 0xf1, 0x52, 0xc7, 0xf8, 0xfd, 0x60, 0xd0,
  1157  	0x1f, 0x9c, 0x60, 0x9a, 0x2d, 0xd0, 0x53, 0xb3, 0xf9, 0x63, 0x7f, 0x82, 0xc1, 0xa5, 0xdd, 0x7f,
  1158  	0x14, 0xa8, 0x25, 0xef, 0x09, 0x84, 0x1c, 0x0d, 0x8f, 0x0a, 0x20, 0xf1, 0x6c, 0xea, 0x30, 0xcf,
  1159  	0x0e, 0xc6, 0x1f, 0x86, 0x88, 0x98, 0x09, 0x1f, 0x8d, 0xcd, 0x51, 0x6f, 0xcc, 0x52, 0x95, 0x50,
  1160  	0x92, 0x49, 0xde, 0x81, 0x30, 0x2a, 0x63, 0x96, 0xda, 0x63, 0x66, 0x65, 0xbc, 0x6d, 0x0f, 0x52,
  1161  	0x73, 0xef, 0x60, 0x38, 0x46, 0x6a, 0xf1, 0x31, 0x5d, 0xcb, 0x25, 0x8f, 0x88, 0x57, 0xb2, 0x39,
  1162  	0x8e, 0xcc, 0x53, 0x73, 0xc2, 0xc0, 0xaa, 0xd9, 0x1c, 0x27, 0xbd, 0xf1, 0x01, 0xb6, 0x50, 0xaf,
  1163  	0xed, 0xfe, 0x51, 0x82, 0x7a, 0x2a, 0x76, 0x38, 0x21, 0xf3, 0xdc, 0x1c, 0x4c, 0x56, 0x27, 0xf4,
  1164  	0x10, 0xb6, 0x25, 0x0f, 0x43, 0x4a, 0xf8, 0x2b, 0xf8, 0x2d, 0xf0, 0xa4, 0xd8, 0x19, 0xb3, 0xc6,
  1165  	0xda, 0xbb, 0x70, 0x3f, 0x17, 0x83, 0x54, 0xb8, 0x4f, 0x45, 0xb9, 0xb8, 0x97, 0xf3, 0x89, 0x72,
  1166  	0xca, 0xb8, 0x3b, 0x3b, 0x39, 0x97, 0xe0, 0x6e, 0x1d, 0x0e, 0x4f, 0x4f, 0xcd, 0x43, 0x16, 0xa5,
  1167  	0xe5, 0xc0, 0xc5, 0x38, 0xc7, 0x51, 0x43, 0xb2, 0xe0, 0xcc, 0x27, 0xc0, 0xab, 0xac, 0xc1, 0x92,
  1168  	0x2b, 0xba, 0x55, 0xfd, 0xb3, 0x51, 0x44, 0xb9, 0x46, 0x1e, 0x41, 0x67, 0xc5, 0x3d, 0x36, 0xcf,
  1169  	0x86, 0xe7, 0xe8, 0xad, 0xef, 0xff, 0x5a, 0xc6, 0x4f, 0x8f, 0xeb, 0x8b, 0xb9, 0x73, 0xd9, 0x1b,
  1170  	0xf5, 0xc9, 0xf7, 0x50, 0x15, 0x82, 0x4e, 0xb6, 0x93, 0x05, 0xcd, 0x8a, 0x7e, 0xb7, 0xb3, 0xea,
  1171  	0x88, 0xb6, 0xc6, 0xb8, 0x43, 0x7a, 0x50, 0x8b, 0x85, 0x99, 0xa4, 0x71, 0x39, 0xcd, 0xef, 0x3e,
  1172  	0x28, 0xf0, 0x24, 0x10, 0x27, 0x00, 0xa9, 0x14, 0x93, 0xae, 0xf4, 0x02, 0xc9, 0x09, 0x78, 0xf7,
  1173  	0x61, 0xa1, 0x4f, 0x06, 0x4a, 0x65, 0x55, 0x02, 0x5a, 0xd1, 0x6d, 0x09, 0x68, 0x55, 0x87, 0x11,
  1174  	0xe8, 0x0c, 0x9a, 0xb2, 0x8c, 0x92, 0x47, 0xf9, 0xbc, 0xb2, 0x00, 0x77, 0x1f, 0xaf, 0xf1, 0x26,
  1175  	0x70, 0x43, 0x68, 0xca, 0x0a, 0x29, 0xc1, 0x15, 0xa8, 0xae, 0x04, 0x57, 0x24, 0xab, 0xc6, 0x9d,
  1176  	0xaf, 0x15, 0xf2, 0x86, 0x0f, 0x8d, 0xe9, 0x57, 0x76, 0x68, 0x92, 0x98, 0x66, 0x87, 0x26, 0x4b,
  1177  	0x1d, 0x43, 0xb8, 0xa8, 0xf0, 0xff, 0x4f, 0x2f, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x84, 0xa0,
  1178  	0x2b, 0xe3, 0x4c, 0x0d, 0x00, 0x00,
  1179  }