func (m *Snapshot) CopyFrom(src interface{}) { o := src.(*Snapshot) *m = *o github_com_docker_swarmkit_api_deepcopy.Copy(&m.Membership, &o.Membership) github_com_docker_swarmkit_api_deepcopy.Copy(&m.Store, &o.Store) }
func (m *AttachNetworkRequest) CopyFrom(src interface{}) { o := src.(*AttachNetworkRequest) *m = *o if o.Config != nil { m.Config = &NetworkAttachmentConfig{} github_com_docker_swarmkit_api_deepcopy.Copy(m.Config, o.Config) } }
func (m *StoreSnapshot) CopyFrom(src interface{}) { o := src.(*StoreSnapshot) *m = *o if o.Nodes != nil { m.Nodes = make([]*Node, len(o.Nodes)) for i := range m.Nodes { m.Nodes[i] = &Node{} github_com_docker_swarmkit_api_deepcopy.Copy(m.Nodes[i], o.Nodes[i]) } } if o.Services != nil { m.Services = make([]*Service, len(o.Services)) for i := range m.Services { m.Services[i] = &Service{} github_com_docker_swarmkit_api_deepcopy.Copy(m.Services[i], o.Services[i]) } } if o.Networks != nil { m.Networks = make([]*Network, len(o.Networks)) for i := range m.Networks { m.Networks[i] = &Network{} github_com_docker_swarmkit_api_deepcopy.Copy(m.Networks[i], o.Networks[i]) } } if o.Tasks != nil { m.Tasks = make([]*Task, len(o.Tasks)) for i := range m.Tasks { m.Tasks[i] = &Task{} github_com_docker_swarmkit_api_deepcopy.Copy(m.Tasks[i], o.Tasks[i]) } } if o.Clusters != nil { m.Clusters = make([]*Cluster, len(o.Clusters)) for i := range m.Clusters { m.Clusters[i] = &Cluster{} github_com_docker_swarmkit_api_deepcopy.Copy(m.Clusters[i], o.Clusters[i]) } } if o.Secrets != nil { m.Secrets = make([]*Secret, len(o.Secrets)) for i := range m.Secrets { m.Secrets[i] = &Secret{} github_com_docker_swarmkit_api_deepcopy.Copy(m.Secrets[i], o.Secrets[i]) } } }
func (m *ClusterSnapshot) CopyFrom(src interface{}) { o := src.(*ClusterSnapshot) *m = *o if o.Members != nil { m.Members = make([]*RaftMember, len(o.Members)) for i := range m.Members { m.Members[i] = &RaftMember{} github_com_docker_swarmkit_api_deepcopy.Copy(m.Members[i], o.Members[i]) } } if o.Removed != nil { m.Removed = make([]uint64, len(o.Removed)) copy(m.Removed, o.Removed) } }