Documentation ¶
Index ¶
- Constants
- func NewConfigVault(config config.Config) secret.Vault
- func NewTenantConfigVault(tid tenant.Id, parentVault secret.Vault, tenantStorer tenant.TenantStorer) secret.Vault
- type Autobahn
- type Basic
- type ConfigVault
- type Credential
- type CredentialResponse
- type Data
- type Oauth
- type SatToken
- type TenantConfigVault
Constants ¶
View Source
const CREDENTIAL_URL = "https://{{env}}gears.comcast.com/v2/applications/{{app}}/credentials/{{key}}"
View Source
const SAT_URL = "https://sat-prod.codebig2.net/oauth/token"
Variables ¶
This section is empty.
Functions ¶
func NewTenantConfigVault ¶
Types ¶
type ConfigVault ¶
type ConfigVault struct {
// contains filtered or unexported fields
}
ConfigVault provides secrets from ears app configuration
type Credential ¶ added in v1.1.2
type Credential struct { Name string `json:"name"` Type string `json:"type"` Data Data `json:"data,omitempty"` Ttl int32 `json:"ttl,omitempty"` }
func (*Credential) GetGrantType ¶ added in v1.1.2
func (c *Credential) GetGrantType() (string, string)
func (*Credential) GetId ¶ added in v1.1.2
func (c *Credential) GetId() (string, string)
func (*Credential) GetIssuer ¶ added in v1.1.2
func (c *Credential) GetIssuer() (string, string)
func (*Credential) GetScope ¶ added in v1.1.2
func (c *Credential) GetScope() (string, string)
func (*Credential) GetSecret ¶ added in v1.1.2
func (c *Credential) GetSecret() (string, string)
type CredentialResponse ¶ added in v1.1.2
type CredentialResponse struct {
Item Credential `json:"item"`
}
type TenantConfigVault ¶
type TenantConfigVault struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.