Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialStore ¶
type CredentialStore interface {
// Get retrieves the data associated with the given partition key.
Get(partitionKey string) ([]byte, error)
// Set stores the given data with the given partition key.
Set(data []byte, partitionKey string) error
// Clear removes all data from the store.
Clear() error
}
type FileSystemOption ¶
type FileSystemOption func(*FilesystemCredentialStore)
func WithFilesystem ¶
func WithFilesystem(fs afero.Fs) FileSystemOption
type FilesystemCredentialStore ¶
type FilesystemCredentialStore struct {
// contains filtered or unexported fields
}
func NewFilesystemCredentialStore ¶
func NewFilesystemCredentialStore(filePath string, options ...FileSystemOption) *FilesystemCredentialStore
func (*FilesystemCredentialStore) Clear ¶
func (store *FilesystemCredentialStore) Clear() error
Click to show internal directories.
Click to hide internal directories.