github.com/cilium/cilium@v1.16.2/api/v1/models/remote_cluster_synced.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  // RemoteClusterSynced Status of the synchronization with the remote cluster, about each resource
    19  // type. A given resource is considered to be synchronized if the initial
    20  // list of entries has been completely received from the remote cluster, and
    21  // new events are currently being watched.
    22  //
    23  // +k8s:deepcopy-gen=true
    24  //
    25  // swagger:model RemoteClusterSynced
    26  type RemoteClusterSynced struct {
    27  
    28  	// Endpoints synchronization status
    29  	Endpoints bool `json:"endpoints,omitempty"`
    30  
    31  	// Identities synchronization status
    32  	Identities bool `json:"identities,omitempty"`
    33  
    34  	// Nodes synchronization status
    35  	Nodes bool `json:"nodes,omitempty"`
    36  
    37  	// Services synchronization status
    38  	Services bool `json:"services,omitempty"`
    39  }
    40  
    41  // Validate validates this remote cluster synced
    42  func (m *RemoteClusterSynced) Validate(formats strfmt.Registry) error {
    43  	return nil
    44  }
    45  
    46  // ContextValidate validates this remote cluster synced based on context it is used
    47  func (m *RemoteClusterSynced) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
    48  	return nil
    49  }
    50  
    51  // MarshalBinary interface implementation
    52  func (m *RemoteClusterSynced) MarshalBinary() ([]byte, error) {
    53  	if m == nil {
    54  		return nil, nil
    55  	}
    56  	return swag.WriteJSON(m)
    57  }
    58  
    59  // UnmarshalBinary interface implementation
    60  func (m *RemoteClusterSynced) UnmarshalBinary(b []byte) error {
    61  	var res RemoteClusterSynced
    62  	if err := swag.ReadJSON(b, &res); err != nil {
    63  		return err
    64  	}
    65  	*m = res
    66  	return nil
    67  }