func (a *EmbeddedPolicyAdapter) LoadPolicy(model model.Model) error {
	buf := bufio.NewReader(bytes.NewReader(permissionsPolicy))
	for {
		line, err := buf.ReadString('\n')
		line = strings.TrimSpace(line)
		persist.LoadPolicyLine(line, model)
		if err != nil {
			if err == io.EOF {
				return nil
			}
			return err
		}
	}
}
// LoadPolicy loads all policy rules from the storage.
LoadPolicy loads all policy rules from the storage.
// LoadPolicy loads all policy rules from the storage .
func (a *EmbeddedPolicyAdapter) LoadPolicy(model model.Model) error {
	buf := bufio.NewReader(bytes.NewReader(permissionsPolicy))
	for {
		line, err := buf.ReadString('\n')
		line = strings.TrimSpace(line)
		persist.LoadPolicyLine(line, model)
		if err != nil {
			if err == io.EOF {
				return nil
			}
			return err
		}
	}
}
func ( a * EmbeddedPolicyAdapter ) LoadPolicy ( model model . Model ) error { buf := bufio . NewReader ( bytes . NewReader ( permissionsPolicy ) ) for { line , err := buf . ReadString ( '\n' ) line = strings . TrimSpace ( line ) persist . LoadPolicyLine ( line , model ) if err != nil { if err == io . EOF { return nil } return err } } }
LoadPolicy loads all policy rules from the storage.
LoadPolicy loads all policy rules from the storage .