4 "encoding/json"
5 "errors"
6 "fmt"
7 "io/ioutil" 8 "os"
9 "os/user"
10 "path/filepath"
5
6import (
7 "fmt"
8 "io/ioutil" 9 "net"
10 "os"
11 "os/exec"
142 memoryResources *specs.LinuxMemory
143 pidLimit *specs.LinuxPids
144 )
145 shares := limits.CPU.LimitInShares146 if limits.CPU.Weight > 0 {
147 shares = limits.CPU.Weight
148 }
6 "encoding/json"
7 "errors"
8 "fmt"
9 "io/ioutil" 10 "path/filepath"
11 "strings"
12
3import (
4 "bytes"
5 "encoding/json"
6 "io/ioutil" 7 "net/http"
8
9 "sigs.k8s.io/yaml"
Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.