MCPcopy
hub / github.com/minio/minio-go / CredContext

Method CredContext

api.go:1149–1158  ·  view source on GitHub ↗

CredContext returns the context for fetching credentials

()

Source from the content-addressed store, hash-verified

1147
1148// CredContext returns the context for fetching credentials
1149func (c *Client) CredContext() *credentials.CredContext {
1150 httpClient := c.httpClient
1151 if httpClient == nil {
1152 httpClient = http.DefaultClient
1153 }
1154 return &credentials.CredContext{
1155 Client: httpClient,
1156 Endpoint: c.endpointURL.String(),
1157 }
1158}
1159
1160// GetCreds returns the access creds for the client
1161func (c *Client) GetCreds() (credentials.Value, error) {

Callers 6

createSessionRequestMethod · 0.95
newRequestMethod · 0.95
GetCredsMethod · 0.95
PresignedPostPolicyMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by 1