k8s

package
v0.0.0-...-e9912fb Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDeploymentServer

func RegisterDeploymentServer(s *grpc.Server, srv DeploymentServer)

func RegisterEchoServer

func RegisterEchoServer(s *grpc.Server, srv EchoServer)

func RegisterServiceServer

func RegisterServiceServer(s *grpc.Server, srv ServiceServer)

Types

type DeploymentClient

type DeploymentClient interface {
	GetByLabels(ctx context.Context, in *DeploymentRequest, opts ...grpc.CallOption) (*DeploymentResponse, error)
}

DeploymentClient is the client API for Deployment service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDeploymentClient

func NewDeploymentClient(cc *grpc.ClientConn) DeploymentClient

type DeploymentRequest

type DeploymentRequest struct {
	Cluster              string   `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	Namespace            string   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	ProductId            string   `protobuf:"bytes,3,opt,name=productId,proto3" json:"productId,omitempty"`
	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Labels               string   `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeploymentRequest) Descriptor

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

func (*DeploymentRequest) GetCluster

func (m *DeploymentRequest) GetCluster() string

func (*DeploymentRequest) GetLabels

func (m *DeploymentRequest) GetLabels() string

func (*DeploymentRequest) GetName

func (m *DeploymentRequest) GetName() string

func (*DeploymentRequest) GetNamespace

func (m *DeploymentRequest) GetNamespace() string

func (*DeploymentRequest) GetProductId

func (m *DeploymentRequest) GetProductId() string

func (*DeploymentRequest) ProtoMessage

func (*DeploymentRequest) ProtoMessage()

func (*DeploymentRequest) Reset

func (m *DeploymentRequest) Reset()

func (*DeploymentRequest) String

func (m *DeploymentRequest) String() string

func (*DeploymentRequest) XXX_DiscardUnknown

func (m *DeploymentRequest) XXX_DiscardUnknown()

func (*DeploymentRequest) XXX_Marshal

func (m *DeploymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeploymentRequest) XXX_Merge

func (m *DeploymentRequest) XXX_Merge(src proto.Message)

func (*DeploymentRequest) XXX_Size

func (m *DeploymentRequest) XXX_Size() int

func (*DeploymentRequest) XXX_Unmarshal

func (m *DeploymentRequest) XXX_Unmarshal(b []byte) error

type DeploymentResponse

type DeploymentResponse struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeploymentResponse) Descriptor

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

func (*DeploymentResponse) GetData

func (m *DeploymentResponse) GetData() []byte

func (*DeploymentResponse) ProtoMessage

func (*DeploymentResponse) ProtoMessage()

func (*DeploymentResponse) Reset

func (m *DeploymentResponse) Reset()

func (*DeploymentResponse) String

func (m *DeploymentResponse) String() string

func (*DeploymentResponse) XXX_DiscardUnknown

func (m *DeploymentResponse) XXX_DiscardUnknown()

func (*DeploymentResponse) XXX_Marshal

func (m *DeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeploymentResponse) XXX_Merge

func (m *DeploymentResponse) XXX_Merge(src proto.Message)

func (*DeploymentResponse) XXX_Size

func (m *DeploymentResponse) XXX_Size() int

func (*DeploymentResponse) XXX_Unmarshal

func (m *DeploymentResponse) XXX_Unmarshal(b []byte) error

type DeploymentServer

type DeploymentServer interface {
	GetByLabels(context.Context, *DeploymentRequest) (*DeploymentResponse, error)
}

DeploymentServer is the server API for Deployment service.

type EchoClient

type EchoClient interface {
	// Sends a greeting
	SayHello(ctx context.Context, in *SayRequest, opts ...grpc.CallOption) (*SayReply, error)
}

EchoClient is the client API for Echo service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEchoClient

func NewEchoClient(cc *grpc.ClientConn) EchoClient

type EchoServer

type EchoServer interface {
	// Sends a greeting
	SayHello(context.Context, *SayRequest) (*SayReply, error)
}

EchoServer is the server API for Echo service.

type SayReply

type SayReply struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message containing the greetings

func (*SayReply) Descriptor

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

func (*SayReply) GetMessage

func (m *SayReply) GetMessage() string

func (*SayReply) ProtoMessage

func (*SayReply) ProtoMessage()

func (*SayReply) Reset

func (m *SayReply) Reset()

func (*SayReply) String

func (m *SayReply) String() string

func (*SayReply) XXX_DiscardUnknown

func (m *SayReply) XXX_DiscardUnknown()

func (*SayReply) XXX_Marshal

func (m *SayReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SayReply) XXX_Merge

func (m *SayReply) XXX_Merge(src proto.Message)

func (*SayReply) XXX_Size

func (m *SayReply) XXX_Size() int

func (*SayReply) XXX_Unmarshal

func (m *SayReply) XXX_Unmarshal(b []byte) error

type SayRequest

type SayRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message containing the user's name.

func (*SayRequest) Descriptor

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

func (*SayRequest) GetName

func (m *SayRequest) GetName() string

func (*SayRequest) ProtoMessage

func (*SayRequest) ProtoMessage()

func (*SayRequest) Reset

func (m *SayRequest) Reset()

func (*SayRequest) String

func (m *SayRequest) String() string

func (*SayRequest) XXX_DiscardUnknown

func (m *SayRequest) XXX_DiscardUnknown()

func (*SayRequest) XXX_Marshal

func (m *SayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SayRequest) XXX_Merge

func (m *SayRequest) XXX_Merge(src proto.Message)

func (*SayRequest) XXX_Size

func (m *SayRequest) XXX_Size() int

func (*SayRequest) XXX_Unmarshal

func (m *SayRequest) XXX_Unmarshal(b []byte) error

type ServiceClient

type ServiceClient interface {
	Get(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*ServiceResponse, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc *grpc.ClientConn) ServiceClient

type ServiceRequest

type ServiceRequest struct {
	Cluster              string   `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	Namespace            string   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	ProductId            string   `protobuf:"bytes,3,opt,name=productId,proto3" json:"productId,omitempty"`
	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServiceRequest) Descriptor

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

func (*ServiceRequest) GetCluster

func (m *ServiceRequest) GetCluster() string

func (*ServiceRequest) GetName

func (m *ServiceRequest) GetName() string

func (*ServiceRequest) GetNamespace

func (m *ServiceRequest) GetNamespace() string

func (*ServiceRequest) GetProductId

func (m *ServiceRequest) GetProductId() string

func (*ServiceRequest) ProtoMessage

func (*ServiceRequest) ProtoMessage()

func (*ServiceRequest) Reset

func (m *ServiceRequest) Reset()

func (*ServiceRequest) String

func (m *ServiceRequest) String() string

func (*ServiceRequest) XXX_DiscardUnknown

func (m *ServiceRequest) XXX_DiscardUnknown()

func (*ServiceRequest) XXX_Marshal

func (m *ServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceRequest) XXX_Merge

func (m *ServiceRequest) XXX_Merge(src proto.Message)

func (*ServiceRequest) XXX_Size

func (m *ServiceRequest) XXX_Size() int

func (*ServiceRequest) XXX_Unmarshal

func (m *ServiceRequest) XXX_Unmarshal(b []byte) error

type ServiceResponse

type ServiceResponse struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServiceResponse) Descriptor

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

func (*ServiceResponse) GetData

func (m *ServiceResponse) GetData() []byte

func (*ServiceResponse) ProtoMessage

func (*ServiceResponse) ProtoMessage()

func (*ServiceResponse) Reset

func (m *ServiceResponse) Reset()

func (*ServiceResponse) String

func (m *ServiceResponse) String() string

func (*ServiceResponse) XXX_DiscardUnknown

func (m *ServiceResponse) XXX_DiscardUnknown()

func (*ServiceResponse) XXX_Marshal

func (m *ServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceResponse) XXX_Merge

func (m *ServiceResponse) XXX_Merge(src proto.Message)

func (*ServiceResponse) XXX_Size

func (m *ServiceResponse) XXX_Size() int

func (*ServiceResponse) XXX_Unmarshal

func (m *ServiceResponse) XXX_Unmarshal(b []byte) error

type ServiceServer

type ServiceServer interface {
	Get(context.Context, *ServiceRequest) (*ServiceResponse, error)
}

ServiceServer is the server API for Service service.

type UnimplementedDeploymentServer

type UnimplementedDeploymentServer struct {
}

UnimplementedDeploymentServer can be embedded to have forward compatible implementations.

func (*UnimplementedDeploymentServer) GetByLabels

type UnimplementedEchoServer

type UnimplementedEchoServer struct {
}

UnimplementedEchoServer can be embedded to have forward compatible implementations.

func (*UnimplementedEchoServer) SayHello

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) Get

Jump to

Keyboard shortcuts

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