Documentation ¶
Index ¶
- type Storage
- type StorageKubernetes
- func (s *StorageKubernetes) Add(ctx context.Context, dataset map[string][]byte) (err error)
- func (s *StorageKubernetes) Delete(ctx context.Context, keys []string) (err error)
- func (s *StorageKubernetes) Get(ctx context.Context, key string, getData bool) ([]byte, error)
- func (s *StorageKubernetes) GetAll(ctx context.Context, getData bool) (map[string][]byte, error)
- func (s *StorageKubernetes) Update(ctx context.Context, dataset map[string][]byte) (err error)
- type StorageType
- type StorageVolume
- func (s *StorageVolume) Add(ctx context.Context, dataset map[string][]byte) (err error)
- func (s *StorageVolume) Delete(ctx context.Context, keys []string) (err error)
- func (s *StorageVolume) Get(ctx context.Context, key string, getData bool) ([]byte, error)
- func (s *StorageVolume) GetAll(ctx context.Context, getData bool) (map[string][]byte, error)
- func (s *StorageVolume) Update(ctx context.Context, dataset map[string][]byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { Add(context.Context, map[string][]byte) error Get(context.Context, string, bool) ([]byte, error) GetAll(context.Context, bool) (map[string][]byte, error) Update(context.Context, map[string][]byte) error Delete(context.Context, []string) error }
func NewStorageKubernetes ¶
type StorageKubernetes ¶
type StorageKubernetes struct {
// contains filtered or unexported fields
}
func (*StorageKubernetes) Delete ¶
func (s *StorageKubernetes) Delete(ctx context.Context, keys []string) (err error)
type StorageType ¶
type StorageType string
const ( StorageType_KubernetesSecret StorageType = "k8s/secret" StorageType_Volume StorageType = "volume" )
Click to show internal directories.
Click to hide internal directories.