Documentation ¶
Index ¶
- type Key
- type Option
- type Resource
- type Secrets
- type Service
- func (s *Service) Expand(ctx context.Context, input string, secrets map[Key]Resource) (string, error)
- func (s *Service) ExpandSecret(ctx context.Context, input string, key Key, resource Resource) (string, error)
- func (s *Service) GetCredentials(ctx context.Context, resource string) (*cred.Generic, error)
- func (s *Service) GeyKey(ctx context.Context, resource string) (*cred.SecretKey, error)
- func (s *Service) Lookup(ctx context.Context, secret Resource) (*scy.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(s *Service)
Option represents a service option
func WithBaseDirectory ¶
WithBaseDirectory sets base directory
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents a secret service
func (*Service) Expand ¶
func (s *Service) Expand(ctx context.Context, input string, secrets map[Key]Resource) (string, error)
Expand expands input credential keys with actual CredentialsFromLocation
func (*Service) ExpandSecret ¶
func (*Service) GetCredentials ¶
GetCredentials returns credentials for supplied resource
Click to show internal directories.
Click to hide internal directories.