mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
61a8a80514
Related to https://github.com/fleetdm/fleet/issues/8961 Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
20 lines
545 B
Go
20 lines
545 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/fleetdm/fleet/v4/server/fleet"
|
|
)
|
|
|
|
func (svc *Service) ListDevicePolicies(ctx context.Context, host *fleet.Host) ([]*fleet.HostPolicy, error) {
|
|
return svc.ds.ListPoliciesForHost(ctx, host)
|
|
}
|
|
|
|
func (svc *Service) FailingPoliciesCount(ctx context.Context, host *fleet.Host) (uint, error) {
|
|
return svc.ds.FailingPoliciesCount(ctx, host)
|
|
}
|
|
|
|
func (svc *Service) RequestEncryptionKeyRotation(ctx context.Context, hostID uint) error {
|
|
return svc.ds.SetDiskEncryptionResetStatus(ctx, hostID, true)
|
|
}
|