// createFSGroupStrategy creates a new fsgroup strategy
createFSGroupStrategy creates a new fsgroup strategy
// createFSGroupStrategy creates a new fsgroup strategy
func createFSGroupStrategy(opts *policy.FSGroupStrategyOptions) (group.GroupStrategy, error) {
	switch opts.Rule {
	case policy.FSGroupStrategyRunAsAny:
		return group.NewRunAsAny()
	case policy.FSGroupStrategyMustRunAs:
		return group.NewMustRunAs(opts.Ranges)
	default:
		return nil, fmt.Errorf("Unrecognized FSGroup strategy type %s", opts.Rule)
	}
}
func createFSGroupStrategy ( opts * policy . FSGroupStrategyOptions ) ( group . GroupStrategy , error ) { switch opts . Rule { case policy . FSGroupStrategyRunAsAny : return group . NewRunAsAny ( ) case policy . FSGroupStrategyMustRunAs : return group . NewMustRunAs ( opts . Ranges ) default : return nil , fmt . Errorf ( " " , opts . Rule ) } }
createFSGroupStrategy creates a new fsgroup strategy
createFSGroupStrategy creates a new fsgroup strategy