- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewWithOptions (0.1 sec)
-
docs/sts/assume-role.go
fmt.Println("SessionToken:", v.SessionToken) return } // API requests are secure (HTTPS) if secure=true and insecure (HTTP) otherwise. // New returns an MinIO Admin client object. madmClnt, err := madmin.NewWithOptions(stsEndpointURL.Host, mopts) if err != nil { log.Fatalln(err) } err = madmClnt.ServiceRestart(context.Background()) if err != nil { log.Fatalln(err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Aug 17 01:24:54 UTC 2024 - 4.4K bytes - Viewed (0) -
cmd/admin-handlers-users_test.go
s.TestSuiteCommon.RestartTestServer(c) s.iamSetup(c) } func (s *TestSuiteIAM) getAdminClient(c *check, accessKey, secretKey, sessionToken string) *madmin.AdminClient { madmClnt, err := madmin.NewWithOptions(s.endpoint, &madmin.Options{ Creds: credentials.NewStaticV4(accessKey, secretKey, sessionToken), Secure: s.secure, }) if err != nil { c.Fatalf("error creating user admin client: %s", err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Sep 22 00:33:43 UTC 2024 - 47.3K bytes - Viewed (0) -
cmd/sts-handlers_test.go
} // Validate that the client from sts creds can access the bucket. c.mustListObjects(ctx, minioClient, bucket) // Create an madmin client with user creds userAdmClient, err := madmin.NewWithOptions(s.endpoint, &madmin.Options{ Creds: cr.NewStaticV4(value.AccessKeyID, value.SecretAccessKey, value.SessionToken), Secure: s.secure, }) if err != nil { c.Fatalf("Err creating user admin client: %v", err)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 10 23:40:37 UTC 2024 - 97.1K bytes - Viewed (0)