Skip to main content
Glama
credentials.go960 B
package sls import ( "time" ) type Credentials struct { AccessKeyID string AccessKeySecret string SecurityToken string } // Expirable credentials with an expiration. type tempCredentials struct { Credentials Expiration time.Time // The time when the credentials expires, unix timestamp in millis LastUpdateTime time.Time } func newTempCredentials(accessKeyId, accessKeySecret, securityToken string, expiration time.Time, lastUpdateTime time.Time) *tempCredentials { return &tempCredentials{ Credentials: Credentials{ AccessKeyID: accessKeyId, AccessKeySecret: accessKeySecret, SecurityToken: securityToken, }, Expiration: expiration, LastUpdateTime: lastUpdateTime, } } func (t *tempCredentials) isExpired() bool { return time.Now().After(t.Expiration) } func (t *tempCredentials) isValid() bool { return t.Credentials.AccessKeyID != "" && t.Credentials.AccessKeySecret != "" && !t.Expiration.IsZero() }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mozillazg/kube-audit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server