- Sort Score
- Result 10 results
- Languages All
Results 1111 - 1120 of 1,387 for funcs (0.02 sec)
-
tests/customize_field_test.go
package tests_test import ( "testing" "time" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) func TestCustomizeColumn(t *testing.T) { type CustomizeColumn struct { ID int64 `gorm:"column:mapped_id; primary_key:yes"` Name string `gorm:"column:mapped_name"` Date *time.Time `gorm:"column:mapped_time"` } DB.Migrator().DropTable(&CustomizeColumn{}) DB.AutoMigrate(&CustomizeColumn{})
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Sep 11 09:33:31 UTC 2020 - 6.9K bytes - Viewed (0) -
cmd/config-migrate.go
) // Save config file to corresponding backend func Save(configFile string, data interface{}) error { return quick.SaveConfig(data, configFile, globalEtcdClient) } // Load config from backend func Load(configFile string, data interface{}) (quick.Config, error) { return quick.LoadConfig(configFile, globalEtcdClient, data) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.4K bytes - Viewed (0) -
cmd/streaming-signature-v4_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "bufio" "bytes" "fmt" "io" "strings" "testing" ) // Test read chunk line. func TestReadChunkLine(t *testing.T) { type testCase struct { reader *bufio.Reader expectedErr error chunkSize []byte chunkSignature []byte } // List of readers used. readers := []io.Reader{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 5.7K bytes - Viewed (0) -
internal/config/subnet/subnet.go
) const ( respBodyLimit = 1 << 20 // 1 MiB // LoggerWebhookName - subnet logger webhook target LoggerWebhookName = "subnet" ) // Upload given file content (payload) to specified URL func (c Config) Upload(reqURL string, filename string, payload []byte) (string, error) { if !c.Registered() { return "", errors.New("Deployment is not registered with SUBNET. Please register the deployment via 'mc license register ALIAS'")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 27 16:35:36 UTC 2023 - 2.9K bytes - Viewed (0) -
cmd/bucket-replication-utils_test.go
expectedReplicationStatus: replication.Failed, expectedOpType: replication.ObjectReplicationType, expectedAction: replicateAll, }, } func TestReplicatedInfos(t *testing.T) { for i, test := range replicatedInfosTests { rinfos := replicatedInfos{ Targets: test.tgtInfos, }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 08 20:27:40 UTC 2023 - 9.3K bytes - Viewed (0) -
cmd/generic-handlers_contrib.go
* limitations under the License. */ package cmd import ( "net/http" "strings" ) // guessIsLoginSTSReq - returns true if incoming request is Login STS user func guessIsLoginSTSReq(req *http.Request) bool { if req == nil { return false } return strings.HasPrefix(req.URL.Path, loginPathPrefix) || (req.Method == http.MethodPost && req.URL.Path == SlashSeparator &&
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 30 15:50:39 UTC 2021 - 995 bytes - Viewed (0) -
internal/config/certs_test.go
} if len(certs) != testCase.expectedResultLen { t.Fatalf("certs: expected = %v, got = %v", testCase.expectedResultLen, len(certs)) } } } func TestLoadX509KeyPair(t *testing.T) { t.Cleanup(func() { os.Unsetenv(EnvCertPassword) }) for i, testCase := range loadX509KeyPairTests { privateKey, err := createTempFile("private.key", testCase.privateKey) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 21.6K bytes - Viewed (0) -
cmd/storagemetric_string.go
// Code generated by "stringer -type=storageMetric -trimprefix=storageMetric xl-storage-disk-id-check.go"; DO NOT EDIT. package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[storageMetricMakeVolBulk-0] _ = x[storageMetricMakeVol-1] _ = x[storageMetricListVols-2]
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Aug 12 08:38:15 UTC 2024 - 2.2K bytes - Viewed (0) -
internal/arn/arn.go
} // String - returns string representation of the ARN. func (arn ARN) String() string { return strings.Join( []string{ arnPrefixArn, arn.Partition, arn.Service, arn.Region, "", // account-id is always empty in this implementation arn.ResourceType + "/" + arn.ResourceID, }, ":", ) } // Parse - parses an ARN string into a type. func Parse(arnStr string) (arn ARN, err error) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 08:31:34 UTC 2024 - 3.5K bytes - Viewed (0) -
cmd/object-api-deleteobject_test.go
"encoding/hex" "strings" "testing" ) // Wrapper for calling DeleteObject tests for both Erasure multiple disks and single node setup. func TestDeleteObject(t *testing.T) { ExecObjectLayerTest(t, testDeleteObject) } // Unit test for DeleteObject in general. func testDeleteObject(obj ObjectLayer, instanceType string, t TestErrHandler) { type objectUpload struct { name string content string }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 29 01:40:52 UTC 2024 - 4.1K bytes - Viewed (0)