SYMBOL INDEX (171 symbols across 15 files) FILE: cmd/kube-mgmt/flag.go type groupVersionKind (line 13) | type groupVersionKind struct method String (line 21) | func (gvk groupVersionKind) String() string { method Parse (line 28) | func (gvk *groupVersionKind) Parse(value string) error { type gvkFlag (line 50) | type gvkFlag method String (line 52) | func (f *gvkFlag) String() string { method Set (line 56) | func (f *gvkFlag) Set(value string) error { method Type (line 65) | func (f *gvkFlag) Type() string { FILE: cmd/kube-mgmt/flag_test.go function TestFlagParsing (line 12) | func TestFlagParsing(t *testing.T) { function TestFlagString (line 48) | func TestFlagString(t *testing.T) { function TestPolicyFlags (line 58) | func TestPolicyFlags(t *testing.T) { FILE: cmd/kube-mgmt/main.go type params (line 34) | type params struct function main (line 59) | func main() { function run (line 131) | func run(params *params) { function loadRESTConfig (line 275) | func loadRESTConfig(path string) (*rest.Config, error) { function getResourceType (line 282) | func getResourceType(gvk groupVersionKind, namespaced bool) types.Resour... FILE: internal/expect/client.go type Client (line 11) | type Client struct method Prefix (line 18) | func (f *Client) Prefix(path string) opa_client.Data { method PatchData (line 24) | func (f *Client) PatchData(path string, op string, value *interface{})... method PutData (line 38) | func (f *Client) PutData(path string, value interface{}) (err error) { method PostData (line 49) | func (*Client) PostData(string, interface{}) (json.RawMessage, error) { method InsertPolicy (line 54) | func (f *Client) InsertPolicy(path string, value []byte) (err error) { method DeletePolicy (line 63) | func (f *Client) DeletePolicy(path string) (err error) { FILE: internal/expect/request.go type request (line 9) | type request constant patchRequest (line 12) | patchRequest request = "PatchData" constant putRequest (line 13) | putRequest request = "PutData" constant insertPolicyRequest (line 14) | insertPolicyRequest request = "InsertPolicy" constant deletePolicyRequest (line 15) | deletePolicyRequest request = "DeletePolicy" constant noRequest (line 16) | noRequest request = "Nothing" type Request (line 20) | type Request struct method Equals (line 29) | func (expected Request) Equals(actual Request) bool { method String (line 37) | func (r Request) String() string { method Do (line 110) | func (req Request) Do(action Action) Step { method DoError (line 118) | func (req Request) DoError(err error) Step { method End (line 128) | func (req Request) End() Step { function optional (line 44) | func optional(expected ...[]byte) []byte { function PutData (line 53) | func PutData(path string, expected ...[]byte) Request { function PatchData (line 63) | func PatchData(path string, op string, expected ...[]byte) Request { function InsertPolicy (line 74) | func InsertPolicy(path string, expected ...[]byte) Request { function DeletePolicy (line 84) | func DeletePolicy(path string) Request { function Nothing (line 92) | func Nothing(duration time.Duration) Request { type Action (line 101) | type Action type Step (line 104) | type Step struct FILE: internal/expect/script.go type Script (line 18) | type Script method String (line 21) | func (s Script) String() string { method strings (line 156) | func (s Script) strings(sep string) string { function Play (line 28) | func Play(t *testing.T, script Script, show func(ctx context.Context, cl... function MustMarshal (line 100) | func MustMarshal(t *testing.T, obj interface{}) []byte { function MustUnmarshal (line 110) | func MustUnmarshal(t *testing.T, data []byte) interface{} { function MustRoundTrip (line 131) | func MustRoundTrip(t *testing.T, obj interface{}) []byte { function MustEqual (line 136) | func MustEqual(t *testing.T, result, expected interface{}) { function MustKey (line 145) | func MustKey(t *testing.T, obj runtime.Object) string { FILE: pkg/configmap/configmap.go constant defaultRetries (line 34) | defaultRetries = 2 constant statusAnnotationKey (line 35) | statusAnnotationKey = "openpolicyagent.org/kube-mgmt-status" constant retriesAnnotationKey (line 36) | retriesAnnotationKey = "openpolicyagent.org/kube-mgmt-retries" constant resyncPeriod (line 40) | resyncPeriod = time.Second * 60 constant syncResetBackoffMin (line 41) | syncResetBackoffMin = time.Second constant syncResetBackoffMax (line 42) | syncResetBackoffMax = time.Second * 30 function CustomLabel (line 46) | func CustomLabel(key, value string) error { function DefaultConfigMapMatcher (line 58) | func DefaultConfigMapMatcher(namespaces []string, enablePolicies, enable... function matchesLabel (line 77) | func matchesLabel(cm *v1.ConfigMap, labelKey, labelValue string) bool { function matchesNamespace (line 81) | func matchesNamespace(cm *v1.ConfigMap, namespaces []string) bool { type Sync (line 91) | type Sync struct method Run (line 127) | func (s *Sync) Run(namespaces []string) (chan struct{}, error) { method add (line 163) | func (s *Sync) add(obj interface{}) { method update (line 171) | func (s *Sync) update(oldObj, obj interface{}) { method delete (line 192) | func (s *Sync) delete(obj interface{}) { method syncAdd (line 203) | func (s *Sync) syncAdd(cm *v1.ConfigMap, isPolicy bool) { method syncRemove (line 263) | func (s *Sync) syncRemove(cm *v1.ConfigMap, isPolicy bool) { method setAnnotations (line 281) | func (s *Sync) setAnnotations(cm *v1.ConfigMap, st status, retries int) { method syncReset (line 306) | func (s *Sync) syncReset(id string) { function New (line 99) | func New(kubeconfig *rest.Config, opa opa.Client, matcher func(*v1.Confi... function fingerprint (line 324) | func fingerprint(cm *v1.ConfigMap) uint64 { type errList (line 333) | type errList method MarshalJSON (line 347) | func (m errList) MarshalJSON() ([]byte, error) { method Error (line 367) | func (m errList) Error() string { type status (line 341) | type status struct FILE: pkg/data/generic.go constant backoffMax (line 33) | backoffMax = time.Second * 30 constant backoffMin (line 34) | backoffMin = time.Second constant jitterFactor (line 35) | jitterFactor = 1.2 constant FieldMeta (line 36) | FieldMeta = "metadata.namespace!=" type GenericSync (line 40) | type GenericSync struct method Run (line 99) | func (s *GenericSync) Run() (chan struct{}, error) { method RunContext (line 118) | func (s *GenericSync) RunContext(ctx context.Context) error { method Ready (line 133) | func (s *GenericSync) Ready() bool { method setup (line 140) | func (s *GenericSync) setup(ctx context.Context) (cache.Store, workque... method ignoreNs (line 173) | func (s *GenericSync) ignoreNs() string { method loop (line 241) | func (s *GenericSync) loop(store cache.Store, queue workqueue.TypedDel... method processNext (line 272) | func (s *GenericSync) processNext(store cache.Store, path string, sync... method syncAll (line 312) | func (s *GenericSync) syncAll(objs []interface{}) error { function New (line 54) | func New(kubeconfig *rest.Config, opa opa_client.Data, ns types.Resource... type Option (line 62) | type Option function NewFromInterface (line 65) | func NewFromInterface(client dynamic.Interface, opa opa_client.Data, ns ... function WithIgnoreNamespaces (line 82) | func WithIgnoreNamespaces(ignoreNamespaces []string) Option { function WithBackoff (line 89) | func WithBackoff(min, max time.Duration, jitterFactor float64) Option { type resourceEventQueue (line 188) | type resourceEventQueue struct method OnAdd (line 193) | func (q resourceEventQueue) OnAdd(obj interface{}, isInInitialList boo... method resourceVersionMatch (line 202) | func (q resourceEventQueue) resourceVersionMatch(oldObj, newObj interf... method OnUpdate (line 220) | func (q resourceEventQueue) OnUpdate(oldObj, newObj interface{}) { method OnDelete (line 227) | func (q resourceEventQueue) OnDelete(obj interface{}) { constant initPath (line 236) | initPath = "" function generateSyncPayload (line 323) | func generateSyncPayload(objs []interface{}, namespaced bool) (map[strin... FILE: pkg/data/generic_test.go type testCase (line 22) | type testCase struct method testGenerateSyncPayload (line 603) | func (tc *testCase) testGenerateSyncPayload(t *testing.T, expected []b... method Play (line 619) | func (tc *testCase) Play(t *testing.T, client dynamicClient, play expe... method testLoad (line 634) | func (tc *testCase) testLoad(t *testing.T, expected []byte) { method testAdd (line 645) | func (tc *testCase) testAdd(t *testing.T) { method testDelete (line 656) | func (tc *testCase) testDelete(t *testing.T) { method testUpdate (line 667) | func (tc *testCase) testUpdate(t *testing.T) { method testRetryLoad (line 682) | func (tc *testCase) testRetryLoad(t *testing.T, expected []byte) { method testRetryAdd (line 693) | func (tc *testCase) testRetryAdd(t *testing.T) { method testRetryUpdate (line 705) | func (tc *testCase) testRetryUpdate(t *testing.T) { method testRetryDelete (line 723) | func (tc *testCase) testRetryDelete(t *testing.T) { method testUpdateSameVersion (line 737) | func (tc *testCase) testUpdateSameVersion(t *testing.T) { method testUpdateDifferentVersion (line 751) | func (tc *testCase) testUpdateDifferentVersion(t *testing.T) { function newFakeDynamicClient (line 31) | func newFakeDynamicClient(t *testing.T, objs ...runtime.Object) dynamicC... function TestGenericSync (line 39) | func TestGenericSync(t *testing.T) { function TestEventQueue (line 533) | func TestEventQueue(t *testing.T) { method MustCreate (line 767) | func (f dynamicClient) MustCreate(t *testing.T, resourceType types.Resou... method MustRemove (line 779) | func (f dynamicClient) MustRemove(t *testing.T, resourceType types.Resou... method MustUpdate (line 791) | func (f dynamicClient) MustUpdate(t *testing.T, resourceType types.Resou... function mustUnstructure (line 803) | func mustUnstructure(t *testing.T, obj runtime.Object) *unstructured.Uns... function mustAccess (line 813) | func mustAccess(t *testing.T, obj runtime.Object) metav1.Object { function TestGenericSync_ignoreNs (line 821) | func TestGenericSync_ignoreNs(t *testing.T) { FILE: pkg/data/types.go type resourceInterface (line 11) | type resourceInterface interface type dynamicClient (line 16) | type dynamicClient struct method ResourceFor (line 21) | func (f dynamicClient) ResourceFor(resourceType types.ResourceType, na... FILE: pkg/dynamicdata/dynamicdata.go type Sync (line 43) | type Sync struct method Run (line 78) | func (s *Sync) Run(ctx context.Context) error { method Ready (line 103) | func (s *Sync) Ready() bool { method loop (line 119) | func (s *Sync) loop(ctx context.Context, a *analyzer, rts map[string]t... method processAnalysisResult (line 132) | func (s *Sync) processAnalysisResult(ctx context.Context, result analy... function New (line 56) | func New(configFile string, analysisEntrypoint string, opaURL, opaAuth s... function resolveResourceTypes (line 172) | func resolveResourceTypes(config *rest.Config) (map[string]types.Resourc... type cancellableSync (line 211) | type cancellableSync struct type analyzer (line 216) | type analyzer struct method Stop (line 272) | func (a *analyzer) Stop(ctx context.Context) error { method trigger (line 278) | func (a *analyzer) trigger(_ context.Context, txn storage.Transaction,... method loop (line 287) | func (a *analyzer) loop(ctx context.Context) { type analysisResult (line 225) | type analysisResult struct function newAnalyzer (line 229) | func newAnalyzer(ctx context.Context, bs []byte, replicatePath, analysis... type ref (line 268) | type ref struct function analyzeRefs (line 308) | func analyzeRefs(c *ast.Compiler, entrypoints []ast.Ref, prefix ast.Ref,... FILE: pkg/dynamicdata/dynamicdata_test.go function TestAnalyzer (line 14) | func TestAnalyzer(t *testing.T) { function TestAnalyzerNoDeps (line 57) | func TestAnalyzerNoDeps(t *testing.T) { FILE: pkg/opa/opa.go type Error (line 17) | type Error struct method Error (line 23) | func (err *Error) Error() string { type Undefined (line 28) | type Undefined struct method Error (line 30) | func (Undefined) Error() string { function IsUndefinedErr (line 36) | func IsUndefinedErr(err error) bool { type Client (line 42) | type Client interface type Policies (line 48) | type Policies interface type Data (line 54) | type Data interface function New (line 62) | func New(url string, auth string) Client { type httpClient (line 66) | type httpClient struct method Prefix (line 72) | func (c *httpClient) Prefix(path string) Data { method PatchData (line 78) | func (c *httpClient) PatchData(path string, op string, value *interfac... method PutData (line 90) | func (c *httpClient) PutData(path string, value interface{}) error { method PostData (line 103) | func (c *httpClient) PostData(path string, value interface{}) (json.Ra... method InsertPolicy (line 133) | func (c *httpClient) InsertPolicy(id string, bs []byte) error { method DeletePolicy (line 143) | func (c *httpClient) DeletePolicy(id string) error { method makePatch (line 152) | func (c *httpClient) makePatch(path, op string, value *interface{}) (i... method handleErrors (line 171) | func (c *httpClient) handleErrors(resp *http.Response) error { method do (line 183) | func (c *httpClient) do(verb, path string, body io.Reader) (*http.Resp... function slashPath (line 197) | func slashPath(paths ...string) string { function makePath (line 201) | func makePath(join string, paths ...string) string { function joinPaths (line 205) | func joinPaths(join string, paths ...string) string { FILE: pkg/opa/opa_test.go function TestHTTPClientMakePatch (line 14) | func TestHTTPClientMakePatch(t *testing.T) { function mustMakePatch (line 93) | func mustMakePatch(client *httpClient, path, op string, value *interface... function mustUnmarshalJSON (line 103) | func mustUnmarshalJSON(r io.Reader) interface{} { FILE: pkg/types/types.go type ResourceType (line 11) | type ResourceType struct method String (line 19) | func (t ResourceType) String() string {