catalogv2beta1

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-json-shim. DO NOT EDIT.

Index

Constants

View Source
const (
	GroupName = "catalog"
	Version   = "v2beta1"

	ComputedFailoverPolicyKind = "ComputedFailoverPolicy"
	FailoverPolicyKind         = "FailoverPolicy"
	HealthChecksKind           = "HealthChecks"
	HealthStatusKind           = "HealthStatus"
	NodeKind                   = "Node"
	NodeHealthStatusKind       = "NodeHealthStatus"
	ServiceKind                = "Service"
	ServiceEndpointsKind       = "ServiceEndpoints"
	VirtualIPsKind             = "VirtualIPs"
	WorkloadKind               = "Workload"
)

Variables

View Source
var (
	ComputedFailoverPolicyMarshaler   = &protojson.MarshalOptions{}
	ComputedFailoverPolicyUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var (
	FailoverMode_name = map[int32]string{
		0: "FAILOVER_MODE_UNSPECIFIED",
		1: "FAILOVER_MODE_SEQUENTIAL",
		2: "FAILOVER_MODE_ORDER_BY_LOCALITY",
	}
	FailoverMode_value = map[string]int32{
		"FAILOVER_MODE_UNSPECIFIED":       0,
		"FAILOVER_MODE_SEQUENTIAL":        1,
		"FAILOVER_MODE_ORDER_BY_LOCALITY": 2,
	}
)

Enum value maps for FailoverMode.

View Source
var (
	FailoverPolicyMarshaler   = &protojson.MarshalOptions{}
	FailoverPolicyUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
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 (
	HealthMarshaler   = &protojson.MarshalOptions{}
	HealthUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var (
	NodeMarshaler   = &protojson.MarshalOptions{}
	NodeUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var (
	Protocol_name = map[int32]string{
		0: "PROTOCOL_UNSPECIFIED",
		1: "PROTOCOL_TCP",
		2: "PROTOCOL_HTTP",
		3: "PROTOCOL_HTTP2",
		4: "PROTOCOL_GRPC",
		5: "PROTOCOL_MESH",
	}
	Protocol_value = map[string]int32{
		"PROTOCOL_UNSPECIFIED": 0,
		"PROTOCOL_TCP":         1,
		"PROTOCOL_HTTP":        2,
		"PROTOCOL_HTTP2":       3,
		"PROTOCOL_GRPC":        4,
		"PROTOCOL_MESH":        5,
	}
)

Enum value maps for Protocol.

View Source
var (
	ComputedFailoverPolicyType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         ComputedFailoverPolicyKind,
	}

	FailoverPolicyType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         FailoverPolicyKind,
	}

	HealthChecksType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         HealthChecksKind,
	}

	HealthStatusType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         HealthStatusKind,
	}

	NodeType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         NodeKind,
	}

	NodeHealthStatusType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         NodeHealthStatusKind,
	}

	ServiceType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         ServiceKind,
	}

	ServiceEndpointsType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         ServiceEndpointsKind,
	}

	VirtualIPsType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         VirtualIPsKind,
	}

	WorkloadType = &pbresource.Type{
		Group:        GroupName,
		GroupVersion: Version,
		Kind:         WorkloadKind,
	}
)
View Source
var (
	SelectorMarshaler   = &protojson.MarshalOptions{}
	SelectorUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var (
	ServiceEndpointsMarshaler   = &protojson.MarshalOptions{}
	ServiceEndpointsUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var (
	ServiceMarshaler   = &protojson.MarshalOptions{}
	ServiceUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var (
	VipMarshaler   = &protojson.MarshalOptions{}
	VipUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var (
	WorkloadMarshaler   = &protojson.MarshalOptions{}
	WorkloadUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false}
)
View Source
var File_pbcatalog_v2beta1_computed_failover_policy_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v2beta1_failover_policy_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v2beta1_health_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v2beta1_node_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v2beta1_protocol_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v2beta1_selector_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v2beta1_service_endpoints_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v2beta1_service_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v2beta1_vip_proto protoreflect.FileDescriptor
View Source
var File_pbcatalog_v2beta1_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) DeepCopy

func (in *CheckTLSConfig) DeepCopy() *CheckTLSConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CheckTLSConfig. Required by controller-gen.

func (*CheckTLSConfig) DeepCopyInterface

func (in *CheckTLSConfig) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new CheckTLSConfig. Required by controller-gen.

func (*CheckTLSConfig) DeepCopyInto

func (in *CheckTLSConfig) DeepCopyInto(out *CheckTLSConfig)

DeepCopyInto supports using CheckTLSConfig within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *CheckTLSConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for CheckTLSConfig

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

func (*CheckTLSConfig) UnmarshalJSON

func (this *CheckTLSConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for CheckTLSConfig

type ComputedFailoverPolicy added in v0.6.0

type ComputedFailoverPolicy struct {

	// Config defines failover for any named port not present in PortConfigs.
	Config *FailoverConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// PortConfigs defines failover for a specific port on this service and takes
	// precedence over Config.
	PortConfigs map[string]*FailoverConfig `` /* 182-byte string literal not displayed */
	// BoundReferences is a slice of mixed type references of resources that were
	// involved in the formulation of this resource.
	BoundReferences []*pbresource.Reference `protobuf:"bytes,3,rep,name=bound_references,json=boundReferences,proto3" json:"bound_references,omitempty"`
	// contains filtered or unexported fields
}

This is a Resource type.

func (*ComputedFailoverPolicy) DeepCopy added in v0.6.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComputedFailoverPolicy. Required by controller-gen.

func (*ComputedFailoverPolicy) DeepCopyInterface added in v0.6.0

func (in *ComputedFailoverPolicy) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ComputedFailoverPolicy. Required by controller-gen.

func (*ComputedFailoverPolicy) DeepCopyInto added in v0.6.0

func (in *ComputedFailoverPolicy) DeepCopyInto(out *ComputedFailoverPolicy)

DeepCopyInto supports using ComputedFailoverPolicy within kubernetes types, where deepcopy-gen is used.

func (*ComputedFailoverPolicy) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ComputedFailoverPolicy.ProtoReflect.Descriptor instead.

func (*ComputedFailoverPolicy) GetBoundReferences added in v0.6.0

func (x *ComputedFailoverPolicy) GetBoundReferences() []*pbresource.Reference

func (*ComputedFailoverPolicy) GetConfig added in v0.6.0

func (x *ComputedFailoverPolicy) GetConfig() *FailoverConfig

func (*ComputedFailoverPolicy) GetPortConfigs added in v0.6.0

func (x *ComputedFailoverPolicy) GetPortConfigs() map[string]*FailoverConfig

func (*ComputedFailoverPolicy) GetUnderlyingDestinationRefs added in v0.6.2

func (x *ComputedFailoverPolicy) GetUnderlyingDestinationRefs() []*pbresource.Reference

GetUnderlyingDestinationRefs is like GetUnderlyingDestinations except it returns a slice of References.

NOTE: no deduplication occurs.

func (*ComputedFailoverPolicy) GetUnderlyingDestinations added in v0.6.2

func (x *ComputedFailoverPolicy) GetUnderlyingDestinations() []*FailoverDestination

GetUnderlyingDestinations will collect FailoverDestinations from all internal fields and bundle them up in one slice.

NOTE: no deduplication occurs.

func (*ComputedFailoverPolicy) MarshalBinary added in v0.6.0

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

MarshalBinary implements encoding.BinaryMarshaler

func (*ComputedFailoverPolicy) MarshalJSON added in v0.6.0

func (this *ComputedFailoverPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ComputedFailoverPolicy

func (*ComputedFailoverPolicy) ProtoMessage added in v0.6.0

func (*ComputedFailoverPolicy) ProtoMessage()

func (*ComputedFailoverPolicy) ProtoReflect added in v0.6.0

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

func (*ComputedFailoverPolicy) Reset added in v0.6.0

func (x *ComputedFailoverPolicy) Reset()

func (*ComputedFailoverPolicy) String added in v0.6.0

func (x *ComputedFailoverPolicy) String() string

func (*ComputedFailoverPolicy) UnmarshalBinary added in v0.6.0

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

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*ComputedFailoverPolicy) UnmarshalJSON added in v0.6.0

func (this *ComputedFailoverPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ComputedFailoverPolicy

type DNSPolicy

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

func (*DNSPolicy) DeepCopy

func (in *DNSPolicy) DeepCopy() *DNSPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSPolicy. Required by controller-gen.

func (*DNSPolicy) DeepCopyInterface

func (in *DNSPolicy) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new DNSPolicy. Required by controller-gen.

func (*DNSPolicy) DeepCopyInto

func (in *DNSPolicy) DeepCopyInto(out *DNSPolicy)

DeepCopyInto supports using DNSPolicy within kubernetes types, where deepcopy-gen is used.

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) MarshalBinary

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

MarshalBinary implements encoding.BinaryMarshaler

func (*DNSPolicy) MarshalJSON

func (this *DNSPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for DNSPolicy

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

func (*DNSPolicy) UnmarshalJSON

func (this *DNSPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for DNSPolicy

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 `` /* 143-byte string literal not displayed */
	// identity is the name of the workload identity for this endpoint.
	Identity string `protobuf:"bytes,5,opt,name=identity,proto3" json:"identity,omitempty"`
	// dns contains customizations like Weight that will be returned in DNS discovery requests.
	Dns *DNSPolicy `protobuf:"bytes,6,opt,name=dns,proto3" json:"dns,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) DeepCopy

func (in *Endpoint) DeepCopy() *Endpoint

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint. Required by controller-gen.

func (*Endpoint) DeepCopyInterface

func (in *Endpoint) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint. Required by controller-gen.

func (*Endpoint) DeepCopyInto

func (in *Endpoint) DeepCopyInto(out *Endpoint)

DeepCopyInto supports using Endpoint within kubernetes types, where deepcopy-gen is used.

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) GetDns added in v0.6.0

func (x *Endpoint) GetDns() *DNSPolicy

func (*Endpoint) GetHealthStatus

func (x *Endpoint) GetHealthStatus() Health

func (*Endpoint) GetIdentity

func (x *Endpoint) GetIdentity() string

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) MarshalJSON

func (this *Endpoint) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Endpoint

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

func (*Endpoint) UnmarshalJSON

func (this *Endpoint) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Endpoint

type FailoverConfig

type FailoverConfig struct {

	// Destinations specifies a fixed list of failover destinations to try. We
	// never try a destination multiple times, so those are subtracted from this
	// list before proceeding.
	Destinations []*FailoverDestination `protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"`
	// Mode specifies the type of failover that will be performed. Valid values are
	// "sequential", "" (equivalent to "sequential") and "order-by-locality".
	Mode    FailoverMode `protobuf:"varint,2,opt,name=mode,proto3,enum=hashicorp.consul.catalog.v2beta1.FailoverMode" json:"mode,omitempty"`
	Regions []string     `protobuf:"bytes,3,rep,name=regions,proto3" json:"regions,omitempty"`
	// SamenessGroup specifies the sameness group to failover to.
	SamenessGroup string `protobuf:"bytes,4,opt,name=sameness_group,json=samenessGroup,proto3" json:"sameness_group,omitempty"`
	// contains filtered or unexported fields
}

func (*FailoverConfig) DeepCopy

func (in *FailoverConfig) DeepCopy() *FailoverConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailoverConfig. Required by controller-gen.

func (*FailoverConfig) DeepCopyInterface

func (in *FailoverConfig) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new FailoverConfig. Required by controller-gen.

func (*FailoverConfig) DeepCopyInto

func (in *FailoverConfig) DeepCopyInto(out *FailoverConfig)

DeepCopyInto supports using FailoverConfig within kubernetes types, where deepcopy-gen is used.

func (*FailoverConfig) Descriptor deprecated

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

Deprecated: Use FailoverConfig.ProtoReflect.Descriptor instead.

func (*FailoverConfig) GetDestinations

func (x *FailoverConfig) GetDestinations() []*FailoverDestination

func (*FailoverConfig) GetMode

func (x *FailoverConfig) GetMode() FailoverMode

func (*FailoverConfig) GetRegions

func (x *FailoverConfig) GetRegions() []string

func (*FailoverConfig) GetSamenessGroup

func (x *FailoverConfig) GetSamenessGroup() string

func (*FailoverConfig) IsEmpty

func (x *FailoverConfig) IsEmpty() bool

IsEmpty returns true if a config has no definition.

func (*FailoverConfig) MarshalBinary

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

MarshalBinary implements encoding.BinaryMarshaler

func (*FailoverConfig) MarshalJSON

func (this *FailoverConfig) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for FailoverConfig

func (*FailoverConfig) ProtoMessage

func (*FailoverConfig) ProtoMessage()

func (*FailoverConfig) ProtoReflect

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

func (*FailoverConfig) Reset

func (x *FailoverConfig) Reset()

func (*FailoverConfig) String

func (x *FailoverConfig) String() string

func (*FailoverConfig) UnmarshalBinary

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

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*FailoverConfig) UnmarshalJSON

func (this *FailoverConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for FailoverConfig

type FailoverDestination

type FailoverDestination struct {

	// This must be a Service.
	Ref *pbresource.Reference `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
	// Port is the port of the destination service.
	//
	// For more details on potential values of the service port identifier key,
	// see documentation for Service.ServicePort.
	// TODO: what should an empty port mean?
	Port       string `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
	Datacenter string `protobuf:"bytes,3,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	// contains filtered or unexported fields
}

func (*FailoverDestination) DeepCopy

func (in *FailoverDestination) DeepCopy() *FailoverDestination

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailoverDestination. Required by controller-gen.

func (*FailoverDestination) DeepCopyInterface

func (in *FailoverDestination) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new FailoverDestination. Required by controller-gen.

func (*FailoverDestination) DeepCopyInto

func (in *FailoverDestination) DeepCopyInto(out *FailoverDestination)

DeepCopyInto supports using FailoverDestination within kubernetes types, where deepcopy-gen is used.

func (*FailoverDestination) Descriptor deprecated

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

Deprecated: Use FailoverDestination.ProtoReflect.Descriptor instead.

func (*FailoverDestination) GetDatacenter

func (x *FailoverDestination) GetDatacenter() string

func (*FailoverDestination) GetPort

func (x *FailoverDestination) GetPort() string

func (*FailoverDestination) GetRef

func (*FailoverDestination) MarshalBinary

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

MarshalBinary implements encoding.BinaryMarshaler

func (*FailoverDestination) MarshalJSON

func (this *FailoverDestination) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for FailoverDestination

func (*FailoverDestination) ProtoMessage

func (*FailoverDestination) ProtoMessage()

func (*FailoverDestination) ProtoReflect

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

func (*FailoverDestination) Reset

func (x *FailoverDestination) Reset()

func (*FailoverDestination) String

func (x *FailoverDestination) String() string

func (*FailoverDestination) UnmarshalBinary

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

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*FailoverDestination) UnmarshalJSON

func (this *FailoverDestination) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for FailoverDestination

type FailoverMode

type FailoverMode int32

+kubebuilder:validation:Enum=FAILOVER_MODE_UNSPECIFIED;FAILOVER_MODE_SEQUENTIAL;FAILOVER_MODE_ORDER_BY_LOCALITY +kubebuilder:validation:Type=string

const (
	FailoverMode_FAILOVER_MODE_UNSPECIFIED       FailoverMode = 0
	FailoverMode_FAILOVER_MODE_SEQUENTIAL        FailoverMode = 1
	FailoverMode_FAILOVER_MODE_ORDER_BY_LOCALITY FailoverMode = 2
)

func (FailoverMode) Descriptor

func (FailoverMode) Enum

func (x FailoverMode) Enum() *FailoverMode

func (FailoverMode) EnumDescriptor deprecated

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

Deprecated: Use FailoverMode.Descriptor instead.

func (FailoverMode) Number

func (FailoverMode) String

func (x FailoverMode) String() string

func (FailoverMode) Type

type FailoverPolicy

type FailoverPolicy struct {

	// Config defines failover for any named port not present in PortConfigs.
	Config *FailoverConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// PortConfigs defines failover for a specific port on a service and takes
	// precedence over Config.
	//
	// For more details on potential values of the service port identifier key,
	// see documentation for Service.ServicePort.
	PortConfigs map[string]*FailoverConfig `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

This is a Resource type.

func (*FailoverPolicy) DeepCopy

func (in *FailoverPolicy) DeepCopy() *FailoverPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailoverPolicy. Required by controller-gen.

func (*FailoverPolicy) DeepCopyInterface

func (in *FailoverPolicy) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new FailoverPolicy. Required by controller-gen.

func (*FailoverPolicy) DeepCopyInto

func (in *FailoverPolicy) DeepCopyInto(out *FailoverPolicy)

DeepCopyInto supports using FailoverPolicy within kubernetes types, where deepcopy-gen is used.

func (*FailoverPolicy) Descriptor deprecated

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

Deprecated: Use FailoverPolicy.ProtoReflect.Descriptor instead.

func (*FailoverPolicy) GetConfig

func (x *FailoverPolicy) GetConfig() *FailoverConfig

func (*FailoverPolicy) GetPortConfigs

func (x *FailoverPolicy) GetPortConfigs() map[string]*FailoverConfig

func (*FailoverPolicy) MarshalBinary

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

MarshalBinary implements encoding.BinaryMarshaler

func (*FailoverPolicy) MarshalJSON

func (this *FailoverPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for FailoverPolicy

func (*FailoverPolicy) ProtoMessage

func (*FailoverPolicy) ProtoMessage()

func (*FailoverPolicy) ProtoReflect

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

func (*FailoverPolicy) Reset

func (x *FailoverPolicy) Reset()

func (*FailoverPolicy) String

func (x *FailoverPolicy) String() string

func (*FailoverPolicy) UnmarshalBinary

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

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*FailoverPolicy) UnmarshalJSON

func (this *FailoverPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for FailoverPolicy

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) DeepCopy

func (in *GRPCCheck) DeepCopy() *GRPCCheck

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GRPCCheck. Required by controller-gen.

func (*GRPCCheck) DeepCopyInterface

func (in *GRPCCheck) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GRPCCheck. Required by controller-gen.

func (*GRPCCheck) DeepCopyInto

func (in *GRPCCheck) DeepCopyInto(out *GRPCCheck)

DeepCopyInto supports using GRPCCheck within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *GRPCCheck) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for GRPCCheck

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

func (*GRPCCheck) UnmarshalJSON

func (this *GRPCCheck) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for GRPCCheck

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) DeepCopy

func (in *HTTPCheck) DeepCopy() *HTTPCheck

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPCheck. Required by controller-gen.

func (*HTTPCheck) DeepCopyInterface

func (in *HTTPCheck) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HTTPCheck. Required by controller-gen.

func (*HTTPCheck) DeepCopyInto

func (in *HTTPCheck) DeepCopyInto(out *HTTPCheck)

DeepCopyInto supports using HTTPCheck within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *HTTPCheck) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPCheck

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

func (*HTTPCheck) UnmarshalJSON

func (this *HTTPCheck) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPCheck

type Health

type Health int32

+kubebuilder:validation:Enum=HEALTH_ANY;HEALTH_PASSING;HEALTH_WARNING;HEALTH_CRITICAL;HEALTH_MAINTENANCE +kubebuilder:validation:Type=string

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"`
	// +kubebuilder:validation:Format=duration
	Interval *durationpb.Duration `protobuf:"bytes,7,opt,name=interval,proto3" json:"interval,omitempty"`
	// +kubebuilder:validation:Format=duration
	Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// +kubebuilder:validation:Format=duration
	DeregisterCriticalAfter *durationpb.Duration `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HealthCheck) DeepCopy

func (in *HealthCheck) DeepCopy() *HealthCheck

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheck. Required by controller-gen.

func (*HealthCheck) DeepCopyInterface

func (in *HealthCheck) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheck. Required by controller-gen.

func (*HealthCheck) DeepCopyInto

func (in *HealthCheck) DeepCopyInto(out *HealthCheck)

DeepCopyInto supports using HealthCheck within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *HealthCheck) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HealthCheck

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

func (*HealthCheck) UnmarshalJSON

func (this *HealthCheck) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HealthCheck

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) DeepCopy

func (in *HealthChecks) DeepCopy() *HealthChecks

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthChecks. Required by controller-gen.

func (*HealthChecks) DeepCopyInterface

func (in *HealthChecks) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HealthChecks. Required by controller-gen.

func (*HealthChecks) DeepCopyInto

func (in *HealthChecks) DeepCopyInto(out *HealthChecks)

DeepCopyInto supports using HealthChecks within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *HealthChecks) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HealthChecks

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

func (*HealthChecks) UnmarshalJSON

func (this *HealthChecks) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HealthChecks

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.v2beta1.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 and will have an ownership relationship.

func (*HealthStatus) DeepCopy

func (in *HealthStatus) DeepCopy() *HealthStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthStatus. Required by controller-gen.

func (*HealthStatus) DeepCopyInterface

func (in *HealthStatus) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new HealthStatus. Required by controller-gen.

func (*HealthStatus) DeepCopyInto

func (in *HealthStatus) DeepCopyInto(out *HealthStatus)

DeepCopyInto supports using HealthStatus within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *HealthStatus) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HealthStatus

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

func (*HealthStatus) UnmarshalJSON

func (this *HealthStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HealthStatus

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) DeepCopy

func (in *IP) DeepCopy() *IP

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IP. Required by controller-gen.

func (*IP) DeepCopyInterface

func (in *IP) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new IP. Required by controller-gen.

func (*IP) DeepCopyInto

func (in *IP) DeepCopyInto(out *IP)

DeepCopyInto supports using IP within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *IP) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for IP

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

func (*IP) UnmarshalJSON

func (this *IP) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for IP

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) DeepCopy

func (in *Locality) DeepCopy() *Locality

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Locality. Required by controller-gen.

func (*Locality) DeepCopyInterface

func (in *Locality) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Locality. Required by controller-gen.

func (*Locality) DeepCopyInto

func (in *Locality) DeepCopyInto(out *Locality)

DeepCopyInto supports using Locality within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *Locality) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Locality

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

func (*Locality) UnmarshalJSON

func (this *Locality) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Locality

type Node

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

func (*Node) DeepCopy

func (in *Node) DeepCopy() *Node

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node. Required by controller-gen.

func (*Node) DeepCopyInterface

func (in *Node) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Node. Required by controller-gen.

func (*Node) DeepCopyInto

func (in *Node) DeepCopyInto(out *Node)

DeepCopyInto supports using Node within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *Node) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Node

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

func (*Node) UnmarshalJSON

func (this *Node) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Node

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) DeepCopy

func (in *NodeAddress) DeepCopy() *NodeAddress

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeAddress. Required by controller-gen.

func (*NodeAddress) DeepCopyInterface

func (in *NodeAddress) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new NodeAddress. Required by controller-gen.

func (*NodeAddress) DeepCopyInto

func (in *NodeAddress) DeepCopyInto(out *NodeAddress)

DeepCopyInto supports using NodeAddress within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *NodeAddress) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for NodeAddress

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

func (*NodeAddress) UnmarshalJSON

func (this *NodeAddress) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for NodeAddress

type NodeHealthStatus added in v0.6.0

type NodeHealthStatus 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.v2beta1.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 node and will have an ownership relationship.

func (*NodeHealthStatus) DeepCopy added in v0.6.0

func (in *NodeHealthStatus) DeepCopy() *NodeHealthStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeHealthStatus. Required by controller-gen.

func (*NodeHealthStatus) DeepCopyInterface added in v0.6.0

func (in *NodeHealthStatus) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new NodeHealthStatus. Required by controller-gen.

func (*NodeHealthStatus) DeepCopyInto added in v0.6.0

func (in *NodeHealthStatus) DeepCopyInto(out *NodeHealthStatus)

DeepCopyInto supports using NodeHealthStatus within kubernetes types, where deepcopy-gen is used.

func (*NodeHealthStatus) Descriptor deprecated added in v0.6.0

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

Deprecated: Use NodeHealthStatus.ProtoReflect.Descriptor instead.

func (*NodeHealthStatus) GetDescription added in v0.6.0

func (x *NodeHealthStatus) GetDescription() string

func (*NodeHealthStatus) GetOutput added in v0.6.0

func (x *NodeHealthStatus) GetOutput() string

func (*NodeHealthStatus) GetStatus added in v0.6.0

func (x *NodeHealthStatus) GetStatus() Health

func (*NodeHealthStatus) GetType added in v0.6.0

func (x *NodeHealthStatus) GetType() string

func (*NodeHealthStatus) MarshalBinary added in v0.6.0

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

MarshalBinary implements encoding.BinaryMarshaler

func (*NodeHealthStatus) MarshalJSON added in v0.6.0

func (this *NodeHealthStatus) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for NodeHealthStatus

func (*NodeHealthStatus) ProtoMessage added in v0.6.0

func (*NodeHealthStatus) ProtoMessage()

func (*NodeHealthStatus) ProtoReflect added in v0.6.0

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

func (*NodeHealthStatus) Reset added in v0.6.0

func (x *NodeHealthStatus) Reset()

func (*NodeHealthStatus) String added in v0.6.0

func (x *NodeHealthStatus) String() string

func (*NodeHealthStatus) UnmarshalBinary added in v0.6.0

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

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*NodeHealthStatus) UnmarshalJSON added in v0.6.0

func (this *NodeHealthStatus) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for NodeHealthStatus

type OSServiceCheck

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

func (*OSServiceCheck) DeepCopy

func (in *OSServiceCheck) DeepCopy() *OSServiceCheck

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OSServiceCheck. Required by controller-gen.

func (*OSServiceCheck) DeepCopyInterface

func (in *OSServiceCheck) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new OSServiceCheck. Required by controller-gen.

func (*OSServiceCheck) DeepCopyInto

func (in *OSServiceCheck) DeepCopyInto(out *OSServiceCheck)

DeepCopyInto supports using OSServiceCheck within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *OSServiceCheck) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for OSServiceCheck

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

func (*OSServiceCheck) UnmarshalJSON

func (this *OSServiceCheck) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for OSServiceCheck

type Protocol

type Protocol int32

+kubebuilder:validation:Enum=PROTOCOL_UNSPECIFIED;PROTOCOL_TCP;PROTOCOL_HTTP;PROTOCOL_HTTP2;PROTOCOL_GRPC +kubebuilder:validation:Type=string

const (
	Protocol_PROTOCOL_UNSPECIFIED Protocol = 0
	Protocol_PROTOCOL_TCP         Protocol = 1
	Protocol_PROTOCOL_HTTP        Protocol = 2
	Protocol_PROTOCOL_HTTP2       Protocol = 3
	Protocol_PROTOCOL_GRPC        Protocol = 4
	// Protocol Mesh indicates that this port can speak Consul's mTLS based mesh protocol.
	Protocol_PROTOCOL_MESH Protocol = 5
)

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) DeepCopy

func (in *Service) DeepCopy() *Service

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service. Required by controller-gen.

func (*Service) DeepCopyInterface

func (in *Service) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Service. Required by controller-gen.

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

DeepCopyInto supports using Service within kubernetes types, where deepcopy-gen is used.

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) FindPortByID added in v0.6.0

func (s *Service) FindPortByID(id string) *ServicePort

FindPortByID finds a ServicePort by its VirtualPort or TargetPort value.

Note that this will not match a target port if the given value is numeric. See Service.ServicePort doc for more information on how port IDs are matched.

func (*Service) FindTargetPort added in v0.6.0

func (s *Service) FindTargetPort(targetPort string) *ServicePort

FindTargetPort finds a ServicePort by its TargetPort value.

Unlike FindPortByID, it will match a numeric TargetPort value. This is useful when looking up a service port by a workload port value, or when the data is known to be normalized to canonical target port values (e.g. computed routes).

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) IsMeshEnabled

func (s *Service) IsMeshEnabled() bool

func (*Service) MarshalBinary

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

MarshalBinary implements encoding.BinaryMarshaler

func (*Service) MarshalJSON

func (this *Service) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Service

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

func (*Service) UnmarshalJSON

func (this *Service) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Service

type ServiceEndpoints

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

func (*ServiceEndpoints) DeepCopy

func (in *ServiceEndpoints) DeepCopy() *ServiceEndpoints

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceEndpoints. Required by controller-gen.

func (*ServiceEndpoints) DeepCopyInterface

func (in *ServiceEndpoints) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServiceEndpoints. Required by controller-gen.

func (*ServiceEndpoints) DeepCopyInto

func (in *ServiceEndpoints) DeepCopyInto(out *ServiceEndpoints)

DeepCopyInto supports using ServiceEndpoints within kubernetes types, where deepcopy-gen is used.

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) GetIdentities

func (s *ServiceEndpoints) GetIdentities() []string

GetIdentities returns a list of unique identities that this service endpoints points to.

func (*ServiceEndpoints) MarshalBinary

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

MarshalBinary implements encoding.BinaryMarshaler

func (*ServiceEndpoints) MarshalJSON

func (this *ServiceEndpoints) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ServiceEndpoints

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

func (*ServiceEndpoints) UnmarshalJSON

func (this *ServiceEndpoints) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ServiceEndpoints

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.v2beta1.Protocol" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

ServicePort declares a port exposed by the service that can be used in config and xRoute references.

For outside references to a service port by string identifier (e.g. in xRoutes and xPolicies), there are two forms supported: - A numeric value exclusively indicates a ServicePort.VirtualPort - A non-numeric value exclusively indicates a ServicePort.TargetPort

func (*ServicePort) DeepCopy

func (in *ServicePort) DeepCopy() *ServicePort

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort. Required by controller-gen.

func (*ServicePort) DeepCopyInterface

func (in *ServicePort) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort. Required by controller-gen.

func (*ServicePort) DeepCopyInto

func (in *ServicePort) DeepCopyInto(out *ServicePort)

DeepCopyInto supports using ServicePort within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *ServicePort) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ServicePort

func (*ServicePort) MatchesPortId added in v0.6.0

func (sp *ServicePort) MatchesPortId(id string) bool

MatchesPortId returns true if the given port ID is non-empty and matches the virtual or target port of the given ServicePort. See ServicePort doc for more information on how port IDs are matched.

Note that this function does not validate the provided port ID. Configured service ports should be validated on write, prior to use of this function, which means any matching value is implicitly valid.

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) ToPrintableString added in v0.6.0

func (sp *ServicePort) ToPrintableString() string

func (*ServicePort) UnmarshalBinary

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

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*ServicePort) UnmarshalJSON

func (this *ServicePort) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ServicePort

func (*ServicePort) VirtualPortStr added in v0.6.0

func (sp *ServicePort) VirtualPortStr() string

VirtualPortStr is a convenience helper for checking the virtual port against a port ID in config (e.g. keys in FailoverPolicy.PortConfigs). It returns the string representation of the virtual port.

type TCPCheck

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

func (*TCPCheck) DeepCopy

func (in *TCPCheck) DeepCopy() *TCPCheck

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPCheck. Required by controller-gen.

func (*TCPCheck) DeepCopyInterface

func (in *TCPCheck) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TCPCheck. Required by controller-gen.

func (*TCPCheck) DeepCopyInto

func (in *TCPCheck) DeepCopyInto(out *TCPCheck)

DeepCopyInto supports using TCPCheck within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *TCPCheck) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TCPCheck

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

func (*TCPCheck) UnmarshalJSON

func (this *TCPCheck) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TCPCheck

type UDPCheck

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

func (*UDPCheck) DeepCopy

func (in *UDPCheck) DeepCopy() *UDPCheck

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UDPCheck. Required by controller-gen.

func (*UDPCheck) DeepCopyInterface

func (in *UDPCheck) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new UDPCheck. Required by controller-gen.

func (*UDPCheck) DeepCopyInto

func (in *UDPCheck) DeepCopyInto(out *UDPCheck)

DeepCopyInto supports using UDPCheck within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *UDPCheck) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for UDPCheck

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

func (*UDPCheck) UnmarshalJSON

func (this *UDPCheck) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for UDPCheck

type VirtualIPs

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

func (*VirtualIPs) DeepCopy

func (in *VirtualIPs) DeepCopy() *VirtualIPs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualIPs. Required by controller-gen.

func (*VirtualIPs) DeepCopyInterface

func (in *VirtualIPs) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new VirtualIPs. Required by controller-gen.

func (*VirtualIPs) DeepCopyInto

func (in *VirtualIPs) DeepCopyInto(out *VirtualIPs)

DeepCopyInto supports using VirtualIPs within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *VirtualIPs) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for VirtualIPs

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

func (*VirtualIPs) UnmarshalJSON

func (this *VirtualIPs) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for VirtualIPs

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) DeepCopy

func (in *Weights) DeepCopy() *Weights

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Weights. Required by controller-gen.

func (*Weights) DeepCopyInterface

func (in *Weights) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Weights. Required by controller-gen.

func (*Weights) DeepCopyInto

func (in *Weights) DeepCopyInto(out *Weights)

DeepCopyInto supports using Weights within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *Weights) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Weights

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

func (*Weights) UnmarshalJSON

func (this *Weights) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Weights

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/v2beta1/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/v2beta1/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/v2beta1/workload.proto.
	ConnectNative bool `protobuf:"varint,8,opt,name=connect_native,json=connectNative,proto3" json:"connect_native,omitempty"`
	// dns contains any workload customization that will be returned in DNS discovery requests.
	Dns *DNSPolicy `protobuf:"bytes,9,opt,name=dns,proto3" json:"dns,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) DeepCopy

func (in *Workload) DeepCopy() *Workload

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload. Required by controller-gen.

func (*Workload) DeepCopyInterface

func (in *Workload) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Workload. Required by controller-gen.

func (*Workload) DeepCopyInto

func (in *Workload) DeepCopyInto(out *Workload)

DeepCopyInto supports using Workload within kubernetes types, where deepcopy-gen is used.

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/v2beta1/workload.proto.

func (*Workload) GetDns added in v0.6.0

func (x *Workload) GetDns() *DNSPolicy

func (*Workload) GetEnableTagOverride deprecated

func (x *Workload) GetEnableTagOverride() bool

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

func (*Workload) GetFirstNonExternalMeshAddress

func (w *Workload) GetFirstNonExternalMeshAddress() *WorkloadAddress

func (*Workload) GetIdentity

func (x *Workload) GetIdentity() string

func (*Workload) GetLocality

func (x *Workload) GetLocality() *Locality

func (*Workload) GetMeshPortName

func (w *Workload) GetMeshPortName() (string, bool)

func (*Workload) GetNodeName

func (x *Workload) GetNodeName() string

func (*Workload) GetNonExternalAddressesForPort

func (w *Workload) GetNonExternalAddressesForPort(portName string) []*WorkloadAddress

func (*Workload) GetPorts

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

func (*Workload) GetPortsByProtocol

func (w *Workload) GetPortsByProtocol() map[Protocol][]string

func (*Workload) GetTags deprecated

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

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

func (*Workload) IsMeshEnabled

func (w *Workload) IsMeshEnabled() bool

func (*Workload) MarshalBinary

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

MarshalBinary implements encoding.BinaryMarshaler

func (*Workload) MarshalJSON

func (this *Workload) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Workload

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

func (*Workload) UnmarshalJSON

func (this *Workload) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Workload

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) DeepCopy

func (in *WorkloadAddress) DeepCopy() *WorkloadAddress

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadAddress. Required by controller-gen.

func (*WorkloadAddress) DeepCopyInterface

func (in *WorkloadAddress) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadAddress. Required by controller-gen.

func (*WorkloadAddress) DeepCopyInto

func (in *WorkloadAddress) DeepCopyInto(out *WorkloadAddress)

DeepCopyInto supports using WorkloadAddress within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *WorkloadAddress) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for WorkloadAddress

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

func (*WorkloadAddress) UnmarshalJSON

func (this *WorkloadAddress) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for WorkloadAddress

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.v2beta1.Protocol" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadPort) DeepCopy

func (in *WorkloadPort) DeepCopy() *WorkloadPort

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadPort. Required by controller-gen.

func (*WorkloadPort) DeepCopyInterface

func (in *WorkloadPort) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadPort. Required by controller-gen.

func (*WorkloadPort) DeepCopyInto

func (in *WorkloadPort) DeepCopyInto(out *WorkloadPort)

DeepCopyInto supports using WorkloadPort within kubernetes types, where deepcopy-gen is used.

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) MarshalJSON

func (this *WorkloadPort) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for WorkloadPort

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

func (*WorkloadPort) UnmarshalJSON

func (this *WorkloadPort) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for WorkloadPort

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"`
	Filter   string   `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

WorkloadSelector represents criteria for selecting a subset of workloads.

func (*WorkloadSelector) DeepCopy

func (in *WorkloadSelector) DeepCopy() *WorkloadSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSelector. Required by controller-gen.

func (*WorkloadSelector) DeepCopyInterface

func (in *WorkloadSelector) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSelector. Required by controller-gen.

func (*WorkloadSelector) DeepCopyInto

func (in *WorkloadSelector) DeepCopyInto(out *WorkloadSelector)

DeepCopyInto supports using WorkloadSelector within kubernetes types, where deepcopy-gen is used.

func (*WorkloadSelector) Descriptor deprecated

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

Deprecated: Use WorkloadSelector.ProtoReflect.Descriptor instead.

func (*WorkloadSelector) GetFilter

func (x *WorkloadSelector) GetFilter() string

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) MarshalJSON

func (this *WorkloadSelector) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for WorkloadSelector

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

func (*WorkloadSelector) UnmarshalJSON

func (this *WorkloadSelector) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for WorkloadSelector

Jump to

Keyboard shortcuts

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