Add method signatures for host set operations (#291)

* Add method signatures for host set operations

* Rename ReplaceSetMembers to SetSetMembers
pull/297/head
Michael Gaffney 6 years ago committed by GitHub
parent 627a353ccb
commit 14dd7b49b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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")
}

Loading…
Cancel
Save