catalogv1alpha1

package
v0.4.0-rc1.0...-9dd6c97 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Health_name = map[int32]string{
		0: "HEALTH_ANY",
		1: "HEALTH_PASSING",
		2: "HEALTH_WARNING",
		3: "HEALTH_CRITICAL",
		4: "HEALTH_MAINTENANCE",
	}
	Health_value = map[string]int32{
		"HEALTH_ANY":         0,
		"HEALTH_PASSING":     1,
		"HEALTH_WARNING":     2,
		"HEALTH_CRITICAL":    3,
		"HEALTH_MAINTENANCE": 4,
	}
)

Enum value maps for Health.

View Source
var (
	Protocol_name = map[int32]string{
		0: "PROTOCOL_TCP",
		1: "PROTOCOL_HTTP",
		2: "PROTOCOL_HTTP2",
		3: "PROTOCOL_GRPC",
		4: "PROTOCOL_MESH",
	}
	Protocol_value = map[string]int32{
		"PROTOCOL_TCP":   0,
		"PROTOCOL_HTTP":  1,
		"PROTOCOL_HTTP2": 2,
		"PROTOCOL_GRPC":  3,
		"PROTOCOL_MESH":  4,
	}
)

Enum value maps for Protocol.

View Source
var File_pbcatalog_v1alpha1_dns_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v1alpha1_health_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v1alpha1_node_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v1alpha1_protocol_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v1alpha1_selector_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v1alpha1_service_endpoints_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v1alpha1_service_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v1alpha1_vip_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v1alpha1_workload_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CheckTLSConfig

type CheckTLSConfig struct {
	TlsServerName string `protobuf:"bytes,1,opt,name=tls_server_name,json=tlsServerName,proto3" json:"tls_server_name,omitempty"`
	TlsSkipVerify bool   `protobuf:"varint,2,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"`
	UseTls        bool   `protobuf:"varint,3,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckTLSConfig) Descriptor deprecated

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

Deprecated: Use CheckTLSConfig.ProtoReflect.Descriptor instead.

func (*CheckTLSConfig) GetTlsServerName

func (x *CheckTLSConfig) GetTlsServerName() string

func (*CheckTLSConfig) GetTlsSkipVerify

func (x *CheckTLSConfig) GetTlsSkipVerify() bool

func (*CheckTLSConfig) GetUseTls

func (x *CheckTLSConfig) GetUseTls() bool

func (*CheckTLSConfig) MarshalBinary

func (msg *CheckTLSConfig) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*CheckTLSConfig) ProtoMessage

func (*CheckTLSConfig) ProtoMessage()

func (*CheckTLSConfig) ProtoReflect

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

func (*CheckTLSConfig) Reset

func (x *CheckTLSConfig) Reset()

func (*CheckTLSConfig) String

func (x *CheckTLSConfig) String() string

func (*CheckTLSConfig) UnmarshalBinary

func (msg *CheckTLSConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type DNSPolicy

type DNSPolicy struct {
	Workloads *WorkloadSelector `protobuf:"bytes,1,opt,name=workloads,proto3" json:"workloads,omitempty"`
	Weights   *Weights          `protobuf:"bytes,2,opt,name=weights,proto3" json:"weights,omitempty"`
	// contains filtered or unexported fields
}

func (*DNSPolicy) Descriptor deprecated

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

Deprecated: Use DNSPolicy.ProtoReflect.Descriptor instead.

func (*DNSPolicy) GetWeights

func (x *DNSPolicy) GetWeights() *Weights

func (*DNSPolicy) GetWorkloads

func (x *DNSPolicy) GetWorkloads() *WorkloadSelector

func (*DNSPolicy) MarshalBinary

func (msg *DNSPolicy) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*DNSPolicy) ProtoMessage

func (*DNSPolicy) ProtoMessage()

func (*DNSPolicy) ProtoReflect

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

func (*DNSPolicy) Reset

func (x *DNSPolicy) Reset()

func (*DNSPolicy) String

func (x *DNSPolicy) String() string

func (*DNSPolicy) UnmarshalBinary

func (msg *DNSPolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type Endpoint

type Endpoint struct {

	// target_ref is the reference to the resource
	// for this endpoint endpoint. This currently must be a workload.
	TargetRef *pbresource.ID `protobuf:"bytes,1,opt,name=target_ref,json=targetRef,proto3" json:"target_ref,omitempty"`
	// addresses is the list of addresses for this endpoint.
	// This has the same structure as the workload addresses.
	Addresses []*WorkloadAddress `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// ports is the map of ports for this endpoint.
	// This has the same structure as the workload ports but
	// will be filtered to just the ports selected by the service.
	Ports map[string]*WorkloadPort `` /* 151-byte string literal not displayed */
	// health_status is the aggregated health status of this endpoint.
	HealthStatus Health `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Endpoint) Descriptor deprecated

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

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetAddresses

func (x *Endpoint) GetAddresses() []*WorkloadAddress

func (*Endpoint) GetHealthStatus

func (x *Endpoint) GetHealthStatus() Health

func (*Endpoint) GetPorts

func (x *Endpoint) GetPorts() map[string]*WorkloadPort

func (*Endpoint) GetTargetRef

func (x *Endpoint) GetTargetRef() *pbresource.ID

func (*Endpoint) MarshalBinary

func (msg *Endpoint) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

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

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

func (*Endpoint) UnmarshalBinary

func (msg *Endpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type GRPCCheck

type GRPCCheck struct {
	Address string          `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Tls     *CheckTLSConfig `protobuf:"bytes,2,opt,name=tls,proto3" json:"tls,omitempty"`
	// contains filtered or unexported fields
}

func (*GRPCCheck) Descriptor deprecated

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

Deprecated: Use GRPCCheck.ProtoReflect.Descriptor instead.

func (*GRPCCheck) GetAddress

func (x *GRPCCheck) GetAddress() string

func (*GRPCCheck) GetTls

func (x *GRPCCheck) GetTls() *CheckTLSConfig

func (*GRPCCheck) MarshalBinary

func (msg *GRPCCheck) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*GRPCCheck) ProtoMessage

func (*GRPCCheck) ProtoMessage()

func (*GRPCCheck) ProtoReflect

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

func (*GRPCCheck) Reset

func (x *GRPCCheck) Reset()

func (*GRPCCheck) String

func (x *GRPCCheck) String() string

func (*GRPCCheck) UnmarshalBinary

func (msg *GRPCCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type HTTPCheck

type HTTPCheck struct {
	Url              string            `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Header           map[string]string `` /* 153-byte string literal not displayed */
	Method           string            `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	Body             string            `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	DisableRedirects bool              `protobuf:"varint,5,opt,name=disable_redirects,json=disableRedirects,proto3" json:"disable_redirects,omitempty"`
	Tls              *CheckTLSConfig   `protobuf:"bytes,6,opt,name=tls,proto3" json:"tls,omitempty"`
	// contains filtered or unexported fields
}

func (*HTTPCheck) Descriptor deprecated

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

Deprecated: Use HTTPCheck.ProtoReflect.Descriptor instead.

func (*HTTPCheck) GetBody

func (x *HTTPCheck) GetBody() string

func (*HTTPCheck) GetDisableRedirects

func (x *HTTPCheck) GetDisableRedirects() bool

func (*HTTPCheck) GetHeader

func (x *HTTPCheck) GetHeader() map[string]string

func (*HTTPCheck) GetMethod

func (x *HTTPCheck) GetMethod() string

func (*HTTPCheck) GetTls

func (x *HTTPCheck) GetTls() *CheckTLSConfig

func (*HTTPCheck) GetUrl

func (x *HTTPCheck) GetUrl() string

func (*HTTPCheck) MarshalBinary

func (msg *HTTPCheck) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*HTTPCheck) ProtoMessage

func (*HTTPCheck) ProtoMessage()

func (*HTTPCheck) ProtoReflect

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

func (*HTTPCheck) Reset

func (x *HTTPCheck) Reset()

func (*HTTPCheck) String

func (x *HTTPCheck) String() string

func (*HTTPCheck) UnmarshalBinary

func (msg *HTTPCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type Health

type Health int32
const (
	// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
	Health_HEALTH_ANY         Health = 0
	Health_HEALTH_PASSING     Health = 1
	Health_HEALTH_WARNING     Health = 2
	Health_HEALTH_CRITICAL    Health = 3
	Health_HEALTH_MAINTENANCE Health = 4
)

func (Health) Descriptor

func (Health) Descriptor() protoreflect.EnumDescriptor

func (Health) Enum

func (x Health) Enum() *Health

func (Health) EnumDescriptor deprecated

func (Health) EnumDescriptor() ([]byte, []int)

Deprecated: Use Health.Descriptor instead.

func (Health) Number

func (x Health) Number() protoreflect.EnumNumber

func (Health) String

func (x Health) String() string

func (Health) Type

func (Health) Type() protoreflect.EnumType

type HealthCheck

type HealthCheck struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to Definition:
	//
	//	*HealthCheck_Http
	//	*HealthCheck_Tcp
	//	*HealthCheck_Udp
	//	*HealthCheck_Grpc
	//	*HealthCheck_OsService
	Definition              isHealthCheck_Definition `protobuf_oneof:"definition"`
	Interval                *durationpb.Duration     `protobuf:"bytes,7,opt,name=interval,proto3" json:"interval,omitempty"`
	Timeout                 *durationpb.Duration     `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"`
	DeregisterCriticalAfter *durationpb.Duration     `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HealthCheck) Descriptor deprecated

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

Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.

func (*HealthCheck) GetDefinition

func (m *HealthCheck) GetDefinition() isHealthCheck_Definition

func (*HealthCheck) GetDeregisterCriticalAfter

func (x *HealthCheck) GetDeregisterCriticalAfter() *durationpb.Duration

func (*HealthCheck) GetGrpc

func (x *HealthCheck) GetGrpc() *GRPCCheck

func (*HealthCheck) GetHttp

func (x *HealthCheck) GetHttp() *HTTPCheck

func (*HealthCheck) GetInterval

func (x *HealthCheck) GetInterval() *durationpb.Duration

func (*HealthCheck) GetName

func (x *HealthCheck) GetName() string

func (*HealthCheck) GetOsService

func (x *HealthCheck) GetOsService() *OSServiceCheck

func (*HealthCheck) GetTcp

func (x *HealthCheck) GetTcp() *TCPCheck

func (*HealthCheck) GetTimeout

func (x *HealthCheck) GetTimeout() *durationpb.Duration

func (*HealthCheck) GetUdp

func (x *HealthCheck) GetUdp() *UDPCheck

func (*HealthCheck) MarshalBinary

func (msg *HealthCheck) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*HealthCheck) ProtoMessage

func (*HealthCheck) ProtoMessage()

func (*HealthCheck) ProtoReflect

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

func (*HealthCheck) Reset

func (x *HealthCheck) Reset()

func (*HealthCheck) String

func (x *HealthCheck) String() string

func (*HealthCheck) UnmarshalBinary

func (msg *HealthCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type HealthCheck_Grpc

type HealthCheck_Grpc struct {
	Grpc *GRPCCheck `protobuf:"bytes,5,opt,name=grpc,proto3,oneof"`
}

type HealthCheck_Http

type HealthCheck_Http struct {
	Http *HTTPCheck `protobuf:"bytes,2,opt,name=http,proto3,oneof"`
}

type HealthCheck_OsService

type HealthCheck_OsService struct {
	OsService *OSServiceCheck `protobuf:"bytes,6,opt,name=os_service,json=osService,proto3,oneof"`
}

type HealthCheck_Tcp

type HealthCheck_Tcp struct {
	Tcp *TCPCheck `protobuf:"bytes,3,opt,name=tcp,proto3,oneof"`
}

type HealthCheck_Udp

type HealthCheck_Udp struct {
	Udp *UDPCheck `protobuf:"bytes,4,opt,name=udp,proto3,oneof"`
}

type HealthChecks

type HealthChecks struct {
	Workloads    *WorkloadSelector `protobuf:"bytes,1,opt,name=workloads,proto3" json:"workloads,omitempty"`
	HealthChecks []*HealthCheck    `protobuf:"bytes,2,rep,name=health_checks,json=healthChecks,proto3" json:"health_checks,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthChecks) Descriptor deprecated

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

Deprecated: Use HealthChecks.ProtoReflect.Descriptor instead.

func (*HealthChecks) GetHealthChecks

func (x *HealthChecks) GetHealthChecks() []*HealthCheck

func (*HealthChecks) GetWorkloads

func (x *HealthChecks) GetWorkloads() *WorkloadSelector

func (*HealthChecks) MarshalBinary

func (msg *HealthChecks) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*HealthChecks) ProtoMessage

func (*HealthChecks) ProtoMessage()

func (*HealthChecks) ProtoReflect

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

func (*HealthChecks) Reset

func (x *HealthChecks) Reset()

func (*HealthChecks) String

func (x *HealthChecks) String() string

func (*HealthChecks) UnmarshalBinary

func (msg *HealthChecks) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type HealthStatus

type HealthStatus struct {

	// Type is the type of this health check, such as http, tcp, or kubernetes-readiness
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Health is the status. This maps to existing health check statuses.
	Status Health `protobuf:"varint,2,opt,name=status,proto3,enum=hashicorp.consul.catalog.v1alpha1.Health" json:"status,omitempty"`
	// Description is the description for this status.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Output is the output from running the check that resulted in this status
	Output string `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

This resource will belong to a workload or a node and will have an ownership relationship.

func (*HealthStatus) Descriptor deprecated

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

Deprecated: Use HealthStatus.ProtoReflect.Descriptor instead.

func (*HealthStatus) GetDescription

func (x *HealthStatus) GetDescription() string

func (*HealthStatus) GetOutput

func (x *HealthStatus) GetOutput() string

func (*HealthStatus) GetStatus

func (x *HealthStatus) GetStatus() Health

func (*HealthStatus) GetType

func (x *HealthStatus) GetType() string

func (*HealthStatus) MarshalBinary

func (msg *HealthStatus) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*HealthStatus) ProtoMessage

func (*HealthStatus) ProtoMessage()

func (*HealthStatus) ProtoReflect

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

func (*HealthStatus) Reset

func (x *HealthStatus) Reset()

func (*HealthStatus) String

func (x *HealthStatus) String() string

func (*HealthStatus) UnmarshalBinary

func (msg *HealthStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type IP

type IP struct {

	// address is the string IPv4 address.
	// This could also store IPv6 in the future.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// generated indicates whether Consul generated or it is user-provided
	// (e.g. a ClusterIP of the Kubernetes service).
	Generated bool `protobuf:"varint,2,opt,name=generated,proto3" json:"generated,omitempty"`
	// contains filtered or unexported fields
}

func (*IP) Descriptor deprecated

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

Deprecated: Use IP.ProtoReflect.Descriptor instead.

func (*IP) GetAddress

func (x *IP) GetAddress() string

func (*IP) GetGenerated

func (x *IP) GetGenerated() bool

func (*IP) MarshalBinary

func (msg *IP) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*IP) ProtoMessage

func (*IP) ProtoMessage()

func (*IP) ProtoReflect

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

func (*IP) Reset

func (x *IP) Reset()

func (*IP) String

func (x *IP) String() string

func (*IP) UnmarshalBinary

func (msg *IP) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type Locality

type Locality struct {

	// Region is region the zone belongs to.
	Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	// Zone is the zone the entity is running in.
	Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`
	// contains filtered or unexported fields
}

func (*Locality) Descriptor deprecated

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

Deprecated: Use Locality.ProtoReflect.Descriptor instead.

func (*Locality) GetRegion

func (x *Locality) GetRegion() string

func (*Locality) GetZone

func (x *Locality) GetZone() string

func (*Locality) MarshalBinary

func (msg *Locality) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Locality) ProtoMessage

func (*Locality) ProtoMessage()

func (*Locality) ProtoReflect

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

func (*Locality) Reset

func (x *Locality) Reset()

func (*Locality) String

func (x *Locality) String() string

func (*Locality) UnmarshalBinary

func (msg *Locality) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type Node

type Node struct {
	Addresses []*NodeAddress `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetAddresses

func (x *Node) GetAddresses() []*NodeAddress

func (*Node) MarshalBinary

func (msg *Node) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

func (*Node) UnmarshalBinary

func (msg *Node) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type NodeAddress

type NodeAddress struct {

	// host can be an IP or DNS name.Í
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// external indicates whether this address should be used for external communication
	// (aka a WAN address).
	External bool `protobuf:"varint,3,opt,name=external,proto3" json:"external,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeAddress) Descriptor deprecated

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

Deprecated: Use NodeAddress.ProtoReflect.Descriptor instead.

func (*NodeAddress) GetExternal

func (x *NodeAddress) GetExternal() bool

func (*NodeAddress) GetHost

func (x *NodeAddress) GetHost() string

func (*NodeAddress) MarshalBinary

func (msg *NodeAddress) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*NodeAddress) ProtoMessage

func (*NodeAddress) ProtoMessage()

func (*NodeAddress) ProtoReflect

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

func (*NodeAddress) Reset

func (x *NodeAddress) Reset()

func (*NodeAddress) String

func (x *NodeAddress) String() string

func (*NodeAddress) UnmarshalBinary

func (msg *NodeAddress) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type OSServiceCheck

type OSServiceCheck struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*OSServiceCheck) Descriptor deprecated

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

Deprecated: Use OSServiceCheck.ProtoReflect.Descriptor instead.

func (*OSServiceCheck) GetAddress

func (x *OSServiceCheck) GetAddress() string

func (*OSServiceCheck) MarshalBinary

func (msg *OSServiceCheck) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*OSServiceCheck) ProtoMessage

func (*OSServiceCheck) ProtoMessage()

func (*OSServiceCheck) ProtoReflect

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

func (*OSServiceCheck) Reset

func (x *OSServiceCheck) Reset()

func (*OSServiceCheck) String

func (x *OSServiceCheck) String() string

func (*OSServiceCheck) UnmarshalBinary

func (msg *OSServiceCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type Protocol

type Protocol int32
const (
	// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
	Protocol_PROTOCOL_TCP   Protocol = 0
	Protocol_PROTOCOL_HTTP  Protocol = 1
	Protocol_PROTOCOL_HTTP2 Protocol = 2
	Protocol_PROTOCOL_GRPC  Protocol = 3
	// Protocol Mesh indicates that this port can speak Consul's mTLS based mesh protocol.
	Protocol_PROTOCOL_MESH Protocol = 4
)

func (Protocol) Descriptor

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

func (Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

type Service

type Service struct {

	// workloads is a selector for the workloads this service should represent.
	Workloads *WorkloadSelector `protobuf:"bytes,1,opt,name=workloads,proto3" json:"workloads,omitempty"`
	// ports is the list of mappings of workload ports that this service
	// represents.
	Ports []*ServicePort `protobuf:"bytes,2,rep,name=ports,proto3" json:"ports,omitempty"`
	// virtual_ips is a list of virtual IPs for this service. This is useful when you need to set
	// an IP from an external system (like Kubernetes). This can be an IPv4 or IPv6 string.
	VirtualIps []string `protobuf:"bytes,3,rep,name=virtual_ips,json=virtualIps,proto3" json:"virtual_ips,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetPorts

func (x *Service) GetPorts() []*ServicePort

func (*Service) GetVirtualIps

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

func (*Service) GetWorkloads

func (x *Service) GetWorkloads() *WorkloadSelector

func (*Service) MarshalBinary

func (msg *Service) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

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

func (*Service) UnmarshalBinary

func (msg *Service) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type ServiceEndpoints

type ServiceEndpoints struct {
	Endpoints []*Endpoint `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceEndpoints) Descriptor deprecated

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

Deprecated: Use ServiceEndpoints.ProtoReflect.Descriptor instead.

func (*ServiceEndpoints) GetEndpoints

func (x *ServiceEndpoints) GetEndpoints() []*Endpoint

func (*ServiceEndpoints) MarshalBinary

func (msg *ServiceEndpoints) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*ServiceEndpoints) ProtoMessage

func (*ServiceEndpoints) ProtoMessage()

func (*ServiceEndpoints) ProtoReflect

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

func (*ServiceEndpoints) Reset

func (x *ServiceEndpoints) Reset()

func (*ServiceEndpoints) String

func (x *ServiceEndpoints) String() string

func (*ServiceEndpoints) UnmarshalBinary

func (msg *ServiceEndpoints) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type ServicePort

type ServicePort struct {

	// virtual_port is the port that could only be used when transparent
	// proxy is used alongside a virtual IP or a virtual DNS address.
	// This value is ignored in other cases. Whether or not using transparent
	// proxy, this value is optional.
	VirtualPort uint32 `protobuf:"varint,1,opt,name=virtual_port,json=virtualPort,proto3" json:"virtual_port,omitempty"`
	// target_port is the name of the workload port.
	TargetPort string `protobuf:"bytes,2,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"`
	// protocol is the port's protocol. This should be set to "mesh"
	// if the target port is the proxy's inbound port.
	Protocol Protocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=hashicorp.consul.catalog.v1alpha1.Protocol" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

func (*ServicePort) Descriptor deprecated

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

Deprecated: Use ServicePort.ProtoReflect.Descriptor instead.

func (*ServicePort) GetProtocol

func (x *ServicePort) GetProtocol() Protocol

func (*ServicePort) GetTargetPort

func (x *ServicePort) GetTargetPort() string

func (*ServicePort) GetVirtualPort

func (x *ServicePort) GetVirtualPort() uint32

func (*ServicePort) MarshalBinary

func (msg *ServicePort) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*ServicePort) ProtoMessage

func (*ServicePort) ProtoMessage()

func (*ServicePort) ProtoReflect

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

func (*ServicePort) Reset

func (x *ServicePort) Reset()

func (*ServicePort) String

func (x *ServicePort) String() string

func (*ServicePort) UnmarshalBinary

func (msg *ServicePort) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type TCPCheck

type TCPCheck struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*TCPCheck) Descriptor deprecated

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

Deprecated: Use TCPCheck.ProtoReflect.Descriptor instead.

func (*TCPCheck) GetAddress

func (x *TCPCheck) GetAddress() string

func (*TCPCheck) MarshalBinary

func (msg *TCPCheck) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*TCPCheck) ProtoMessage

func (*TCPCheck) ProtoMessage()

func (*TCPCheck) ProtoReflect

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

func (*TCPCheck) Reset

func (x *TCPCheck) Reset()

func (*TCPCheck) String

func (x *TCPCheck) String() string

func (*TCPCheck) UnmarshalBinary

func (msg *TCPCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type UDPCheck

type UDPCheck struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*UDPCheck) Descriptor deprecated

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

Deprecated: Use UDPCheck.ProtoReflect.Descriptor instead.

func (*UDPCheck) GetAddress

func (x *UDPCheck) GetAddress() string

func (*UDPCheck) MarshalBinary

func (msg *UDPCheck) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*UDPCheck) ProtoMessage

func (*UDPCheck) ProtoMessage()

func (*UDPCheck) ProtoReflect

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

func (*UDPCheck) Reset

func (x *UDPCheck) Reset()

func (*UDPCheck) String

func (x *UDPCheck) String() string

func (*UDPCheck) UnmarshalBinary

func (msg *UDPCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type VirtualIPs

type VirtualIPs struct {
	Ips []*IP `protobuf:"bytes,1,rep,name=ips,proto3" json:"ips,omitempty"`
	// contains filtered or unexported fields
}

func (*VirtualIPs) Descriptor deprecated

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

Deprecated: Use VirtualIPs.ProtoReflect.Descriptor instead.

func (*VirtualIPs) GetIps

func (x *VirtualIPs) GetIps() []*IP

func (*VirtualIPs) MarshalBinary

func (msg *VirtualIPs) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*VirtualIPs) ProtoMessage

func (*VirtualIPs) ProtoMessage()

func (*VirtualIPs) ProtoReflect

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

func (*VirtualIPs) Reset

func (x *VirtualIPs) Reset()

func (*VirtualIPs) String

func (x *VirtualIPs) String() string

func (*VirtualIPs) UnmarshalBinary

func (msg *VirtualIPs) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type Weights

type Weights struct {
	Passing uint32 `protobuf:"varint,1,opt,name=passing,proto3" json:"passing,omitempty"`
	Warning uint32 `protobuf:"varint,2,opt,name=warning,proto3" json:"warning,omitempty"`
	// contains filtered or unexported fields
}

func (*Weights) Descriptor deprecated

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

Deprecated: Use Weights.ProtoReflect.Descriptor instead.

func (*Weights) GetPassing

func (x *Weights) GetPassing() uint32

func (*Weights) GetWarning

func (x *Weights) GetWarning() uint32

func (*Weights) MarshalBinary

func (msg *Weights) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Weights) ProtoMessage

func (*Weights) ProtoMessage()

func (*Weights) ProtoReflect

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

func (*Weights) Reset

func (x *Weights) Reset()

func (*Weights) String

func (x *Weights) String() string

func (*Weights) UnmarshalBinary

func (msg *Weights) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type Workload

type Workload struct {

	// addresses has a list of all workload addresses. This should include
	// LAN and WAN addresses as well as any addresses a proxy would need
	// to bind to (if different from the default address).
	Addresses []*WorkloadAddress `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// ports is a map from port name to workload port’s number and protocol.
	Ports map[string]*WorkloadPort `` /* 151-byte string literal not displayed */
	// node_name is the name of the node this workload belongs to.
	NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	// identity is the name of the workload identity this workload is associated with.
	Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"`
	// Locality specifies workload locality.
	Locality *Locality `protobuf:"bytes,5,opt,name=locality,proto3" json:"locality,omitempty"`
	// deprecated: tags correspond to service tags that you can add to a service for DNS resolution.
	//
	// Deprecated: Marked as deprecated in pbcatalog/v1alpha1/workload.proto.
	Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
	// deprecated: enable_tag_override indicates whether agents should be overriding tags during anti-entropy syncs.
	//
	// Deprecated: Marked as deprecated in pbcatalog/v1alpha1/workload.proto.
	EnableTagOverride bool `protobuf:"varint,7,opt,name=enable_tag_override,json=enableTagOverride,proto3" json:"enable_tag_override,omitempty"`
	// deprecated: connect_native indicates whether this workload is connect native which will allow it to be
	// part of MeshEndpoints without having the corresponding Proxy resource.
	//
	// Deprecated: Marked as deprecated in pbcatalog/v1alpha1/workload.proto.
	ConnectNative bool `protobuf:"varint,8,opt,name=connect_native,json=connectNative,proto3" json:"connect_native,omitempty"`
	// contains filtered or unexported fields
}

Workload is the representation of a unit of addressable work. This could represent a process on a VM, a Kubernetes pod or something else entirely.

func (*Workload) Descriptor deprecated

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

Deprecated: Use Workload.ProtoReflect.Descriptor instead.

func (*Workload) GetAddresses

func (x *Workload) GetAddresses() []*WorkloadAddress

func (*Workload) GetConnectNative deprecated

func (x *Workload) GetConnectNative() bool

Deprecated: Marked as deprecated in pbcatalog/v1alpha1/workload.proto.

func (*Workload) GetEnableTagOverride deprecated

func (x *Workload) GetEnableTagOverride() bool

Deprecated: Marked as deprecated in pbcatalog/v1alpha1/workload.proto.

func (*Workload) GetIdentity

func (x *Workload) GetIdentity() string

func (*Workload) GetLocality

func (x *Workload) GetLocality() *Locality

func (*Workload) GetNodeName

func (x *Workload) GetNodeName() string

func (*Workload) GetPorts

func (x *Workload) GetPorts() map[string]*WorkloadPort

func (*Workload) GetTags deprecated

func (x *Workload) GetTags() []string

Deprecated: Marked as deprecated in pbcatalog/v1alpha1/workload.proto.

func (*Workload) MarshalBinary

func (msg *Workload) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Workload) ProtoMessage

func (*Workload) ProtoMessage()

func (*Workload) ProtoReflect

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

func (*Workload) Reset

func (x *Workload) Reset()

func (*Workload) String

func (x *Workload) String() string

func (*Workload) UnmarshalBinary

func (msg *Workload) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type WorkloadAddress

type WorkloadAddress struct {

	// host can be an IP, DNS name or a unix socket.
	// If it's a unix socket, only one port can be provided.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// ports is a list of names of ports that this host binds to.
	// If no ports are provided, we will assume all ports from the ports map.
	Ports []string `protobuf:"bytes,2,rep,name=ports,proto3" json:"ports,omitempty"`
	// external indicates whether this address should be used for external communication
	// (aka a WAN address).
	External bool `protobuf:"varint,3,opt,name=external,proto3" json:"external,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadAddress) Descriptor deprecated

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

Deprecated: Use WorkloadAddress.ProtoReflect.Descriptor instead.

func (*WorkloadAddress) GetExternal

func (x *WorkloadAddress) GetExternal() bool

func (*WorkloadAddress) GetHost

func (x *WorkloadAddress) GetHost() string

func (*WorkloadAddress) GetPorts

func (x *WorkloadAddress) GetPorts() []string

func (*WorkloadAddress) MarshalBinary

func (msg *WorkloadAddress) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*WorkloadAddress) ProtoMessage

func (*WorkloadAddress) ProtoMessage()

func (*WorkloadAddress) ProtoReflect

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

func (*WorkloadAddress) Reset

func (x *WorkloadAddress) Reset()

func (*WorkloadAddress) String

func (x *WorkloadAddress) String() string

func (*WorkloadAddress) UnmarshalBinary

func (msg *WorkloadAddress) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type WorkloadPort

type WorkloadPort struct {
	Port     uint32   `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
	Protocol Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=hashicorp.consul.catalog.v1alpha1.Protocol" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadPort) Descriptor deprecated

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

Deprecated: Use WorkloadPort.ProtoReflect.Descriptor instead.

func (*WorkloadPort) GetPort

func (x *WorkloadPort) GetPort() uint32

func (*WorkloadPort) GetProtocol

func (x *WorkloadPort) GetProtocol() Protocol

func (*WorkloadPort) MarshalBinary

func (msg *WorkloadPort) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*WorkloadPort) ProtoMessage

func (*WorkloadPort) ProtoMessage()

func (*WorkloadPort) ProtoReflect

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

func (*WorkloadPort) Reset

func (x *WorkloadPort) Reset()

func (*WorkloadPort) String

func (x *WorkloadPort) String() string

func (*WorkloadPort) UnmarshalBinary

func (msg *WorkloadPort) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type WorkloadSelector

type WorkloadSelector struct {
	Prefixes []string `protobuf:"bytes,1,rep,name=prefixes,proto3" json:"prefixes,omitempty"`
	Names    []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

WorkloadSelector represents criteria for selecting a subset of workloads.

func (*WorkloadSelector) Descriptor deprecated

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

Deprecated: Use WorkloadSelector.ProtoReflect.Descriptor instead.

func (*WorkloadSelector) GetNames

func (x *WorkloadSelector) GetNames() []string

func (*WorkloadSelector) GetPrefixes

func (x *WorkloadSelector) GetPrefixes() []string

func (*WorkloadSelector) MarshalBinary

func (msg *WorkloadSelector) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*WorkloadSelector) ProtoMessage

func (*WorkloadSelector) ProtoMessage()

func (*WorkloadSelector) ProtoReflect

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

func (*WorkloadSelector) Reset

func (x *WorkloadSelector) Reset()

func (*WorkloadSelector) String

func (x *WorkloadSelector) String() string

func (*WorkloadSelector) UnmarshalBinary

func (msg *WorkloadSelector) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

Jump to

Keyboard shortcuts

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