@@ -38,19 +38,19 @@ func (o *simpleAccessController) Address() address.Address {
38
38
return nil
39
39
}
40
40
41
- func (o * simpleAccessController ) Grant (ctx context.Context , capability string , keyID string ) error {
41
+ func (o * simpleAccessController ) Grant (ctx context.Context , capability string , keyID string ) error { //nolint:all
42
42
return nil
43
43
}
44
44
45
- func (o * simpleAccessController ) Revoke (ctx context.Context , capability string , keyID string ) error {
45
+ func (o * simpleAccessController ) Revoke (ctx context.Context , capability string , keyID string ) error { //nolint:all
46
46
return nil
47
47
}
48
48
49
- func (o * simpleAccessController ) Load (ctx context.Context , address string ) error {
49
+ func (o * simpleAccessController ) Load (ctx context.Context , address string ) error { //nolint:all
50
50
return nil
51
51
}
52
52
53
- func (o * simpleAccessController ) Save (ctx context.Context ) (accesscontroller.ManifestParams , error ) {
53
+ func (o * simpleAccessController ) Save (_ context.Context ) (accesscontroller.ManifestParams , error ) {
54
54
return accesscontroller .NewManifestParams (cid.Cid {}, true , "simple" ), nil
55
55
}
56
56
@@ -66,7 +66,7 @@ func (o *simpleAccessController) GetAuthorizedByRole(role string) ([]string, err
66
66
return o .allowedKeys [role ], nil
67
67
}
68
68
69
- func (o * simpleAccessController ) CanAppend (e logac.LogEntry , p identityprovider.Interface , additionalContext accesscontroller.CanAppendAdditionalContext ) error {
69
+ func (o * simpleAccessController ) CanAppend (e logac.LogEntry , _ identityprovider.Interface , _ accesscontroller.CanAppendAdditionalContext ) error {
70
70
for _ , id := range o .allowedKeys ["write" ] {
71
71
if e .GetIdentity ().ID == id || id == "*" {
72
72
return nil
0 commit comments