appconfig

package
v0.0.0-...-a1208dc Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Party.ProtoReflect.Descriptor instead.

func (*Party) GetName

func (x *Party) GetName() string

func (*Party) GetRole

func (x *Party) GetRole() string

func (*Party) GetServices

func (x *Party) GetServices() []*Service

func (*Party) ProtoMessage

func (*Party) ProtoMessage()

func (*Party) ProtoReflect

func (x *Party) ProtoReflect() protoreflect.Message

func (*Party) Reset

func (x *Party) Reset()

func (*Party) String

func (x *Party) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetName

func (x *Port) GetName() string

func (*Port) GetPort

func (x *Port) GetPort() int32

func (*Port) GetProtocol

func (x *Port) GetProtocol() string

func (*Port) GetScope

func (x *Port) GetScope() string

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

func (x *Port) ProtoReflect() protoreflect.Message

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetEndpoints

func (x *Service) GetEndpoints() []string

func (*Service) GetPortName

func (x *Service) GetPortName() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

Jump to

Keyboard shortcuts

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