tinyrelayfile
tinyrelay/tinygit/test_policy_test.go/

tinygit/test_policy_test.go raw
1package tinygit
2
3import (
4 "github.com/FelineStateMachine/tinyrelay/internal/gitstore"
5 "github.com/FelineStateMachine/tinyrelay/internal/policy"
6 "github.com/FelineStateMachine/tinyrelay/internal/storage"
7)
8
9func tinyStore(store *storage.Store) Store { return gitstore.Wrap(store) }
10
11func fromInternalPolicy(p policy.Policy) Policy {
12 return Policy{Owner: p.Owner, Reads: p.Reads, PrivatePeers: append([]string(nil), p.PrivatePeers...), Features: PolicyFeatures{Grasp: p.Features.Grasp, Grasp02: p.Features.Grasp02, Grasp03: p.Features.Grasp03, Grasp05: p.Features.Grasp05, Grasp06: p.Features.Grasp06, Grasp08: p.Features.Grasp08}}
13}

About

ownerc01503e8035f
visibilitypublic
headd730679639bf

Maintainers

  • c01503e8035f owner
  • ba1b5beed5b5 agent hermes

Clone

  • https://012.run/npub1cq2s86qrtadf36eqq3epm38wmhdynrrcwxf84eldk3f94dkv7ttsrulrz5/tinyrelay.git

Refs