- Sort Score
- Result 10 results
- Languages All
Results 1041 - 1050 of 1,423 for Func (0.02 sec)
-
cmd/bucket-handlers.go
// -- If yes, check if the IP of entry matches local IP. // // This means entry is for this instance. // // -- If IP of the entry doesn't match, this means entry is // // for another instance. Log an error to console. func initFederatorBackend(buckets []string, objLayer ObjectLayer) { if len(buckets) == 0 { return } // Get buckets in the DNS dnsBuckets, err := globalDNSConfig.List()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 12 12:24:04 UTC 2024 - 63.4K bytes - Viewed (0) -
internal/disk/stat_bsd.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package disk import ( "errors" "fmt" "syscall" ) // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, _ bool) (info Info, err error) { s := syscall.Statfs_t{} err = syscall.Statfs(path, &s) if err != nil { return Info{}, err } reservedBlocks := s.Bfree - s.Bavail info = Info{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.7K bytes - Viewed (0) -
src/archive/zip/fuzz_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zip import ( "bytes" "io" "os" "path/filepath" "testing" ) func FuzzReader(f *testing.F) { testdata, err := os.ReadDir("testdata") if err != nil { f.Fatalf("failed to read testdata directory: %s", err) } for _, de := range testdata { if de.IsDir() { continue }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jan 13 18:06:33 UTC 2022 - 1.7K bytes - Viewed (0) -
cmd/metacache-marker.go
// Should not need to be updated unless a fundamental change is made to the marker format. const markerTagVersion = "v2" // parseMarker will parse a marker possibly encoded with encodeMarker func (o *listPathOptions) parseMarker() { s := o.Marker if !strings.Contains(s, "[minio_cache:"+markerTagVersion) { return } start := strings.LastIndex(s, "[") o.Marker = s[:start] end := strings.LastIndex(s, "]")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 2.5K bytes - Viewed (0) -
migrator.go
"gorm.io/gorm/schema" ) // Migrator returns migrator func (db *DB) Migrator() Migrator { tx := db.getInstance() // apply scopes to migrator for len(tx.Statement.scopes) > 0 { tx = tx.executeScopes() } return tx.Dialector.Migrator(tx.Session(&Session{})) } // AutoMigrate run auto migration for given models func (db *DB) AutoMigrate(dst ...interface{}) error {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 3.1K bytes - Viewed (0) -
internal/bucket/lifecycle/filter.go
default: return errUnknownXMLTag } } } return nil } // IsEmpty returns true if Filter is not specified in the XML func (f Filter) IsEmpty() bool { return !f.set } // Validate - validates the filter element func (f Filter) Validate() error { if f.IsEmpty() { return errXMLNotWellFormed } // A Filter must have exactly one of Prefix, Tag,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 04 17:01:26 UTC 2024 - 6.2K bytes - Viewed (0) -
logger/sql_test.go
"gorm.io/gorm/logger" ) type JSON json.RawMessage func (j JSON) Value() (driver.Value, error) { if len(j) == 0 { return nil, nil } return json.RawMessage(j).MarshalJSON() } type ExampleStruct struct { Name string Val string } func (s ExampleStruct) Value() (driver.Value, error) { return json.Marshal(s) } func format(v []byte, escaper string) string {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 8.4K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject_test.go
t.Fatal(err) } whs = append(whs, *wh) } for _, c := range cases { t.Run(c.name, func(t *testing.T) { checkResults := analyzeRunningWebhooks(whs, c.pod.Labels, c.ns.Labels) assert.Equal(t, c.expectedMessages, checkResults) }) } } var nsTestObject = func(namespace, injLabelValue, revLabelValue string) *corev1.Namespace { labels := map[string]string{} if injLabelValue != "" {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 10.6K bytes - Viewed (0) -
internal/config/config_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 config import ( "testing" ) func TestKVFields(t *testing.T) { tests := []struct { input string keys []string expectedFields map[string]struct{} }{ // No keys present { input: "",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 18 22:55:17 UTC 2022 - 4.2K bytes - Viewed (0) -
cni/pkg/nodeagent/informers_test.go
"istio.io/api/label" "istio.io/istio/cni/pkg/util" "istio.io/istio/pkg/config/constants" "istio.io/istio/pkg/kube" "istio.io/istio/pkg/monitoring/monitortest" "istio.io/istio/pkg/test/util/assert" ) func TestExistingPodAddedWhenNsLabeled(t *testing.T) { setupLogging() NodeName = "testnode" ctx, cancel := context.WithCancel(context.Background()) defer cancel() pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 22.1K bytes - Viewed (0)