(ips []string)
| 666 | } |
| 667 | |
| 668 | func toNetipAddrSlice(ips []string) []netip.Addr { |
| 669 | if len(ips) == 0 { |
| 670 | return nil |
| 671 | } |
| 672 | netIPs := make([]netip.Addr, 0, len(ips)) |
| 673 | for _, ip := range ips { |
| 674 | addr, err := netip.ParseAddr(ip) |
| 675 | if err != nil { |
| 676 | continue |
| 677 | } |
| 678 | netIPs = append(netIPs, addr) |
| 679 | } |
| 680 | return netIPs |
| 681 | } |
| 682 | |
| 683 | func convertCredentialSpec(namespace Namespace, spec composetypes.CredentialSpecConfig, refs []*swarm.ConfigReference) (*swarm.CredentialSpec, error) { |
| 684 | var o []string |
no outgoing calls
searching dependent graphs…