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

Method IsExpired

pkg/credentials/chain.go:100–106  ·  view source on GitHub ↗

IsExpired will returned the expired state of the currently cached provider if there is one. If there is no current provider, true will be returned.

()

Source from the content-addressed store, hash-verified

98// IsExpired will returned the expired state of the currently cached provider
99// if there is one. If there is no current provider, true will be returned.
100func (c *Chain) IsExpired() bool {
101 if c.curr != nil {
102 return c.curr.IsExpired()
103 }
104
105 return true
106}

Callers 3

TestChainIsExpiredFunction · 0.95
TestChainWithNoProviderFunction · 0.95

Calls 1

IsExpiredMethod · 0.65

Tested by 3

TestChainIsExpiredFunction · 0.76
TestChainWithNoProviderFunction · 0.76