- Sort Score
- Result 10 results
- Languages All
Results 851 - 860 of 1,387 for funcs (0.02 sec)
-
clause/select_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestSelect(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Select{}, clause.From{}}, "SELECT * FROM `users`", nil, }, { []clause.Interface{clause.Select{ Columns: []clause.Column{clause.PrimaryColumn}, }, clause.From{}},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Feb 18 01:06:43 UTC 2023 - 1.7K bytes - Viewed (0) -
istioctl/pkg/cli/context_test.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package cli import "testing" func Test_handleNamespace(t *testing.T) { ns := handleNamespace("test", "default") if ns != "test" { t.Fatalf("Get the incorrect namespace: %q back", ns) } tests := []struct { description string
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 09 18:17:49 UTC 2023 - 1.4K bytes - Viewed (0) -
istioctl/pkg/util/clusters/wrapper.go
type Wrapper struct { *admin.Clusters } // MarshalJSON is a custom marshaller to handle protobuf pain func (w *Wrapper) MarshalJSON() ([]byte, error) { return protomarshal.Marshal(w) } // UnmarshalJSON is a custom unmarshaller to handle protobuf pain func (w *Wrapper) UnmarshalJSON(b []byte) error { cd := &admin.Clusters{} err := protomarshal.UnmarshalAllowUnknown(b, cd) *w = Wrapper{cd}
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Nov 03 08:41:32 UTC 2022 - 1.2K bytes - Viewed (0) -
cmd/erasure-coding.go
"github.com/minio/minio/internal/logger" ) // Erasure - erasure encoding details. type Erasure struct { encoder func() reedsolomon.Encoder dataBlocks, parityBlocks int blockSize int64 } // NewErasure creates a new ErasureStorage. func NewErasure(ctx context.Context, dataBlocks, parityBlocks int, blockSize int64) (e Erasure, err error) { // Check the parameters for sanity now.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jan 31 02:11:45 UTC 2024 - 8.6K bytes - Viewed (0) -
cmd/bucket-replication.go
} func (o mustReplicateOptions) ReplicationStatus() (s replication.StatusType) { if rs, ok := o.meta[xhttp.AmzBucketReplicationStatus]; ok { return replication.StatusType(rs) } return s } func (o mustReplicateOptions) isExistingObjectReplication() bool { return o.opType == replication.ExistingObjectReplicationType } func (o mustReplicateOptions) isMetadataReplication() bool {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 10 06:49:55 UTC 2024 - 116.1K bytes - Viewed (0) -
cmd/batch-rotate.go
} // Notify notifies notification endpoint if configured regarding job failure or success. func (r BatchJobKeyRotateV1) Notify(ctx context.Context, ri *batchJobInfo) error { return notifyEndpoint(ctx, ri, r.Flags.Notify.Endpoint, r.Flags.Notify.Token) } // KeyRotate rotates encryption key of an object func (r *BatchJobKeyRotateV1) KeyRotate(ctx context.Context, api ObjectLayer, objInfo ObjectInfo) error {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 18 17:59:03 UTC 2024 - 14.7K bytes - Viewed (0) -
internal/config/bool-flag.go
type BoolFlag bool // String - returns string of BoolFlag. func (bf BoolFlag) String() string { if bf { return "on" } return "off" } // MarshalJSON - converts BoolFlag into JSON data. func (bf BoolFlag) MarshalJSON() ([]byte, error) { return json.Marshal(bf.String()) } // UnmarshalJSON - parses given data into BoolFlag. func (bf *BoolFlag) UnmarshalJSON(data []byte) (err error) { var s string
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 07 15:10:40 UTC 2022 - 2.3K bytes - Viewed (0) -
cmd/format-erasure_test.go
} } } } func BenchmarkInitStorageDisks256(b *testing.B) { benchmarkInitStorageDisksN(b, 256) } func BenchmarkInitStorageDisks1024(b *testing.B) { benchmarkInitStorageDisksN(b, 1024) } func BenchmarkInitStorageDisks2048(b *testing.B) { benchmarkInitStorageDisksN(b, 2048) } func BenchmarkInitStorageDisksMax(b *testing.B) {
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/validate/validate_test.go
service.istio.io/canonical-revision: v1 spec: replicas: 1 ` ) func fromYAML(in string) *unstructured.Unstructured { var un unstructured.Unstructured if err := yaml.Unmarshal([]byte(in), &un); err != nil { panic(err) } return &un } func TestValidateResource(t *testing.T) { cases := []struct { name string in string valid bool warn bool
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 02 16:18:14 UTC 2024 - 21.4K bytes - Viewed (0) -
cmd/xl-storage-format-v2-legacy.go
package cmd import ( "fmt" "time" "github.com/tinylib/msgp/msgp" ) // unmarshalV unmarshals with a specific header version. func (x *xlMetaV2VersionHeader) unmarshalV(v uint8, bts []byte) (o []byte, err error) { switch v { case 1: return x.unmarshalV1(bts) case 2: x2 := xlMetaV2VersionHeaderV2{xlMetaV2VersionHeader: x}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 19 16:43:43 UTC 2024 - 5.7K bytes - Viewed (0)