Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("credentials not found")
View Source
var ErrValidation = errors.New("credentials validation error")
Functions ¶
This section is empty.
Types ¶
type OCIKeypair ¶
type OCIKeypair struct {
Repo, Username, Password string
}
func (*OCIKeypair) Validate ¶
func (o *OCIKeypair) Validate() error
Validate that the OCIKeypair has all its properties set
type ReaderWriter ¶
type SaveOption ¶ added in v1.85.0
type SaveOption func(*SaveOpts)
SaveOption is a functional option for SaveCredentials.
func WithExistingSecret ¶ added in v1.85.0
func WithExistingSecret(name string) SaveOption
WithExistingSecret instructs SaveCredentials to upsert at the provided existing secret path. An empty name is a no-op (auto-generate behavior is preserved).
type SaveOpts ¶ added in v1.85.0
type SaveOpts struct {
// SecretName when non-empty causes SaveCredentials to upsert at the given path
// instead of generating a new UUID-based path.
SecretName string
}
SaveOpts holds optional parameters for SaveCredentials.
func ApplySaveOptions ¶ added in v1.85.0
func ApplySaveOptions(opts ...SaveOption) SaveOpts
ApplySaveOptions applies the given options and returns the resulting SaveOpts.
Click to show internal directories.
Click to hide internal directories.