@@ -82,7 +82,7 @@ func (b *Builder) Policies(ps ...*PolicyBuilder) (r *Builder) {
}
func (b *Builder) createPolicy(p *PolicyBuilder) {
- p.SetIDIfEmpty()
+ p.setIDIfEmpty()
err := b.ladon.Manager.Create(p.policy)
if err != nil {
panic(err)
@@ -61,7 +61,7 @@ func (b *PolicyBuilder) Given(conditions Conditions) (r *PolicyBuilder) {
return b
-func (b *PolicyBuilder) SetIDIfEmpty() {
+func (b *PolicyBuilder) setIDIfEmpty() {
if b.policy.ID != "" {
return