Add method signatures for host set operations (#291)
* Add method signatures for host set operations * Rename ReplaceSetMembers to SetSetMembers
This commit is contained in:
1 parent
627a353ccb
commit
14dd7b49b2
1 file changed
+23
@@ -220,3 +220,26 @@ func (r *Repository) DeleteSet(ctx context.Context, scopeId string, publicId str
|
||||
|
||||
return rowsDeleted, nil
|
||||
}
|
||||
|
||||
// AddSetMembers adds hostIds to setId in the repository. It returns a
|
||||
// slice of all host set members in setId. A host must belong to the same
|
||||
// catalog as the set to be added. The version must match the current
|
||||
// version of the setId in the repository.
|
||||
func (r *Repository) AddSetMembers(ctx context.Context, scopeId string, setId string, version uint32, hostIds []string, opt ...Option) ([]*HostSetMember, error) {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
// DeleteSetMembers deletes hostIds from setId in the repository. It
|
||||
// returns the number of hosts deleted from the set. The version must match
|
||||
// the current version of the setId in the repository.
|
||||
func (r *Repository) DeleteSetMembers(ctx context.Context, scopeId string, setId string, version uint32, hostIds []string, opt ...Option) (int, error) {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
// SetSetMembers replaces the hosts in setId with hostIds in the
|
||||
// repository. It returns a slice of all host set members in setId. A host
|
||||
// must belong to the same catalog as the set to be added. The version must
|
||||
// match the current version of the setId in the repository.
|
||||
func (r *Repository) SetSetMembers(ctx context.Context, scopeId string, setId string, version uint32, hostIds []string, opt ...Option) ([]*HostSetMember, error) {
|
||||
panic("not implemented")
|
||||
}
|
||||
Reference in new issue
Block a user