Documentation ¶
Index ¶
- Constants
- Variables
- func ArtifactToKubeConfigMap(resource resources.Resource) (*kubev1.ConfigMap, error)
- func KubeConfigMapToArtifact(configMap *kubev1.ConfigMap) *v1.Artifact
- func NewArtifactConverter() skcfgmap.ConfigMapConverter
- type APIKeySecretConverter
- type AccountCredentialsSecretConverter
- func (t *AccountCredentialsSecretConverter) FromKubeSecret(_ context.Context, _ *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
- func (t *AccountCredentialsSecretConverter) ToKubeSecret(_ context.Context, _ *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
- type AwsSecretConverter
- type EncryptionSecretConverter
- func (t *EncryptionSecretConverter) FromKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
- func (t *EncryptionSecretConverter) ToKubeSecret(_ context.Context, rc *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
- type HeaderSecretConverter
- type OAuthSecretConverter
- type OpaqueSecretConverter
- type SecretConverterChain
- type TLSSecretConverter
Constants ¶
View Source
const ( AccountCredentialsSecretType kubev1.SecretType = "extauth.solo.io/accountcredentials" UsernameDataKey = "username" PasswordDataKey = "password" )
View Source
const ( APIKeyDataKey = "api-key" APIKeySecretType kubev1.SecretType = "extauth.solo.io/apikey" GlooKindAnnotationKey = "resource_kind" )
View Source
const ( EncryptionDataKey = "key" EncryptionKeySecretType kubev1.SecretType = "gloo.solo.io.EncryptionKeySecret" )
View Source
const ( ClientSecretDataKey = "client-secret" OAuthSecretType kubev1.SecretType = "extauth.solo.io/oauth" )
View Source
const ( AwsAccessKeyName = "aws_access_key_id" AwsSecretKeyName = "aws_secret_access_key" AwsSessionTokenName = "aws_session_token" )
View Source
const HeaderSecretType = "gloo.solo.io/header"
View Source
const OCSPStapleKey = "tls.ocsp-staple"
Variables ¶
View Source
var GlooSecretConverterChain = NewSecretConverterChain( new(TLSSecretConverter), new(AwsSecretConverter), new(APIKeySecretConverter), new(OAuthSecretConverter), new(AccountCredentialsSecretConverter), new(OpaqueSecretConverter), new(EncryptionSecretConverter), new(HeaderSecretConverter), )
Functions ¶
func ArtifactToKubeConfigMap ¶ added in v1.2.16
func KubeConfigMapToArtifact ¶ added in v1.2.16
func NewArtifactConverter ¶ added in v1.2.16
func NewArtifactConverter() skcfgmap.ConfigMapConverter
Types ¶
type APIKeySecretConverter ¶ added in v1.5.0
type APIKeySecretConverter struct{}
Processes secrets with type "extauth.solo.io/apikey".
func (*APIKeySecretConverter) FromKubeSecret ¶ added in v1.5.0
func (c *APIKeySecretConverter) FromKubeSecret(ctx context.Context, _ *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*APIKeySecretConverter) ToKubeSecret ¶ added in v1.5.0
func (c *APIKeySecretConverter) ToKubeSecret(_ context.Context, rc *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
type AccountCredentialsSecretConverter ¶ added in v1.13.0
type AccountCredentialsSecretConverter struct{}
func (*AccountCredentialsSecretConverter) FromKubeSecret ¶ added in v1.13.0
func (t *AccountCredentialsSecretConverter) FromKubeSecret(_ context.Context, _ *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*AccountCredentialsSecretConverter) ToKubeSecret ¶ added in v1.13.0
func (t *AccountCredentialsSecretConverter) ToKubeSecret(_ context.Context, _ *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
type AwsSecretConverter ¶ added in v0.18.12
type AwsSecretConverter struct{}
The purpose of this implementation of the SecretConverter interface is to provide a way for the user to specify AWS secrets without having to use an annotation to identify the secret as a AWS secret. Instead of an annotation, this converter looks for the two required fields.
func (*AwsSecretConverter) FromKubeSecret ¶ added in v0.18.12
func (t *AwsSecretConverter) FromKubeSecret(_ context.Context, _ *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*AwsSecretConverter) ToKubeSecret ¶ added in v0.18.12
func (t *AwsSecretConverter) ToKubeSecret(_ context.Context, _ *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
type EncryptionSecretConverter ¶ added in v1.14.2
type EncryptionSecretConverter struct{}
EncryptionSecretConverter processes secrets with type "gloo.solo.io.EncryptionKeySecret"
func (*EncryptionSecretConverter) FromKubeSecret ¶ added in v1.14.2
func (t *EncryptionSecretConverter) FromKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*EncryptionSecretConverter) ToKubeSecret ¶ added in v1.14.2
func (t *EncryptionSecretConverter) ToKubeSecret(_ context.Context, rc *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
type HeaderSecretConverter ¶ added in v1.4.11
type HeaderSecretConverter struct{}
func (*HeaderSecretConverter) FromKubeSecret ¶ added in v1.4.11
func (t *HeaderSecretConverter) FromKubeSecret(ctx context.Context, _ *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*HeaderSecretConverter) ToKubeSecret ¶ added in v1.4.11
func (t *HeaderSecretConverter) ToKubeSecret(_ context.Context, _ *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
type OAuthSecretConverter ¶ added in v1.9.25
type OAuthSecretConverter struct{}
OAuthSecretConverter processes secrets with type "extauth.solo.io/oauth"
func (*OAuthSecretConverter) FromKubeSecret ¶ added in v1.9.25
func (t *OAuthSecretConverter) FromKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*OAuthSecretConverter) ToKubeSecret ¶ added in v1.9.25
func (t *OAuthSecretConverter) ToKubeSecret(_ context.Context, rc *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
type OpaqueSecretConverter ¶ added in v1.9.25
type OpaqueSecretConverter struct{}
func (*OpaqueSecretConverter) FromKubeSecret ¶ added in v1.9.25
func (c *OpaqueSecretConverter) FromKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*OpaqueSecretConverter) ToKubeSecret ¶ added in v1.9.25
func (c *OpaqueSecretConverter) ToKubeSecret(_ context.Context, _ *kubesecret.ResourceClient, _ resources.Resource) (*kubev1.Secret, error)
type SecretConverterChain ¶ added in v0.18.12
type SecretConverterChain struct {
// contains filtered or unexported fields
}
func NewSecretConverterChain ¶ added in v0.18.12
func NewSecretConverterChain(converters ...kubesecret.SecretConverter) *SecretConverterChain
func (*SecretConverterChain) FromKubeSecret ¶ added in v0.18.12
func (t *SecretConverterChain) FromKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*SecretConverterChain) ToKubeSecret ¶ added in v0.18.12
func (t *SecretConverterChain) ToKubeSecret(ctx context.Context, rc *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
type TLSSecretConverter ¶
type TLSSecretConverter struct{}
func (*TLSSecretConverter) FromKubeSecret ¶
func (t *TLSSecretConverter) FromKubeSecret(_ context.Context, _ *kubesecret.ResourceClient, secret *kubev1.Secret) (resources.Resource, error)
func (*TLSSecretConverter) ToKubeSecret ¶
func (t *TLSSecretConverter) ToKubeSecret(_ context.Context, _ *kubesecret.ResourceClient, resource resources.Resource) (*kubev1.Secret, error)
Click to show internal directories.
Click to hide internal directories.