ValidContainerArch checks if the target container arch is valid
(arch latest.ContainerArchitecture)
| 31 | |
| 32 | // ValidContainerArch checks if the target container arch is valid |
| 33 | func ValidContainerArch(arch latest.ContainerArchitecture) bool { |
| 34 | return arch == "" || |
| 35 | arch == latest.ContainerArchitectureAmd64 || |
| 36 | arch == latest.ContainerArchitectureArm64 |
| 37 | } |
| 38 | |
| 39 | func Validate(config *latest.Config) error { |
| 40 | if config.Name == "" { |
no outgoing calls
no test coverage detected