- Sort Score
- Result 10 results
- Languages All
Results 971 - 980 of 1,387 for funcs (0.03 sec)
-
cmd/config-encrypted_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "bytes" "testing" "github.com/minio/madmin-go/v3" "github.com/minio/minio/internal/auth" ) func TestDecryptData(t *testing.T) { cred1 := auth.Credentials{ AccessKey: "minio", SecretKey: "minio123", } cred2 := auth.Credentials{ AccessKey: "minio", SecretKey: "minio1234", }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 20 00:53:08 UTC 2023 - 1.9K bytes - Viewed (0) -
internal/disk/stat_netbsd.go
package disk import ( "errors" "fmt" "golang.org/x/sys/unix" ) // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, _ bool) (info Info, err error) { s := unix.Statvfs_t{} if err = unix.Statvfs(path, &s); err != nil { return Info{}, err } reservedBlocks := uint64(s.Bfree) - uint64(s.Bavail) info = Info{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.8K bytes - Viewed (0) -
cni/pkg/install/binaries_test.go
// limitations under the License. package install import ( "path/filepath" "testing" "istio.io/istio/pkg/test/util/assert" "istio.io/istio/pkg/test/util/file" ) func TestCopyBinaries(t *testing.T) { cases := []struct { name string srcFiles map[string]string existingFiles map[string]string expectedFiles map[string]string }{ { name: "basic",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jul 20 18:34:43 UTC 2023 - 2.3K bytes - Viewed (0) -
istioctl/pkg/util/configdump/secret.go
extapi "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3" anypb "google.golang.org/protobuf/types/known/anypb" ) // GetSecretConfigDump retrieves a secret dump from a config dump wrapper func (w *Wrapper) GetSecretConfigDump() (*admin.SecretsConfigDump, error) { secretDumpAny, err := w.getSection(secrets) if err != nil { return nil, err } secretDump := &admin.SecretsConfigDump{}
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Feb 25 04:09:53 UTC 2023 - 2.2K bytes - Viewed (0) -
internal/kms/dek_test.go
}, }, } func TestEncodeDecodeDEK(t *testing.T) { for i, test := range dekEncodeDecodeTests { text, err := test.Key.MarshalText() if err != nil { t.Fatalf("Test %d: failed to marshal DEK: %v", i, err) } var key DEK
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 2.6K bytes - Viewed (0) -
internal/logger/legacy.go
const ( legacyEnvAuditLoggerHTTPEndpoint = "MINIO_AUDIT_LOGGER_HTTP_ENDPOINT" legacyEnvLoggerHTTPEndpoint = "MINIO_LOGGER_HTTP_ENDPOINT" ) // SetLoggerHTTPAudit - helper for migrating older config to newer KV format. func SetLoggerHTTPAudit(scfg config.Config, k string, args http.Config) { if !args.Enabled { // Do not enable audit targets, if not enabled return } scfg[config.AuditWebhookSubSys][k] = config.KVS{ config.KV{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 03 09:47:07 UTC 2023 - 2K bytes - Viewed (0) -
callbacks/callbacks.go
type Config struct { LastInsertIDReversed bool CreateClauses []string QueryClauses []string UpdateClauses []string DeleteClauses []string } func RegisterDefaultCallbacks(db *gorm.DB, config *Config) { enableTransaction := func(db *gorm.DB) bool { return !db.SkipDefaultTransaction } if len(config.CreateClauses) == 0 { config.CreateClauses = createClauses } if len(config.QueryClauses) == 0 {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Oct 27 23:56:55 UTC 2021 - 3.3K bytes - Viewed (0) -
cni/pkg/nodeagent/healthServer_test.go
// limitations under the License. package nodeagent import ( "net/http" "net/http/httptest" "testing" "istio.io/istio/cni/pkg/constants" "istio.io/istio/pkg/test/util/assert" ) func TestServer(t *testing.T) { router := http.NewServeMux() installReady, watchReady := initRouter(router) assert.Equal(t, installReady.Load(), false) assert.Equal(t, watchReady.Load(), false)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 2K bytes - Viewed (0) -
cmd/metacache_gen.go
return } // DecodeMsg implements msgp.Decodable func (z *scanStatus) DecodeMsg(dc *msgp.Reader) (err error) { { var zb0001 uint8 zb0001, err = dc.ReadUint8() if err != nil { err = msgp.WrapError(err) return } (*z) = scanStatus(zb0001) } return } // EncodeMsg implements msgp.Encodable func (z scanStatus) EncodeMsg(en *msgp.Writer) (err error) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Nov 08 18:26:08 UTC 2021 - 10K bytes - Viewed (0) -
cmd/bucket-policy-handlers_test.go
} // Wrapper for calling Create Bucket and ensure we get one and only one success. func TestCreateBucket(t *testing.T) { ExecObjectLayerAPITest(ExecObjectLayerAPITestArgs{t: t, objAPITest: testCreateBucket, endpoints: []string{"MakeBucket"}}) } // testCreateBucket - Test for calling Create Bucket and ensure we get one and only one success. func testCreateBucket(obj ObjectLayer, instanceType, bucketName string, apiRouter http.Handler,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 32.9K bytes - Viewed (0)