pub struct SRVRecordSpec {
pub name: String,
pub priority: i32,
pub weight: i32,
pub port: i32,
pub target: String,
pub ttl: Option<i32>,
}Expand description
SRVRecord specifies the location of services.
SRV (Service) records specify the hostname and port of servers for specific services. The name format is: _service._proto (e.g., _ldap._tcp, _sip._udp).
§Example
apiVersion: bindy.firestoned.io/v1beta1
kind: SRVRecord
metadata:
name: ldap-srv
namespace: dns-system
labels:
zone: example.com
spec:
name: _ldap._tcp
priority: 10
weight: 60
port: 389
target: ldap.example.com.
ttl: 3600Records are associated with DNSZones via label selectors.
The DNSZone must have a recordsFrom selector that matches this record’s labels.
Fields§
§name: StringService and protocol in the format: _service._proto
Example: “_ldap._tcp”, “_sip._udp”, “_http._tcp”
priority: i32Priority of the target host. Lower values = higher priority.
weight: i32Relative weight for records with the same priority.
Higher values = higher probability of selection.
port: i32TCP or UDP port where the service is available.
target: StringFully qualified domain name of the target host.
Must end with a dot. Use “.” for “service not available”.
ttl: Option<i32>Time To Live in seconds.
Trait Implementations§
Source§impl Clone for SRVRecordSpec
impl Clone for SRVRecordSpec
Source§fn clone(&self) -> SRVRecordSpec
fn clone(&self) -> SRVRecordSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SRVRecordSpec
impl Debug for SRVRecordSpec
Source§impl<'de> Deserialize<'de> for SRVRecordSpec
impl<'de> Deserialize<'de> for SRVRecordSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for SRVRecordSpec
impl JsonSchema for SRVRecordSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SRVRecordSpec
impl RefUnwindSafe for SRVRecordSpec
impl Send for SRVRecordSpec
impl Sync for SRVRecordSpec
impl Unpin for SRVRecordSpec
impl UnwindSafe for SRVRecordSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more