github.com/kubearmor/cilium@v1.6.12/api/v1/models/endpoint_identifiers.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package models 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 strfmt "github.com/go-openapi/strfmt" 10 11 "github.com/go-openapi/swag" 12 ) 13 14 // EndpointIdentifiers Unique identifiers for this endpoint from outside cilium 15 // swagger:model EndpointIdentifiers 16 type EndpointIdentifiers struct { 17 18 // ID assigned by container runtime 19 ContainerID string `json:"container-id,omitempty"` 20 21 // Name assigned to container 22 ContainerName string `json:"container-name,omitempty"` 23 24 // Docker endpoint ID 25 DockerEndpointID string `json:"docker-endpoint-id,omitempty"` 26 27 // Docker network ID 28 DockerNetworkID string `json:"docker-network-id,omitempty"` 29 30 // K8s pod for this endpoint 31 PodName string `json:"pod-name,omitempty"` 32 } 33 34 // Validate validates this endpoint identifiers 35 func (m *EndpointIdentifiers) Validate(formats strfmt.Registry) error { 36 return nil 37 } 38 39 // MarshalBinary interface implementation 40 func (m *EndpointIdentifiers) MarshalBinary() ([]byte, error) { 41 if m == nil { 42 return nil, nil 43 } 44 return swag.WriteJSON(m) 45 } 46 47 // UnmarshalBinary interface implementation 48 func (m *EndpointIdentifiers) UnmarshalBinary(b []byte) error { 49 var res EndpointIdentifiers 50 if err := swag.ReadJSON(b, &res); err != nil { 51 return err 52 } 53 *m = res 54 return nil 55 }