github.com/cilium/cilium@v1.16.2/api/v1/models/endpoint_identifiers.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 // Copyright Authors of Cilium 4 // SPDX-License-Identifier: Apache-2.0 5 6 package models 7 8 // This file was generated by the swagger tool. 9 // Editing this file might prove futile when you re-run the swagger generate command 10 11 import ( 12 "context" 13 14 "github.com/go-openapi/strfmt" 15 "github.com/go-openapi/swag" 16 ) 17 18 // EndpointIdentifiers Unique identifiers for this endpoint from outside cilium 19 // 20 // +deepequal-gen=true 21 // 22 // swagger:model EndpointIdentifiers 23 type EndpointIdentifiers struct { 24 25 // ID assigned to this attachment by container runtime 26 CniAttachmentID string `json:"cni-attachment-id,omitempty"` 27 28 // ID assigned by container runtime (deprecated, may not be unique) 29 ContainerID string `json:"container-id,omitempty"` 30 31 // Name assigned to container (deprecated, may not be unique) 32 ContainerName string `json:"container-name,omitempty"` 33 34 // Docker endpoint ID 35 DockerEndpointID string `json:"docker-endpoint-id,omitempty"` 36 37 // Docker network ID 38 DockerNetworkID string `json:"docker-network-id,omitempty"` 39 40 // K8s namespace for this endpoint (deprecated, may not be unique) 41 K8sNamespace string `json:"k8s-namespace,omitempty"` 42 43 // K8s pod name for this endpoint (deprecated, may not be unique) 44 K8sPodName string `json:"k8s-pod-name,omitempty"` 45 46 // K8s pod for this endpoint (deprecated, may not be unique) 47 PodName string `json:"pod-name,omitempty"` 48 } 49 50 // Validate validates this endpoint identifiers 51 func (m *EndpointIdentifiers) Validate(formats strfmt.Registry) error { 52 return nil 53 } 54 55 // ContextValidate validates this endpoint identifiers based on context it is used 56 func (m *EndpointIdentifiers) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 57 return nil 58 } 59 60 // MarshalBinary interface implementation 61 func (m *EndpointIdentifiers) MarshalBinary() ([]byte, error) { 62 if m == nil { 63 return nil, nil 64 } 65 return swag.WriteJSON(m) 66 } 67 68 // UnmarshalBinary interface implementation 69 func (m *EndpointIdentifiers) UnmarshalBinary(b []byte) error { 70 var res EndpointIdentifiers 71 if err := swag.ReadJSON(b, &res); err != nil { 72 return err 73 } 74 *m = res 75 return nil 76 }