app

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 5 Imported by: 12

Documentation

Overview

Package app is a generated protocol buffer package.

It is generated from these files:

pkg/protobuf/app/app.proto

It has these top-level messages:

CreateRequest
ListResponse
LogsRequest
LogsResponse
InfoRequest
InfoResponse
SetEnvRequest
UnsetEnvRequest
Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAppServer

func RegisterAppServer(s *grpc.Server, srv AppServer)

Types

type AppClient

type AppClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*Empty, error)
	Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (App_LogsClient, error)
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
	SetEnv(ctx context.Context, in *SetEnvRequest, opts ...grpc.CallOption) (*Empty, error)
	UnsetEnv(ctx context.Context, in *UnsetEnvRequest, opts ...grpc.CallOption) (*Empty, error)
	List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListResponse, error)
}

func NewAppClient

func NewAppClient(cc *grpc.ClientConn) AppClient

type App_LogsClient

type App_LogsClient interface {
	Recv() (*LogsResponse, error)
	grpc.ClientStream
}

type App_LogsServer

type App_LogsServer interface {
	Send(*LogsResponse) error
	grpc.ServerStream
}

type CreateRequest

type CreateRequest struct {
	Name        string                   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Team        string                   `protobuf:"bytes,2,opt,name=team" json:"team,omitempty"`
	ProcessType string                   `protobuf:"bytes,3,opt,name=process_type,json=processType" json:"process_type,omitempty"`
	Limits      *CreateRequest_Limits    `protobuf:"bytes,4,opt,name=limits" json:"limits,omitempty"`
	AutoScale   *CreateRequest_AutoScale `protobuf:"bytes,5,opt,name=auto_scale,json=autoScale" json:"auto_scale,omitempty"`
}

func (*CreateRequest) Descriptor

func (*CreateRequest) Descriptor() ([]byte, []int)

func (*CreateRequest) GetAutoScale

func (m *CreateRequest) GetAutoScale() *CreateRequest_AutoScale

func (*CreateRequest) GetLimits

func (m *CreateRequest) GetLimits() *CreateRequest_Limits

func (*CreateRequest) GetName

func (m *CreateRequest) GetName() string

func (*CreateRequest) GetProcessType

func (m *CreateRequest) GetProcessType() string

func (*CreateRequest) GetTeam

func (m *CreateRequest) GetTeam() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset

func (m *CreateRequest) Reset()

func (*CreateRequest) String

func (m *CreateRequest) String() string

type CreateRequest_AutoScale

type CreateRequest_AutoScale struct {
	CpuTargetUtilization int32 `protobuf:"varint,1,opt,name=cpu_target_utilization,json=cpuTargetUtilization" json:"cpu_target_utilization,omitempty"`
	Max                  int32 `protobuf:"varint,2,opt,name=max" json:"max,omitempty"`
	Min                  int32 `protobuf:"varint,3,opt,name=min" json:"min,omitempty"`
}

func (*CreateRequest_AutoScale) Descriptor

func (*CreateRequest_AutoScale) Descriptor() ([]byte, []int)

func (*CreateRequest_AutoScale) GetCpuTargetUtilization

func (m *CreateRequest_AutoScale) GetCpuTargetUtilization() int32

func (*CreateRequest_AutoScale) GetMax

func (m *CreateRequest_AutoScale) GetMax() int32

func (*CreateRequest_AutoScale) GetMin

func (m *CreateRequest_AutoScale) GetMin() int32

func (*CreateRequest_AutoScale) ProtoMessage

func (*CreateRequest_AutoScale) ProtoMessage()

func (*CreateRequest_AutoScale) Reset

func (m *CreateRequest_AutoScale) Reset()

func (*CreateRequest_AutoScale) String

func (m *CreateRequest_AutoScale) String() string

type CreateRequest_Limits

type CreateRequest_Limits struct {
	Default        []*CreateRequest_Limits_LimitRangeQuantity `protobuf:"bytes,1,rep,name=default" json:"default,omitempty"`
	DefaultRequest []*CreateRequest_Limits_LimitRangeQuantity `protobuf:"bytes,2,rep,name=default_request,json=defaultRequest" json:"default_request,omitempty"`
}

func (*CreateRequest_Limits) Descriptor

func (*CreateRequest_Limits) Descriptor() ([]byte, []int)

func (*CreateRequest_Limits) GetDefault

func (*CreateRequest_Limits) GetDefaultRequest

func (*CreateRequest_Limits) ProtoMessage

func (*CreateRequest_Limits) ProtoMessage()

func (*CreateRequest_Limits) Reset

func (m *CreateRequest_Limits) Reset()

func (*CreateRequest_Limits) String

func (m *CreateRequest_Limits) String() string

type CreateRequest_Limits_LimitRangeQuantity

type CreateRequest_Limits_LimitRangeQuantity struct {
	Quantity string `protobuf:"bytes,1,opt,name=quantity" json:"quantity,omitempty"`
	Resource string `protobuf:"bytes,2,opt,name=resource" json:"resource,omitempty"`
}

func (*CreateRequest_Limits_LimitRangeQuantity) Descriptor

func (*CreateRequest_Limits_LimitRangeQuantity) Descriptor() ([]byte, []int)

func (*CreateRequest_Limits_LimitRangeQuantity) GetQuantity

func (*CreateRequest_Limits_LimitRangeQuantity) GetResource

func (*CreateRequest_Limits_LimitRangeQuantity) ProtoMessage

func (*CreateRequest_Limits_LimitRangeQuantity) Reset

func (*CreateRequest_Limits_LimitRangeQuantity) String

type Empty

type Empty struct {
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type InfoRequest

type InfoRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*InfoRequest) Descriptor

func (*InfoRequest) Descriptor() ([]byte, []int)

func (*InfoRequest) GetName

func (m *InfoRequest) GetName() string

func (*InfoRequest) ProtoMessage

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) Reset

func (m *InfoRequest) Reset()

func (*InfoRequest) String

func (m *InfoRequest) String() string

type InfoResponse

type InfoResponse struct {
	Team      string                  `protobuf:"bytes,1,opt,name=team" json:"team,omitempty"`
	Addresses []*InfoResponse_Address `protobuf:"bytes,2,rep,name=addresses" json:"addresses,omitempty"`
	EnvVars   []*InfoResponse_EnvVar  `protobuf:"bytes,3,rep,name=env_vars,json=envVars" json:"env_vars,omitempty"`
	Status    *InfoResponse_Status    `protobuf:"bytes,4,opt,name=status" json:"status,omitempty"`
	AutoScale *InfoResponse_AutoScale `protobuf:"bytes,5,opt,name=auto_scale,json=autoScale" json:"auto_scale,omitempty"`
	Limits    *InfoResponse_Limits    `protobuf:"bytes,6,opt,name=limits" json:"limits,omitempty"`
}

func (*InfoResponse) Descriptor

func (*InfoResponse) Descriptor() ([]byte, []int)

func (*InfoResponse) GetAddresses

func (m *InfoResponse) GetAddresses() []*InfoResponse_Address

func (*InfoResponse) GetAutoScale

func (m *InfoResponse) GetAutoScale() *InfoResponse_AutoScale

func (*InfoResponse) GetEnvVars

func (m *InfoResponse) GetEnvVars() []*InfoResponse_EnvVar

func (*InfoResponse) GetLimits

func (m *InfoResponse) GetLimits() *InfoResponse_Limits

func (*InfoResponse) GetStatus

func (m *InfoResponse) GetStatus() *InfoResponse_Status

func (*InfoResponse) GetTeam

func (m *InfoResponse) GetTeam() string

func (*InfoResponse) ProtoMessage

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) Reset

func (m *InfoResponse) Reset()

func (*InfoResponse) String

func (m *InfoResponse) String() string

type InfoResponse_Address

type InfoResponse_Address struct {
	Hostname string `protobuf:"bytes,1,opt,name=hostname" json:"hostname,omitempty"`
}

func (*InfoResponse_Address) Descriptor

func (*InfoResponse_Address) Descriptor() ([]byte, []int)

func (*InfoResponse_Address) GetHostname

func (m *InfoResponse_Address) GetHostname() string

func (*InfoResponse_Address) ProtoMessage

func (*InfoResponse_Address) ProtoMessage()

func (*InfoResponse_Address) Reset

func (m *InfoResponse_Address) Reset()

func (*InfoResponse_Address) String

func (m *InfoResponse_Address) String() string

type InfoResponse_AutoScale

type InfoResponse_AutoScale struct {
	CpuTargetUtilization int32 `protobuf:"varint,1,opt,name=cpu_target_utilization,json=cpuTargetUtilization" json:"cpu_target_utilization,omitempty"`
	Max                  int32 `protobuf:"varint,2,opt,name=max" json:"max,omitempty"`
	Min                  int32 `protobuf:"varint,3,opt,name=min" json:"min,omitempty"`
}

func (*InfoResponse_AutoScale) Descriptor

func (*InfoResponse_AutoScale) Descriptor() ([]byte, []int)

func (*InfoResponse_AutoScale) GetCpuTargetUtilization

func (m *InfoResponse_AutoScale) GetCpuTargetUtilization() int32

func (*InfoResponse_AutoScale) GetMax

func (m *InfoResponse_AutoScale) GetMax() int32

func (*InfoResponse_AutoScale) GetMin

func (m *InfoResponse_AutoScale) GetMin() int32

func (*InfoResponse_AutoScale) ProtoMessage

func (*InfoResponse_AutoScale) ProtoMessage()

func (*InfoResponse_AutoScale) Reset

func (m *InfoResponse_AutoScale) Reset()

func (*InfoResponse_AutoScale) String

func (m *InfoResponse_AutoScale) String() string

type InfoResponse_EnvVar

type InfoResponse_EnvVar struct {
	Key   string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

func (*InfoResponse_EnvVar) Descriptor

func (*InfoResponse_EnvVar) Descriptor() ([]byte, []int)

func (*InfoResponse_EnvVar) GetKey

func (m *InfoResponse_EnvVar) GetKey() string

func (*InfoResponse_EnvVar) GetValue

func (m *InfoResponse_EnvVar) GetValue() string

func (*InfoResponse_EnvVar) ProtoMessage

func (*InfoResponse_EnvVar) ProtoMessage()

func (*InfoResponse_EnvVar) Reset

func (m *InfoResponse_EnvVar) Reset()

func (*InfoResponse_EnvVar) String

func (m *InfoResponse_EnvVar) String() string

type InfoResponse_Limits

type InfoResponse_Limits struct {
	Default        []*InfoResponse_Limits_LimitRangeQuantity `protobuf:"bytes,1,rep,name=default" json:"default,omitempty"`
	DefaultRequest []*InfoResponse_Limits_LimitRangeQuantity `protobuf:"bytes,2,rep,name=default_request,json=defaultRequest" json:"default_request,omitempty"`
}

func (*InfoResponse_Limits) Descriptor

func (*InfoResponse_Limits) Descriptor() ([]byte, []int)

func (*InfoResponse_Limits) GetDefault

func (*InfoResponse_Limits) GetDefaultRequest

func (*InfoResponse_Limits) ProtoMessage

func (*InfoResponse_Limits) ProtoMessage()

func (*InfoResponse_Limits) Reset

func (m *InfoResponse_Limits) Reset()

func (*InfoResponse_Limits) String

func (m *InfoResponse_Limits) String() string

type InfoResponse_Limits_LimitRangeQuantity

type InfoResponse_Limits_LimitRangeQuantity struct {
	Quantity string `protobuf:"bytes,1,opt,name=quantity" json:"quantity,omitempty"`
	Resource string `protobuf:"bytes,2,opt,name=resource" json:"resource,omitempty"`
}

func (*InfoResponse_Limits_LimitRangeQuantity) Descriptor

func (*InfoResponse_Limits_LimitRangeQuantity) Descriptor() ([]byte, []int)

func (*InfoResponse_Limits_LimitRangeQuantity) GetQuantity

func (*InfoResponse_Limits_LimitRangeQuantity) GetResource

func (*InfoResponse_Limits_LimitRangeQuantity) ProtoMessage

func (*InfoResponse_Limits_LimitRangeQuantity) Reset

func (*InfoResponse_Limits_LimitRangeQuantity) String

type InfoResponse_Status

type InfoResponse_Status struct {
	Cpu  int32                      `protobuf:"varint,1,opt,name=cpu" json:"cpu,omitempty"`
	Pods []*InfoResponse_Status_Pod `protobuf:"bytes,3,rep,name=pods" json:"pods,omitempty"`
}

func (*InfoResponse_Status) Descriptor

func (*InfoResponse_Status) Descriptor() ([]byte, []int)

func (*InfoResponse_Status) GetCpu

func (m *InfoResponse_Status) GetCpu() int32

func (*InfoResponse_Status) GetPods

func (*InfoResponse_Status) ProtoMessage

func (*InfoResponse_Status) ProtoMessage()

func (*InfoResponse_Status) Reset

func (m *InfoResponse_Status) Reset()

func (*InfoResponse_Status) String

func (m *InfoResponse_Status) String() string

type InfoResponse_Status_Pod

type InfoResponse_Status_Pod struct {
	Name  string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	State string `protobuf:"bytes,2,opt,name=state" json:"state,omitempty"`
}

func (*InfoResponse_Status_Pod) Descriptor

func (*InfoResponse_Status_Pod) Descriptor() ([]byte, []int)

func (*InfoResponse_Status_Pod) GetName

func (m *InfoResponse_Status_Pod) GetName() string

func (*InfoResponse_Status_Pod) GetState

func (m *InfoResponse_Status_Pod) GetState() string

func (*InfoResponse_Status_Pod) ProtoMessage

func (*InfoResponse_Status_Pod) ProtoMessage()

func (*InfoResponse_Status_Pod) Reset

func (m *InfoResponse_Status_Pod) Reset()

func (*InfoResponse_Status_Pod) String

func (m *InfoResponse_Status_Pod) String() string

type ListResponse

type ListResponse struct {
	Apps []*ListResponse_App `protobuf:"bytes,1,rep,name=apps" json:"apps,omitempty"`
}

func (*ListResponse) Descriptor

func (*ListResponse) Descriptor() ([]byte, []int)

func (*ListResponse) GetApps

func (m *ListResponse) GetApps() []*ListResponse_App

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) Reset

func (m *ListResponse) Reset()

func (*ListResponse) String

func (m *ListResponse) String() string

type ListResponse_App

type ListResponse_App struct {
	Team string   `protobuf:"bytes,1,opt,name=team" json:"team,omitempty"`
	Name string   `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Urls []string `protobuf:"bytes,3,rep,name=urls" json:"urls,omitempty"`
}

func (*ListResponse_App) Descriptor

func (*ListResponse_App) Descriptor() ([]byte, []int)

func (*ListResponse_App) GetName

func (m *ListResponse_App) GetName() string

func (*ListResponse_App) GetTeam

func (m *ListResponse_App) GetTeam() string

func (*ListResponse_App) GetUrls

func (m *ListResponse_App) GetUrls() []string

func (*ListResponse_App) ProtoMessage

func (*ListResponse_App) ProtoMessage()

func (*ListResponse_App) Reset

func (m *ListResponse_App) Reset()

func (*ListResponse_App) String

func (m *ListResponse_App) String() string

type LogsRequest

type LogsRequest struct {
	Name   string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Lines  int64  `protobuf:"varint,2,opt,name=lines" json:"lines,omitempty"`
	Follow bool   `protobuf:"varint,3,opt,name=follow" json:"follow,omitempty"`
}

func (*LogsRequest) Descriptor

func (*LogsRequest) Descriptor() ([]byte, []int)

func (*LogsRequest) GetFollow

func (m *LogsRequest) GetFollow() bool

func (*LogsRequest) GetLines

func (m *LogsRequest) GetLines() int64

func (*LogsRequest) GetName

func (m *LogsRequest) GetName() string

func (*LogsRequest) ProtoMessage

func (*LogsRequest) ProtoMessage()

func (*LogsRequest) Reset

func (m *LogsRequest) Reset()

func (*LogsRequest) String

func (m *LogsRequest) String() string

type LogsResponse

type LogsResponse struct {
	Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
}

func (*LogsResponse) Descriptor

func (*LogsResponse) Descriptor() ([]byte, []int)

func (*LogsResponse) GetText

func (m *LogsResponse) GetText() string

func (*LogsResponse) ProtoMessage

func (*LogsResponse) ProtoMessage()

func (*LogsResponse) Reset

func (m *LogsResponse) Reset()

func (*LogsResponse) String

func (m *LogsResponse) String() string

type SetEnvRequest

type SetEnvRequest struct {
	Name    string                  `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	EnvVars []*SetEnvRequest_EnvVar `protobuf:"bytes,2,rep,name=env_vars,json=envVars" json:"env_vars,omitempty"`
}

func (*SetEnvRequest) Descriptor

func (*SetEnvRequest) Descriptor() ([]byte, []int)

func (*SetEnvRequest) GetEnvVars

func (m *SetEnvRequest) GetEnvVars() []*SetEnvRequest_EnvVar

func (*SetEnvRequest) GetName

func (m *SetEnvRequest) GetName() string

func (*SetEnvRequest) ProtoMessage

func (*SetEnvRequest) ProtoMessage()

func (*SetEnvRequest) Reset

func (m *SetEnvRequest) Reset()

func (*SetEnvRequest) String

func (m *SetEnvRequest) String() string

type SetEnvRequest_EnvVar

type SetEnvRequest_EnvVar struct {
	Key   string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

func (*SetEnvRequest_EnvVar) Descriptor

func (*SetEnvRequest_EnvVar) Descriptor() ([]byte, []int)

func (*SetEnvRequest_EnvVar) GetKey

func (m *SetEnvRequest_EnvVar) GetKey() string

func (*SetEnvRequest_EnvVar) GetValue

func (m *SetEnvRequest_EnvVar) GetValue() string

func (*SetEnvRequest_EnvVar) ProtoMessage

func (*SetEnvRequest_EnvVar) ProtoMessage()

func (*SetEnvRequest_EnvVar) Reset

func (m *SetEnvRequest_EnvVar) Reset()

func (*SetEnvRequest_EnvVar) String

func (m *SetEnvRequest_EnvVar) String() string

type UnsetEnvRequest

type UnsetEnvRequest struct {
	Name    string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	EnvVars []string `protobuf:"bytes,2,rep,name=env_vars,json=envVars" json:"env_vars,omitempty"`
}

func (*UnsetEnvRequest) Descriptor

func (*UnsetEnvRequest) Descriptor() ([]byte, []int)

func (*UnsetEnvRequest) GetEnvVars

func (m *UnsetEnvRequest) GetEnvVars() []string

func (*UnsetEnvRequest) GetName

func (m *UnsetEnvRequest) GetName() string

func (*UnsetEnvRequest) ProtoMessage

func (*UnsetEnvRequest) ProtoMessage()

func (*UnsetEnvRequest) Reset

func (m *UnsetEnvRequest) Reset()

func (*UnsetEnvRequest) String

func (m *UnsetEnvRequest) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL