credentialstore

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

func (*FilesystemCredentialStore) Get

func (store *FilesystemCredentialStore) Get(partitionKey string) ([]byte, error)

func (*FilesystemCredentialStore) Set

func (store *FilesystemCredentialStore) Set(data []byte, partitionKey string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL