_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c158400 | train | // HasGroupingPolicy determines whether a role inheritance rule exists. | {
"resource": ""
} | ||
c158401 | train | // EscapeAssertion escapes the dots in the assertion, because the expression evaluation doesn't support such variable names. | {
"resource": ""
} | ||
c158402 | train | // ArrayRemoveDuplicates removes any duplicated elements in a string array. | {
"resource": ""
} | ||
c158403 | train | // NewAdapterMock is the constructor for AdapterMock. | {
"resource": ""
} | ||
c158404 | train | // GetMockErr returns a mock error or nil | {
"resource": ""
} | ||
c158405 | train | // LoadPolicyLine loads a text line as a policy rule to model. | {
"resource": ""
} | ||
c158406 | train | // MergeEffects merges all matching results collected by the enforcer into a single decision. | {
"resource": ""
} | ||
c158407 | train | // addPolicy adds a rule to the current policy. | {
"resource": ""
} | ||
c158408 | train | // removePolicy removes a rule from the current policy. | {
"resource": ""
} | ||
c158409 | train | // removeFilteredPolicy removes rules based on field filters from the current policy. | {
"resource": ""
} | ||
c158410 | train | // BuildRoleLinks initializes the roles in RBAC. | {
"resource": ""
} | ||
c158411 | train | // PrintPolicy prints the policy to log. | {
"resource": ""
} | ||
c158412 | train | // ClearPolicy clears all current policy. | {
"resource": ""
} | ||
c158413 | train | // GetPolicy gets all rules in a policy. | {
"resource": ""
} | ||
c158414 | train | // GetFilteredPolicy gets rules based on field filters from a policy. | {
"resource": ""
} | ||
c158415 | train | // HasPolicy determines whether a model has the specified policy rule. | {
"resource": ""
} | ||
c158416 | train | // AddPolicy adds a policy rule to the model. | {
"resource": ""
} | ||
c158417 | train | // RemovePolicy removes a policy rule from the model. | {
"resource": ""
} | ||
c158418 | train | // GetValuesForFieldInPolicy gets all values for a field for all rules in a policy, duplicated values are removed. | {
"resource": ""
} | ||
c158419 | train | // AddDef adds an assertion to the model. | {
"resource": ""
} | ||
c158420 | train | // LoadModel loads the model from model CONF file. | {
"resource": ""
} | ||
c158421 | train | // LoadModelFromText loads the model from the text. | {
"resource": ""
} | ||
c158422 | train | // PrintModel prints the model to the log. | {
"resource": ""
} | ||
c158423 | train | // NewRoleManager is the constructor for creating an instance of the
// default RoleManager implementation. | {
"resource": ""
} | ||
c158424 | train | // GetRoles gets the roles that a subject inherits.
// domain is a prefix to the roles. | {
"resource": ""
} | ||
c158425 | train | // GetUsers gets the users that inherits a subject.
// domain is an unreferenced parameter here, may be used in other implementations. | {
"resource": ""
} | ||
c158426 | train | // PrintRoles prints all the roles to log. | {
"resource": ""
} | ||
c158427 | train | // AddFunction adds an expression function. | {
"resource": ""
} | ||
c158428 | train | // LoadFunctionMap loads an initial function map. | {
"resource": ""
} | ||
c158429 | train | // GetUsersForRole gets the users that has a role. | {
"resource": ""
} | ||
c158430 | train | // GetUsersForRoleInDomain gets the users that has a role inside a domain. Add by Gordon | {
"resource": ""
} | ||
c158431 | train | // NewSyncedEnforcerSafe creates a synchronized enforcer via file or DB. | {
"resource": ""
} | ||
c158432 | train | // RemoveFilteredPolicySafe calls RemoveFilteredPolicy in a safe way, returns error instead of causing panic. | {
"resource": ""
} | ||
c158433 | train | // NewFilteredAdapter is the constructor for FilteredAdapter. | {
"resource": ""
} | ||
c158434 | train | // LoadFilteredPolicy loads only policy rules that match the filter. | {
"resource": ""
} | ||
c158435 | train | // NewConfig create an empty configuration representation from file. | {
"resource": ""
} | ||
c158436 | train | // NewConfigFromText create an empty configuration representation from text. | {
"resource": ""
} | ||
c158437 | train | // Bool lookups up the value using the provided key and converts the value to a bool | {
"resource": ""
} | ||
c158438 | train | // Int lookups up the value using the provided key and converts the value to a int | {
"resource": ""
} | ||
c158439 | train | // Int64 lookups up the value using the provided key and converts the value to a int64 | {
"resource": ""
} | ||
c158440 | train | // Float64 lookups up the value using the provided key and converts the value to a float64 | {
"resource": ""
} | ||
c158441 | train | // Strings lookups up the value using the provided key and converts the value to an array of string
// by splitting the string by comma | {
"resource": ""
} | ||
c158442 | train | // Set sets the value for the specific key in the Config | {
"resource": ""
} | ||
c158443 | train | // NewEnforcerSafe calls NewEnforcer in a safe way, returns error instead of causing panic. | {
"resource": ""
} | ||
c158444 | train | // RemovePolicySafe calls RemovePolicy in a safe way, returns error instead of causing panic. | {
"resource": ""
} | ||
c158445 | train | // AddGroupingPolicySafe calls AddGroupingPolicy in a safe way, returns error instead of causing panic. | {
"resource": ""
} | ||
c158446 | train | // AddNamedGroupingPolicySafe calls AddNamedGroupingPolicy in a safe way, returns error instead of causing panic. | {
"resource": ""
} | ||
c158447 | train | // AddNamedPolicySafe calls AddNamedPolicy in a safe way, returns error instead of causing panic. | {
"resource": ""
} | ||
c158448 | train | // RemoveGroupingPolicySafe calls RemoveGroupingPolicy in a safe way, returns error instead of causing panic. | {
"resource": ""
} | ||
c158449 | train | // RemoveFilteredGroupingPolicySafe calls RemoveFilteredGroupingPolicy in a safe way, returns error instead of causing panic. | {
"resource": ""
} | ||
c158450 | train | // RemoveNamedGroupingPolicySafe calls RemoveNamedGroupingPolicy in a safe way, returns error instead of causing panic. | {
"resource": ""
} | ||
c158451 | train | // RemoveFilteredNamedGroupingPolicySafe calls RemoveFilteredNamedGroupingPolicy in a safe way, returns error instead of causing panic. | {
"resource": ""
} | ||
c158452 | train | // GetPermissionsForUser gets permissions for a user or role. | {
"resource": ""
} | ||
c158453 | train | // InitWithFile initializes an enforcer with a model file and a policy file. | {
"resource": ""
} | ||
c158454 | train | // InitWithAdapter initializes an enforcer with a database adapter. | {
"resource": ""
} | ||
c158455 | train | // InitWithModelAndAdapter initializes an enforcer with a model and a database adapter. | {
"resource": ""
} | ||
c158456 | train | // NewModel creates a model. | {
"resource": ""
} | ||
c158457 | train | // SetModel sets the current model. | {
"resource": ""
} | ||
c158458 | train | // IsFiltered returns true if the loaded policy has been filtered. | {
"resource": ""
} | ||
c158459 | train | // Close closes the DB. | {
"resource": ""
} | ||
c158460 | train | // Get gets data from the DB. | {
"resource": ""
} | ||
c158461 | train | // GetWithMeter gets data from the DB while tracking the hit rate. | {
"resource": ""
} | ||
c158462 | train | // Put puts data into the DB. | {
"resource": ""
} | ||
c158463 | train | // PutWithMeter gets data from the DB while tracking the hit rate. | {
"resource": ""
} | ||
c158464 | train | // openLevelDB opens or recovers a leveldb.DB with a passed-in storage.Storage
// as its underlying storage layer, and with the options specified. | {
"resource": ""
} | ||
c158465 | train | // openLevelDB opens or recovers a leveldb.DB with a passed-in storage.Storage
// as its underlying storage layer. | {
"resource": ""
} | ||
c158466 | train | // openVersionedLevelDB opens a level DB under a versioned path on the local filesystem
// under storageRoot. The path include dbFolderName and dbFilename. Note that
// dbFilename is actually created as a folder; it's just where raw LevelDb
// lives. | {
"resource": ""
} | ||
c158467 | train | // ClassifyStream takes a stream reader in, and returns a likely classification
// of that stream without consuming any data from it. It returns a reader that you
// should read from instead, in addition to the classification. If classification
// fails, there will be a `UnknownStreamError`, or additional EOF errors if... | {
"resource": ""
} | ||
c158468 | train | // markShutdown marks this state as having shutdown. Will return true the first
// time through, and false every other time. | {
"resource": ""
} | ||
c158469 | train | // getSessionToExpire should be called when holding the Identify3State Mutex. It looks in the
// expiration queue and pops off those sessions that are ready to be marked expired. | {
"resource": ""
} | ||
c158470 | train | // like strconv.ParseBool, but without 0 and 1. | {
"resource": ""
} | ||
c158471 | train | // NewCmdSimpleFSMove creates a new cli.Command. | {
"resource": ""
} | ||
c158472 | train | // Install empty implementation for unsupported platforms | {
"resource": ""
} | ||
c158473 | train | // Uninstall empty implementation for unsupported platforms | {
"resource": ""
} | ||
c158474 | train | // trackSyncPtrChangesInCreate makes sure the correct set of refs and
// unrefs, from the syncOps on the unmerged branch, makes it into the
// createOp for a new file. | {
"resource": ""
} | ||
c158475 | train | // collapse drops any actions that are made irrelevant by other
// actions in the list. It assumes that file-related actions have
// already been merged into their parent directory action lists. | {
"resource": ""
} | ||
c158476 | train | // There are two cases where we need to generate a new userEK. One is where
// we're rolling the userEK by itself, and we need to sign it with the current
// PUK. The other is where we're rolling the PUK, and we need to sign a new
// userEK with the new PUK to upload both together. This helper covers the
// steps commo... | {
"resource": ""
} | ||
c158477 | train | // Create a new userEK and upload it. Add our box to the local box store. | {
"resource": ""
} | ||
c158478 | train | // Returns nil if the user has never published a userEK. If the user has
// published a userEK, but has since rolled their PUK without publishing a new
// one, this function will also return nil and log a warning. This is a
// transitional thing, and eventually when all "reasonably up to date" clients
// in the wild ha... | {
"resource": ""
} | ||
c158479 | train | // Returns nil if the user has never published a userEK. If the user has
// published a userEK, but has since rolled their PUK without publishing a new
// one, this function will return wrongKID. This allows clients to chose the
// correct generation number but not include the statement when generating a
// new userEK. | {
"resource": ""
} | ||
c158480 | train | // GetEphemeralPublicKeyInfoV2 encapsulates all the ugly logic needed to
// deal with the "negative hack" from
// RootMetadataV2.UpdateKeyGeneration. | {
"resource": ""
} | ||
c158481 | train | // IsWriter returns true if the given user device is in the writer set. | {
"resource": ""
} | ||
c158482 | train | // IsWriter returns whether or not the user+device is an authorized writer
// for the latest generation. | {
"resource": ""
} | ||
c158483 | train | // ToTLFWriterKeyBundleV3 converts a TLFWriterKeyGenerationsV2 to a TLFWriterKeyBundleV3. | {
"resource": ""
} | ||
c158484 | train | // IsReader returns whether or not the user+device is an authorized reader
// for the latest generation. | {
"resource": ""
} | ||
c158485 | train | // ToTLFReaderKeyBundleV3 converts a TLFReaderKeyGenerationsV2 to a TLFReaderkeyBundleV3. | {
"resource": ""
} | ||
c158486 | train | // NewPaperKey creates a PaperKey engine. | {
"resource": ""
} | ||
c158487 | train | // Get a PTK seed and verify against the sigchain that is the correct key. | {
"resource": ""
} | ||
c158488 | train | // EncryptionKey returns the derived NaclSigningKeyPair from the team's shared secret. | {
"resource": ""
} | ||
c158489 | train | // EncryptionKey returns the derived NaclDHKeyPair from the team's shared secret. | {
"resource": ""
} | ||
c158490 | train | // SharedSecretBoxes creates the PerTeamSharedSecretBoxes for recipients with the
// existing team shared secret. | {
"resource": ""
} | ||
c158491 | train | // RotateSharedSecretBoxes creates a new shared secret for the team and the
// required PerTeamKey section. | {
"resource": ""
} | ||
c158492 | train | // Get implements the DirtyBlockCache interface for
// DirtyBlockCacheDisk. | {
"resource": ""
} | ||
c158493 | train | // Put implements the DirtyBlockCache interface for
// DirtyBlockCacheDisk. Note than any modifications made to `block`
// after the `Put` will require another `Put` call, in order for them
// to be reflected in the next `Get` call for that block pointer. | {
"resource": ""
} | ||
c158494 | train | // List the subteams of c.Team | {
"resource": ""
} | ||
c158495 | train | // NewProveHandler makes a new ProveHandler object from an RPC transport. | {
"resource": ""
} | ||
c158496 | train | // Prove handles the `keybase.1.startProof` RPC. | {
"resource": ""
} | ||
c158497 | train | // Prove handles the `keybase.1.checkProof` RPC. | {
"resource": ""
} | ||
c158498 | train | // Prove handles the `keybase.1.listProofServices` RPC. | {
"resource": ""
} | ||
c158499 | train | // ConflictRename implements the ConflictRename interface for
// TimeAndWriterConflictRenamer. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.