Documentation
¶
Index ¶
- Constants
- func ReadAndUnmarshal(resp *http.Response, target any) error
- type API
- type Client
- type D42Password
- type D42PasswordResponse
- type Device42
- func (p *Device42) Capabilities() esv1beta1.SecretStoreCapabilities
- func (p *Device42) Close(_ context.Context) error
- func (p *Device42) DeleteSecret(_ context.Context, _ esv1beta1.PushSecretRemoteRef) error
- func (p *Device42) GetAllSecrets(_ context.Context, _ esv1beta1.ExternalSecretFind) (map[string][]byte, error)
- func (p *Device42) GetSecret(_ context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) ([]byte, error)
- func (p *Device42) GetSecretMap(_ context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) (map[string][]byte, error)
- func (p *Device42) NewClient(ctx context.Context, store esv1beta1.GenericStore, kube kclient.Client, ...) (esv1beta1.SecretsClient, error)
- func (p *Device42) PushSecret(_ context.Context, _ *corev1.Secret, _ esv1beta1.PushSecretData) error
- func (p *Device42) SecretExists(_ context.Context, _ esv1beta1.PushSecretRemoteRef) (bool, error)
- func (p *Device42) Validate() (esv1beta1.ValidationResult, error)
- func (p *Device42) ValidateStore(esv1beta1.GenericStore) (admission.Warnings, error)
- type HTTPClient
- type Provider
Constants ¶
View Source
const (
DoRequestError = "error: do request: %w"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
GetSecret(secretID string) (D42Password, error)
}
type D42Password ¶
func (D42Password) ToMap ¶
func (s D42Password) ToMap() map[string][]byte
type D42PasswordResponse ¶
type D42PasswordResponse struct {
Passwords []D42Password
}
type Device42 ¶
type Device42 struct {
// contains filtered or unexported fields
}
Device42 Provider struct with reference to a Device42 client.
func NewDevice42Provider ¶
func NewDevice42Provider() *Device42
NewDevice42Provider returns a reference to a new instance of a 'Device42' struct.
func (*Device42) Capabilities ¶
func (p *Device42) Capabilities() esv1beta1.SecretStoreCapabilities
func (*Device42) DeleteSecret ¶
func (*Device42) GetAllSecrets ¶
func (*Device42) GetSecretMap ¶
func (*Device42) PushSecret ¶
func (*Device42) SecretExists ¶
func (*Device42) ValidateStore ¶
Click to show internal directories.
Click to hide internal directories.