PortSpec constructor

PortSpec({
  1. required PortNum num,
  2. int? hostPort,
  3. String? type,
  4. bool? published,
  5. bool? public,
  6. List<EndpointSpec>? endpoints,
  7. String? liveness,
  8. Map<String, String>? annotations,
})

Implementation

PortSpec({
  required this.num,
  this.hostPort,
  this.type,
  this.published,
  this.public,
  List<EndpointSpec>? endpoints,
  this.liveness,
  this.annotations,
}) : endpoints = endpoints ?? [];