mirror of https://github.com/docker/buildx.git
16 lines
344 B
Go
16 lines
344 B
Go
package buildflags
|
|
|
|
import "github.com/moby/buildkit/util/entitlements"
|
|
|
|
func ParseEntitlements(in []string) ([]entitlements.Entitlement, error) {
|
|
out := make([]entitlements.Entitlement, 0, len(in))
|
|
for _, v := range in {
|
|
e, err := entitlements.Parse(v)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
out = append(out, e)
|
|
}
|
|
return out, nil
|
|
}
|