Skip to content

Commit 8d6a25c

Browse files
add comment for pf set methods
1 parent 6259947 commit 8d6a25c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

pkg/pf/proto/attribute.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,8 @@ func (a attribute) StateFunc() shim.SchemaStateFunc { return nil }
104104
func (a attribute) ConflictsWith() []string { return nil }
105105
func (a attribute) ExactlyOneOf() []string { return nil }
106106

107-
func (a attribute) SetElement(config interface{}) (interface{}, error) {
108-
panic("UNIMPLIMENTED")
109-
}
110-
111-
func (a attribute) SetHash(v interface{}) int { panic("UNIMPLIMENTED") }
112-
func (a attribute) SetElementHash(v interface{}) (int, error) { panic("UNIMPLIMENTED") }
113-
func (a attribute) NewSet(v []interface{}) interface{} { panic("UNIMPLIMENTED") }
107+
// Set functions are unused for PF - could be needed if PF opts into detailed diffs
108+
func (a attribute) SetElement(config interface{}) (interface{}, error) { panic("UNIMPLIMENTED") }
109+
func (a attribute) SetHash(v interface{}) int { panic("UNIMPLIMENTED") }
110+
func (a attribute) SetElementHash(v interface{}) (int, error) { panic("UNIMPLIMENTED") }
111+
func (a attribute) NewSet(v []interface{}) interface{} { panic("UNIMPLIMENTED") }

0 commit comments

Comments
 (0)