- Sort Score
- Result 10 results
- Languages All
Results 531 - 540 of 1,250 for struct (0.08 sec)
-
internal/s3select/csv/recordtransform.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package csv import ( "bytes" "io" ) // recordTransform will convert records to always have newline records. type recordTransform struct { reader io.Reader // recordDelimiter can be up to 2 characters. recordDelimiter []byte oneByte []byte useOneByte bool } func (rr *recordTransform) Read(p []byte) (n int, err error) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 2.1K bytes - Viewed (0) -
internal/disk/stat_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package disk import ( "os" "reflect" "testing" ) func TestReadDriveStats(t *testing.T) { testCases := []struct { stat string expectedIOStats IOStats expectErr bool }{ {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 3.5K bytes - Viewed (0) -
clause/values_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestValues(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{ clause.Insert{}, clause.Values{ Columns: []clause.Column{{Name: "name"}, {Name: "age"}}, Values: [][]interface{}{{"jinzhu", 18}, {"josh", 1}}, }, },
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 691 bytes - Viewed (0) -
cmd/format-erasure_test.go
// Tests check format xl value. func TestCheckFormatErasureValue(t *testing.T) { testCases := []struct { format *formatErasureV3 success bool }{ // Invalid Erasure format version "2". { &formatErasureV3{ formatMetaV1: formatMetaV1{ Version: "2", Format: "Erasure", }, Erasure: struct { Version string `json:"version"` This string `json:"this"`
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Apr 15 08:25:46 UTC 2024 - 12.9K bytes - Viewed (0) -
istioctl/pkg/multixds/gather.go
// Get the pods with limit = 500. kubeClientGetPodLimit = 500 ) type ControlPlaneNotFoundError struct { Namespace string } func (c ControlPlaneNotFoundError) Error() string { return fmt.Sprintf("no running Istio pods in %q", c.Namespace) } var _ error = ControlPlaneNotFoundError{} type Options struct { // MessageWriter is a writer for displaying messages to users. MessageWriter io.Writer
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 13.6K bytes - Viewed (0) -
istioctl/pkg/describe/describe.go
return inject.FindSidecar(pod) != nil } // Extract value of key out of Struct, but always return a Struct, even if the value isn't one func (v *myProtoValue) keyAsStruct(key string) *myProtoValue { if v == nil || v.GetStructValue() == nil { return asMyProtoValue(&structpb.Struct{Fields: make(map[string]*structpb.Value)}) } return &myProtoValue{v.GetStructValue().Fields[key]} }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 50.6K bytes - Viewed (0) -
internal/lock/lock_test.go
if err != nil { t.Errorf("err = %v, want %v", err, nil) } // blocking on locked file locked := make(chan struct{}, 1) go func() { bl, blerr := LockedOpenFile(f.Name(), os.O_WRONLY, 0o600) if blerr != nil { t.Error(blerr) return } locked <- struct{}{} if blerr = bl.Close(); blerr != nil { t.Error(blerr) return } }() select { case <-locked:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.6K bytes - Viewed (0) -
internal/grid/debug.go
debugSetConnPingDuration debugSetClientPingDuration debugAddToDeadline debugIsOutgoingClosed debugBlockInboundMessages ) // TestGrid contains a grid of servers for testing purposes. type TestGrid struct { Servers []*httptest.Server Listeners []net.Listener Managers []*Manager Mux []*mux.Router Hosts []string cleanupOnce sync.Once cancel context.CancelFunc }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 4.4K bytes - Viewed (0) -
cmd/sftp-server-driver.go
) // Maximum write offset for incoming SFTP blocks. // Set to 100MiB to prevent hostile DOS attacks. const ftpMaxWriteOffset = 100 << 20 type sftpDriver struct { permissions *ssh.Permissions endpoint string } //msgp:ignore sftpMetrics type sftpMetrics struct{} var globalSftpMetrics sftpMetrics func sftpTrace(s *sftp.Request, startTime time.Time, source string, user string, err error, sz int64) madmin.TraceInfo {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 05 07:51:13 UTC 2024 - 11.1K bytes - Viewed (0) -
internal/bucket/lifecycle/noncurrentversion_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package lifecycle import "testing" func Test_NoncurrentVersionsExpiration_Validation(t *testing.T) { testcases := []struct { n NoncurrentVersionExpiration err error }{ { n: NoncurrentVersionExpiration{ NoncurrentDays: 0, NewerNoncurrentVersions: 0, set: true, },
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Dec 14 17:41:44 UTC 2021 - 2.1K bytes - Viewed (0)