Documentation ¶
Index ¶
- func IsInvalidConfig(err error) bool
- func IsInvalidHTTPStatus(err error) bool
- func IsKeyNotFound(err error) bool
- type AWSAuthRole
- type AWSAuthRoleResponse
- type DecryptPayload
- type DecryptResponse
- type DecryptResponseData
- type EncryptPayload
- type EncryptResponse
- type EncryptResponseData
- type Encrypter
- func (e *Encrypter) Address() string
- func (e *Encrypter) Decrypt(key, ciphertext string) (string, error)
- func (e *Encrypter) Encrypt(ctx context.Context, key, plaintext string) (string, error)
- func (e *Encrypter) EncryptionKey(ctx context.Context, customObject v1alpha1.Cluster) (string, error)
- func (e *Encrypter) EnsureCreatedAuthorizedIAMRoles(ctx context.Context, customObject v1alpha1.Cluster) error
- func (e *Encrypter) EnsureCreatedEncryptionKey(ctx context.Context, customObject v1alpha1.Cluster) error
- func (e *Encrypter) EnsureDeletedAuthorizedIAMRoles(ctx context.Context, customObject v1alpha1.Cluster) error
- func (e *Encrypter) EnsureDeletedEncryptionKey(ctx context.Context, customObject v1alpha1.Cluster) error
- func (e *Encrypter) IsKeyNotFound(err error) bool
- type EncrypterConfig
- type ErrorResponse
- type KeyConfigPayload
- type LoginAuthMetadataResponse
- type LoginAuthResponse
- type LoginPayload
- type LoginResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidHTTPStatus ¶
IsInvalidHTTPStatus asserts invalidHTTPStatusCodeError.
Types ¶
type AWSAuthRole ¶
type AWSAuthRole struct {
BoundIAMRoleARN []string `json:"bound_iam_role_arn"`
}
type AWSAuthRoleResponse ¶
type AWSAuthRoleResponse struct {
Data AWSAuthRole `json:"data"`
}
type DecryptPayload ¶
type DecryptPayload struct {
Ciphertext string `json:"ciphertext"`
}
type DecryptResponse ¶
type DecryptResponse struct {
Data DecryptResponseData `json:"data"`
}
type DecryptResponseData ¶
type DecryptResponseData struct {
Plaintext string `json:"plaintext"`
}
type EncryptPayload ¶
type EncryptPayload struct {
Plaintext string `json:"plaintext"`
}
type EncryptResponse ¶
type EncryptResponse struct {
Data EncryptResponseData `json:"data"`
}
type EncryptResponseData ¶
type EncryptResponseData struct {
Ciphertext string `json:"ciphertext"`
}
type Encrypter ¶
type Encrypter struct {
// contains filtered or unexported fields
}
func NewEncrypter ¶
func NewEncrypter(c *EncrypterConfig) (*Encrypter, error)
func (*Encrypter) EncryptionKey ¶
func (*Encrypter) EnsureCreatedAuthorizedIAMRoles ¶
func (*Encrypter) EnsureCreatedEncryptionKey ¶
func (*Encrypter) EnsureDeletedAuthorizedIAMRoles ¶
func (*Encrypter) EnsureDeletedEncryptionKey ¶
func (*Encrypter) IsKeyNotFound ¶
type EncrypterConfig ¶
type EncrypterConfig struct { Logger micrologger.Logger Address string }
type ErrorResponse ¶
type ErrorResponse struct {
Errors []string `json:"errors"`
}
type KeyConfigPayload ¶
type KeyConfigPayload struct {
DeletionAllowed bool `json:"deletion_allowed"`
}
type LoginAuthMetadataResponse ¶
type LoginAuthMetadataResponse struct {
Nonce string `json:"nonce"`
}
type LoginAuthResponse ¶
type LoginAuthResponse struct { Metadata LoginAuthMetadataResponse `json:"metadata"` ClientToken string `json:"client_token"` }
type LoginPayload ¶
type LoginResponse ¶
type LoginResponse struct {
Auth LoginAuthResponse `json:"auth"`
}
Click to show internal directories.
Click to hide internal directories.