Documentation ¶
Index ¶
- Variables
- type AllocatedPorts
- type ClusterDefine
- func (*ClusterDefine) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterDefine) GetParties() []*Party
- func (x *ClusterDefine) GetSelfEndpointIdx() int32
- func (x *ClusterDefine) GetSelfPartyIdx() int32
- func (*ClusterDefine) ProtoMessage()
- func (x *ClusterDefine) ProtoReflect() protoreflect.Message
- func (x *ClusterDefine) Reset()
- func (x *ClusterDefine) String() string
- type Party
- type Port
- func (*Port) Descriptor() ([]byte, []int)deprecated
- func (x *Port) GetName() string
- func (x *Port) GetPort() int32
- func (x *Port) GetProtocol() string
- func (x *Port) GetScope() string
- func (*Port) ProtoMessage()
- func (x *Port) ProtoReflect() protoreflect.Message
- func (x *Port) Reset()
- func (x *Port) String() string
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var File_kuscia_proto_api_v1alpha1_appconfig_app_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AllocatedPorts ¶
type AllocatedPorts struct { // Allocated ports. Ports []*Port `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"` // contains filtered or unexported fields }
AllocatedPorts represents allocated ports for pod.
func (*AllocatedPorts) Descriptor
deprecated
func (*AllocatedPorts) Descriptor() ([]byte, []int)
Deprecated: Use AllocatedPorts.ProtoReflect.Descriptor instead.
func (*AllocatedPorts) GetPorts ¶
func (x *AllocatedPorts) GetPorts() []*Port
func (*AllocatedPorts) ProtoMessage ¶
func (*AllocatedPorts) ProtoMessage()
func (*AllocatedPorts) ProtoReflect ¶
func (x *AllocatedPorts) ProtoReflect() protoreflect.Message
func (*AllocatedPorts) Reset ¶
func (x *AllocatedPorts) Reset()
func (*AllocatedPorts) String ¶
func (x *AllocatedPorts) String() string
type ClusterDefine ¶
type ClusterDefine struct { // Basic information of all parties. Parties []*Party `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"` // index of self party. SelfPartyIdx int32 `protobuf:"varint,2,opt,name=self_party_idx,json=selfPartyIdx,proto3" json:"self_party_idx,omitempty"` // index of self endpoint. SelfEndpointIdx int32 `protobuf:"varint,3,opt,name=self_endpoint_idx,json=selfEndpointIdx,proto3" json:"self_endpoint_idx,omitempty"` // contains filtered or unexported fields }
ClusterDefine represents the information of all parties.
func (*ClusterDefine) Descriptor
deprecated
func (*ClusterDefine) Descriptor() ([]byte, []int)
Deprecated: Use ClusterDefine.ProtoReflect.Descriptor instead.
func (*ClusterDefine) GetParties ¶
func (x *ClusterDefine) GetParties() []*Party
func (*ClusterDefine) GetSelfEndpointIdx ¶
func (x *ClusterDefine) GetSelfEndpointIdx() int32
func (*ClusterDefine) GetSelfPartyIdx ¶
func (x *ClusterDefine) GetSelfPartyIdx() int32
func (*ClusterDefine) ProtoMessage ¶
func (*ClusterDefine) ProtoMessage()
func (*ClusterDefine) ProtoReflect ¶
func (x *ClusterDefine) ProtoReflect() protoreflect.Message
func (*ClusterDefine) Reset ¶
func (x *ClusterDefine) Reset()
func (*ClusterDefine) String ¶
func (x *ClusterDefine) String() string
type Party ¶
type Party struct { // Name of party. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // role carried by party. Examples: client, server... Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // List of services exposed by pod. Services []*Service `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
Party represents the basic information of the party.
func (*Party) Descriptor
deprecated
func (*Party) GetServices ¶
func (*Party) ProtoMessage ¶
func (*Party) ProtoMessage()
func (*Party) ProtoReflect ¶
func (x *Party) ProtoReflect() protoreflect.Message
type Port ¶
type Port struct { // Each named port in a pod must have a unique name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Number of port allocated for pod. Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // Scope of port. Must be Cluster,Domain,Local. // Defaults to "Local". // +optional Scope string `protobuf:"bytes,3,opt,name=scope,proto3" json:"scope,omitempty"` // Protocol for port. Must be HTTP,GRPC. // Defaults to "HTTP". // +optional Protocol string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"` // contains filtered or unexported fields }
Port represents an allocated port for pod.
func (*Port) Descriptor
deprecated
func (*Port) GetProtocol ¶
func (*Port) ProtoMessage ¶
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶
func (x *Port) ProtoReflect() protoreflect.Message
type Service ¶
type Service struct { // Name of port. PortName string `protobuf:"bytes,1,opt,name=port_name,json=portName,proto3" json:"port_name,omitempty"` // Endpoint list corresponding to the port. Endpoints []string `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // contains filtered or unexported fields }
Service represents the service address corresponding to the port.
func (*Service) Descriptor
deprecated
func (*Service) GetEndpoints ¶
func (*Service) GetPortName ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.