- Sort Score
- Result 10 results
- Languages All
Results 1021 - 1030 of 1,423 for Func (0.06 sec)
-
cmd/bucket-policy-handlers.go
bucketPolicyConfig = "policy.json" ) // PutBucketPolicyHandler - This HTTP handler stores given bucket policy configuration as per // https://docs.aws.amazon.com/AmazonS3/latest/dev/access-policy-language-overview.html func (api objectAPIHandlers) PutBucketPolicyHandler(w http.ResponseWriter, r *http.Request) { ctx := newContext(r, w, "PutBucketPolicy") defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r)) objAPI := api.ObjectAPI()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6.1K bytes - Viewed (0) -
cmd/signature-v4-utils.go
} return cred, owner, ErrNone } // sumHMAC calculate hmac between two input byte array. func sumHMAC(key []byte, data []byte) []byte { hash := hmac.New(sha256.New, key) hash.Write(data) return hash.Sum(nil) } // extractSignedHeaders extract signed headers from Authorization header func extractSignedHeaders(signedHeaders []string, r *http.Request) (http.Header, APIErrorCode) { reqHeaders := r.Header
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 9.1K bytes - Viewed (0) -
istioctl/pkg/tag/generate_test.go
assertFunc(t, wh.Webhooks, defaultWh.Webhooks) } func TestGenerateOptions(t *testing.T) { // Test generate option 'true', should not modify webhooks testGenerateOption(t, true, func(t *testing.T, actual, expected []admitv1.MutatingWebhook) { assert.Equal(t, actual, expected) }) // Test generate option 'false', should modify webhooks testGenerateOption(t, false, func(t *testing.T, actual, expected []admitv1.MutatingWebhook) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 12.1K bytes - Viewed (0) -
cmd/metacache.go
status scanStatus `msg:"stat"` recursive bool `msg:"rec"` dataVersion uint8 `msg:"v"` } func (m *metacache) finished() bool { return !m.ended.IsZero() } // worthKeeping indicates if the cache by itself is worth keeping. func (m *metacache) worthKeeping() bool { if m == nil { return false } cache := m switch {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 16:23:16 UTC 2024 - 6K bytes - Viewed (0) -
internal/s3select/simdj/reader_amd64_test.go
return js } var testCases = []struct { name string array bool }{ { name: "parking-citations-10", }, } func TestNDJSON(t *testing.T) { if !simdjson.SupportedCPU() { t.Skip("Unsupported cpu") } for _, tt := range testCases { t.Run(tt.name, func(t *testing.T) { ref := loadCompressed(t, tt.name) var err error dst := make(chan simdjson.Object, 100)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.9K bytes - Viewed (0) -
internal/config/bool-flag_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package config import ( "testing" ) // Test BoolFlag.String() func TestBoolFlagString(t *testing.T) { var bf BoolFlag testCases := []struct { flag BoolFlag expectedResult string }{ {bf, "off"}, {BoolFlag(true), "on"}, {BoolFlag(false), "off"}, }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0) -
internal/config/lambda/event/targetid_test.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package event import ( "reflect" "testing" ) func TestTargetDString(t *testing.T) { testCases := []struct { tid TargetID expectedResult string }{ {TargetID{}, ":"}, {TargetID{"1", "webhook"}, "1:webhook"},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 3.5K bytes - Viewed (0) -
internal/event/targetid_test.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package event import ( "reflect" "testing" ) func TestTargetDString(t *testing.T) { testCases := []struct { tid TargetID expectedResult string }{ {TargetID{}, ":"}, {TargetID{"1", "webhook"}, "1:webhook"},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0) -
cmd/common-main_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.7K bytes - Viewed (0) -
cmd/xl-storage-free-version.go
return xlMetaV2Version{}, false } // FreeVersion returns true if j represents a free-version, false otherwise. func (j xlMetaV2DeleteMarker) FreeVersion() bool { _, ok := j.MetaSys[ReservedMetadataPrefixLower+freeVersion] return ok } // FreeVersion returns true if j represents a free-version, false otherwise. func (j xlMetaV2Version) FreeVersion() bool { if j.Type == DeleteType { return j.DeleteMarker.FreeVersion() }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Mar 02 05:11:03 UTC 2024 - 3.4K bytes - Viewed (0)